{"type": "func", "start": 5371141616, "end": 5371142177, "name": "GameLevelManager::claimNotificationReward", "pseudocode": "// \n// GameLevelManager::claimNotificationReward from 0x140251df0 to 0x140252021 (561 bytes)\n// \n// 2 xrefs:\n// > GJNotificationCell::onClaimReward @ 0x14015c87b\n// > <???> @ 0x14091c4d8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:28:42 +0000\n// \n\n// Hidden C++ exception states: #wind=4\nchar __fastcall GameLevelManager::claimNotificationReward(cocos2d::CCActionManager **a1, int a2)\n{\n  cocos2d::CCString *v4; // rax\n  char *CString; // rdi\n  __int64 v7; // rcx\n  __int64 v8; // rcx\n  __int64 v9; // rax\n  const char *v10; // rbx\n  cocos2d::CCString *v11; // rax\n  const char *v12; // rax\n  cocos2d::CCString *v13; // rax\n  char *v14; // rax\n  size_t v15; // rbx\n  size_t v16; // r8\n  size_t v17; // r8\n  _QWORD *v18; // rdx\n  int v19; // [rsp+20h] [rbp-79h]\n  int v20; // [rsp+28h] [rbp-71h]\n  __int128 v21; // [rsp+40h] [rbp-59h] BYREF\n  __int64 v22; // [rsp+50h] [rbp-49h]\n  __int64 v23; // [rsp+58h] [rbp-41h]\n  __int128 v24; // [rsp+60h] [rbp-39h] BYREF\n  __int64 v25; // [rsp+70h] [rbp-29h]\n  __int64 v26; // [rsp+78h] [rbp-21h]\n  __int128 *v27; // [rsp+80h] [rbp-19h]\n  __int128 *v28; // [rsp+88h] [rbp-11h]\n  __int128 v29; // [rsp+98h] [rbp-1h] BYREF\n  __int64 v30; // [rsp+A8h] [rbp+Fh]\n  __int64 v31; // [rsp+B0h] [rbp+17h]\n  _QWORD Src[4]; // [rsp+B8h] [rbp+1Fh] BYREF\n\n  v4 = cocos2d::CCString::createWithFormat(\"notifReward_%i\", a2);\n  CString = (char *)cocos2d::CCString::getCString(v4);\n  if ( GameLevelManager::isDLActive((__int64)a1, CString) )\n    return 0;\n  GameLevelManager::addDLToActive((__int64)a1, CString);\n  GameLevelManager::getBasePostString(v7, Src);\n  v9 = GameLevelManager::rewardSessionToken(v8, &v29);\n  v10 = (const char *)v9;\n  if ( *(_QWORD *)(v9 + 24) > 0xFu )\n    v10 = *(const char **)v9;\n  v20 = 98;\n  v19 = 103;\n  v11 = cocos2d::CCString::createWithFormat(\"%c%s%s%c%c%s\", 87, \"mfd\", \"2893\", v19, v20, (const char *)&word_14070D040);\n  v12 = cocos2d::CCString::getCString(v11);\n  v13 = cocos2d::CCString::createWithFormat(\"&notificationID=%i&secret=%s&chk=%s\", a2, v12, v10);\n  v14 = (char *)cocos2d::CCString::getCString(v13);\n  v15 = -1;\n  v16 = -1;\n  do\n    ++v16;\n  while ( v14[v16] );\n  sub_140044D80(Src, v14, v16);\n  sub_14003D310((__int64)&v29);\n  v27 = &v24;\n  v28 = &v29;\n  v24 = 0;\n  v25 = 0;\n  v26 = 0;\n  v17 = -1;\n  do\n    ++v17;\n  while ( CString[v17] );\n  sub_14003D230(&v24, CString, v17);\n  v18 = Src;\n  if ( Src[3] > 0xFu )\n    v18 = (_QWORD *)Src[0];\n  v29 = 0;\n  v30 = 0;\n  v31 = 0;\n  do\n    ++v15;\n  while ( *((_BYTE *)v18 + v15) );\n  sub_14003D230(&v29, v18, v15);\n  v21 = 0;\n  *(_QWORD *)&v21 = sub_14003D460(0x50u);\n  v22 = 64;\n  v23 = 79;\n  strcpy((char *)v21, \"https://www.boomlings.com/database/claimGJNotificationReward.php\");\n  GameLevelManager::ProcessHttpRequest(a1, (__int64)&v21, (const char *)&v29, (const char *)&v24, 0x6Eu);\n  sub_14003D310((__int64)Src);\n  return 1;\n}", "assembly": "; \n; GameLevelManager::claimNotificationReward from 0x140251df0 to 0x140252021 (561 bytes)\n; \n; 2 xrefs:\n; > GJNotificationCell::onClaimReward @ 0x14015c87b\n; > <???> @ 0x14091c4d8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:28:42 +0000\n; \nmov     [rsp-8+arg_10], rbx                                            ; +0x0, 0x140251df0\nmov     [rsp-8+arg_18], rsi                                            ; +0x5, 0x140251df5\npush    rbp                                                            ; +0xa, 0x140251dfa\npush    rdi                                                            ; +0xb, 0x140251dfb\npush    r14                                                            ; +0xc, 0x140251dfc\nlea     rbp, [rsp-47h]                                                 ; +0xe, 0x140251dfe\nsub     rsp, 0E0h                                                      ; +0x13, 0x140251e03\nmov     rax, cs:__security_cookie                                      ; +0x1a, 0x140251e0a\nxor     rax, rsp                                                       ; +0x21, 0x140251e11\nmov     [rbp+57h+var_18], rax                                          ; +0x24, 0x140251e14\nmov     esi, edx                                                       ; +0x28, 0x140251e18\nmov     r14, rcx                                                       ; +0x2a, 0x140251e1a\nlea     rcx, aNotifrewardI; \"notifReward_%i\"                           ; +0x2d, 0x140251e1d\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x34, 0x140251e24\nmov     rcx, rax                                                       ; +0x3a, 0x140251e2a\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x3d, 0x140251e2d\nmov     rdi, rax                                                       ; +0x43, 0x140251e33\nmov     rdx, rax                                                       ; +0x46, 0x140251e36\nmov     rcx, r14                                                       ; +0x49, 0x140251e39\ncall    GameLevelManager__isDLActive                                   ; +0x4c, 0x140251e3c\ntest    al, al                                                         ; +0x51, 0x140251e41\njz      short loc_140251E4C                                            ; +0x53, 0x140251e43\nxor     al, al                                                         ; +0x55, 0x140251e45\njmp     loc_140251FFD                                                  ; +0x57, 0x140251e47\nmov     rdx, rdi                                                       ; +0x5c, 0x140251e4c\nmov     rcx, r14                                                       ; +0x5f, 0x140251e4f\ncall    GameLevelManager__addDLToActive                                ; +0x62, 0x140251e52\nlea     rdx, [rbp+57h+Src]                                             ; +0x67, 0x140251e57\ncall    GameLevelManager__getBasePostString                            ; +0x6b, 0x140251e5b\nnop                                                                    ; +0x70, 0x140251e60\nlea     rdx, [rbp+57h+var_58]                                          ; +0x71, 0x140251e61\ncall    GameLevelManager__rewardSessionToken                           ; +0x75, 0x140251e65\nmov     rbx, rax                                                       ; +0x7a, 0x140251e6a\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x7d, 0x140251e6d\njbe     short loc_140251E77                                            ; +0x82, 0x140251e72\nmov     rbx, [rax]                                                     ; +0x84, 0x140251e74\nlea     rax, word_14070D040                                            ; +0x87, 0x140251e77\nmov     [rsp+0F0h+var_C0], rax                                         ; +0x8e, 0x140251e7e\nmov     [rsp+0F0h+var_C8], 62h ; 'b'                                   ; +0x93, 0x140251e83\nmov     [rsp+0F0h+var_D0], 67h ; 'g'                                   ; +0x9b, 0x140251e8b\nlea     r9, a2893; \"2893\"                                              ; +0xa3, 0x140251e93\nlea     r8, aMfd; \"mfd\"                                                ; +0xaa, 0x140251e9a\nmov     edx, 57h ; 'W'                                                 ; +0xb1, 0x140251ea1\nlea     rcx, aCSSCCS; \"%c%s%s%c%c%s\"                                   ; +0xb6, 0x140251ea6\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xbd, 0x140251ead\nmov     rcx, rax                                                       ; +0xc3, 0x140251eb3\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xc6, 0x140251eb6\nmov     r8, rax                                                        ; +0xcc, 0x140251ebc\nmov     r9, rbx                                                        ; +0xcf, 0x140251ebf\nmov     edx, esi                                                       ; +0xd2, 0x140251ec2\nlea     rcx, aNotificationid; \"&notificationID=%i&secret=%s&chk=%s\"    ; +0xd4, 0x140251ec4\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xdb, 0x140251ecb\nmov     rcx, rax                                                       ; +0xe1, 0x140251ed1\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xe4, 0x140251ed4\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0xea, 0x140251eda\nmov     r8, rbx                                                        ; +0xf1, 0x140251ee1\ninc     r8; Size                                                       ; +0xf4, 0x140251ee4\ncmp     byte ptr [rax+r8], 0                                           ; +0xf7, 0x140251ee7\njnz     short loc_140251EE4                                            ; +0xfc, 0x140251eec\nmov     rdx, rax; void *                                               ; +0xfe, 0x140251eee\nlea     rcx, [rbp+57h+Src]; Src                                        ; +0x101, 0x140251ef1\ncall    sub_140044D80                                                  ; +0x105, 0x140251ef5\nnop                                                                    ; +0x10a, 0x140251efa\nlea     rcx, [rbp+57h+var_58]                                          ; +0x10b, 0x140251efb\ncall    sub_14003D310                                                  ; +0x10f, 0x140251eff\nlea     rax, [rbp+57h+var_90]                                          ; +0x114, 0x140251f04\nmov     [rbp+57h+var_70], rax                                          ; +0x118, 0x140251f08\nlea     rax, [rbp+57h+var_58]                                          ; +0x11c, 0x140251f0c\nmov     [rbp+57h+var_68], rax                                          ; +0x120, 0x140251f10\nxorps   xmm0, xmm0                                                     ; +0x124, 0x140251f14\nmovups  [rbp+57h+var_90], xmm0                                         ; +0x127, 0x140251f17\nxor     esi, esi                                                       ; +0x12b, 0x140251f1b\nmov     [rbp+57h+var_80], rsi                                          ; +0x12d, 0x140251f1d\nmov     [rbp+57h+var_78], rsi                                          ; +0x131, 0x140251f21\nmov     r8, rbx                                                        ; +0x135, 0x140251f25\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x138, 0x140251f28\ninc     r8                                                             ; +0x140, 0x140251f30\ncmp     [rdi+r8], sil                                                  ; +0x143, 0x140251f33\njnz     short loc_140251F30                                            ; +0x147, 0x140251f37\nmov     rdx, rdi                                                       ; +0x149, 0x140251f39\nlea     rcx, [rbp+57h+var_90]                                          ; +0x14c, 0x140251f3c\ncall    sub_14003D230                                                  ; +0x150, 0x140251f40\nnop                                                                    ; +0x155, 0x140251f45\nlea     rdx, [rbp+57h+Src]                                             ; +0x156, 0x140251f46\ncmp     [rbp+57h+var_20], 0Fh                                          ; +0x15a, 0x140251f4a\ncmova   rdx, [rbp+57h+Src]                                             ; +0x15f, 0x140251f4f\nxorps   xmm0, xmm0                                                     ; +0x164, 0x140251f54\nmovups  [rbp+57h+var_58], xmm0                                         ; +0x167, 0x140251f57\nmov     [rbp+57h+var_48], rsi                                          ; +0x16b, 0x140251f5b\nmov     [rbp+57h+var_40], rsi                                          ; +0x16f, 0x140251f5f\ninc     rbx                                                            ; +0x173, 0x140251f63\ncmp     byte ptr [rdx+rbx], 0                                          ; +0x176, 0x140251f66\njnz     short loc_140251F63                                            ; +0x17a, 0x140251f6a\nmov     r8, rbx                                                        ; +0x17c, 0x140251f6c\nlea     rcx, [rbp+57h+var_58]                                          ; +0x17f, 0x140251f6f\ncall    sub_14003D230                                                  ; +0x183, 0x140251f73\nnop                                                                    ; +0x188, 0x140251f78\nxorps   xmm0, xmm0                                                     ; +0x189, 0x140251f79\nmovups  [rbp+57h+var_B0], xmm0                                         ; +0x18c, 0x140251f7c\nmov     [rbp+57h+var_A0], rsi                                          ; +0x190, 0x140251f80\nmov     [rbp+57h+var_98], rsi                                          ; +0x194, 0x140251f84\nmov     ecx, 50h ; 'P'                                                 ; +0x198, 0x140251f88\ncall    sub_14003D460                                                  ; +0x19d, 0x140251f8d\nmov     qword ptr [rbp+57h+var_B0], rax                                ; +0x1a2, 0x140251f92\nmov     [rbp+57h+var_A0], 40h ; '@'                                    ; +0x1a6, 0x140251f96\nmov     [rbp+57h+var_98], 4Fh ; 'O'                                    ; +0x1ae, 0x140251f9e\nmovaps  xmm0, cs:xmmword_140759C80                                     ; +0x1b6, 0x140251fa6\nmovups  xmmword ptr [rax], xmm0                                        ; +0x1bd, 0x140251fad\nmovaps  xmm1, cs:xmmword_140759C90                                     ; +0x1c0, 0x140251fb0\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x1c7, 0x140251fb7\nmovaps  xmm0, cs:xmmword_140759CA0                                     ; +0x1cb, 0x140251fbb\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x1d2, 0x140251fc2\nmovaps  xmm1, cs:xmmword_140759CB0                                     ; +0x1d6, 0x140251fc6\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0x1dd, 0x140251fcd\nmov     byte ptr [rax+40h], 0                                          ; +0x1e1, 0x140251fd1\nmov     [rsp+0F0h+var_D0], 6Eh ; 'n'                                   ; +0x1e5, 0x140251fd5\nlea     r9, [rbp+57h+var_90]                                           ; +0x1ed, 0x140251fdd\nlea     r8, [rbp+57h+var_58]                                           ; +0x1f1, 0x140251fe1\nlea     rdx, [rbp+57h+var_B0]                                          ; +0x1f5, 0x140251fe5\nmov     rcx, r14                                                       ; +0x1f9, 0x140251fe9\ncall    GameLevelManager__ProcessHttpRequest                           ; +0x1fc, 0x140251fec\nnop                                                                    ; +0x201, 0x140251ff1\nlea     rcx, [rbp+57h+Src]                                             ; +0x202, 0x140251ff2\ncall    sub_14003D310                                                  ; +0x206, 0x140251ff6\nmov     al, 1                                                          ; +0x20b, 0x140251ffb\nmov     rcx, [rbp+57h+var_18]                                          ; +0x20d, 0x140251ffd\nxor     rcx, rsp; StackCookie                                          ; +0x211, 0x140252001\ncall    __security_check_cookie                                        ; +0x214, 0x140252004\nlea     r11, [rsp+0F0h+var_10]                                         ; +0x219, 0x140252009\nmov     rbx, [r11+30h]                                                 ; +0x221, 0x140252011\nmov     rsi, [r11+38h]                                                 ; +0x225, 0x140252015\nmov     rsp, r11                                                       ; +0x229, 0x140252019\npop     r14                                                            ; +0x22c, 0x14025201c\npop     rdi                                                            ; +0x22e, 0x14025201e\npop     rbp                                                            ; +0x22f, 0x14025201f\nretn                                                                   ; +0x230, 0x140252020", "xrefs": ["GJNotificationCell::onClaimReward @ 0x14015c87b", "<???> @ 0x14091c4d8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}