; ; GameLevelManager::submitUserInfo from 0x140169e40 to 0x14016a27a (1082 bytes) ; ; 2 xrefs: ; > GameLevelManager::onUpdateUserScoreCompleted @ 0x140157847 ; > @ 0x1406cad28 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp-8+arg_8], rbx ; +0x0, 0x140169e40 mov [rsp-8+arg_10], rsi ; +0x5, 0x140169e45 mov [rsp-8+arg_18], rdi ; +0xa, 0x140169e4a push rbp ; +0xf, 0x140169e4f push r12 ; +0x10, 0x140169e50 push r13 ; +0x12, 0x140169e52 push r14 ; +0x14, 0x140169e54 push r15 ; +0x16, 0x140169e56 lea rbp, [rsp-30h] ; +0x18, 0x140169e58 sub rsp, 130h ; +0x1d, 0x140169e5d mov rax, cs:__security_cookie ; +0x24, 0x140169e64 xor rax, rsp ; +0x2b, 0x140169e6b mov [rbp+50h+var_28], rax ; +0x2e, 0x140169e6e mov r12, rcx ; +0x32, 0x140169e72 mov [rsp+150h+var_100], rcx ; +0x35, 0x140169e75 xor r13d, r13d ; +0x3a, 0x140169e7a xorps xmm0, xmm0 ; +0x3d, 0x140169e7d movups [rbp+50h+Src], xmm0 ; +0x40, 0x140169e80 mov [rbp+50h+var_58], r13 ; +0x44, 0x140169e84 mov r14d, 0Fh ; +0x48, 0x140169e88 mov [rbp+50h+var_50], r14 ; +0x4e, 0x140169e8e mov byte ptr [rbp+50h+Src], r13b ; +0x52, 0x140169e92 mov rcx, cs:qword_1406C2EC0 ; +0x56, 0x140169e96 test rcx, rcx ; +0x5d, 0x140169e9d jnz short loc_140169ED1 ; +0x60, 0x140169ea0 mov ecx, 3D0h; Size ; +0x62, 0x140169ea2 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x67, 0x140169ea7 mov [rsp+150h+var_F8], rax ; +0x6c, 0x140169eac mov rcx, rax ; +0x71, 0x140169eb1 call sub_140141280 ; +0x74, 0x140169eb4 nop ; +0x79, 0x140169eb9 mov cs:qword_1406C2EC0, rax ; +0x7a, 0x140169eba mov rdx, [rax] ; +0x81, 0x140169ec1 mov rcx, rax ; +0x84, 0x140169ec4 call qword ptr [rdx+48h] ; +0x87, 0x140169ec7 mov rcx, cs:qword_1406C2EC0 ; +0x8a, 0x140169eca xor edx, edx ; +0x91, 0x140169ed1 call GameLevelManager__getCompletedLevels ; +0x93, 0x140169ed3 mov r15, rax ; +0x98, 0x140169ed8 mov edi, r13d ; +0x9b, 0x140169edb mov rcx, rax ; +0x9e, 0x140169ede call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xa1, 0x140169ee1 mov rsi, 0FFFFFFFFFFFFFFFFh ; +0xa7, 0x140169ee7 test eax, eax ; +0xae, 0x140169eee jz loc_14016A005 ; +0xb0, 0x140169ef0 lea r13, word_140531E94 ; +0xb6, 0x140169ef6 lea r12, word_140531E9C ; +0xbd, 0x140169efd mov edx, edi ; +0xc4, 0x140169f04 mov rcx, r15 ; +0xc6, 0x140169f06 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0xc9, 0x140169f09 mov r14, rax ; +0xcf, 0x140169f0f test edi, edi ; +0xd2, 0x140169f12 jz short loc_140169F2C ; +0xd4, 0x140169f14 mov r8d, 1; Size ; +0xd6, 0x140169f16 lea rdx, asc_140554C94; ";" ; +0xdc, 0x140169f1c lea rcx, [rbp+50h+Src]; Src ; +0xe3, 0x140169f23 call sub_140041270 ; +0xe7, 0x140169f27 lea rdx, [r14+198h] ; +0xec, 0x140169f2c lea rcx, [rbp+50h+var_A8] ; +0xf3, 0x140169f33 call sub_14003BDB0 ; +0xf7, 0x140169f37 lea rcx, [rbp+50h+var_A8] ; +0xfc, 0x140169f3c cmp [rbp+50h+var_90], 0Fh ; +0x100, 0x140169f40 cmova rcx, qword ptr [rbp+50h+var_A8] ; +0x105, 0x140169f45 mov rbx, rsi ; +0x10a, 0x140169f4a nop dword ptr [rax] ; +0x10d, 0x140169f4d inc rbx ; +0x110, 0x140169f50 cmp byte ptr [rcx+rbx], 0 ; +0x113, 0x140169f53 jnz short loc_140169F50 ; +0x117, 0x140169f57 lea rcx, [rbp+50h+var_A8] ; +0x119, 0x140169f59 call sub_14003A830 ; +0x11d, 0x140169f5d mov ecx, [r14+2FCh] ; +0x122, 0x140169f62 sub ecx, [r14+300h] ; +0x129, 0x140169f69 mov eax, [r14+2F0h] ; +0x130, 0x140169f70 sub eax, [r14+2F4h] ; +0x137, 0x140169f77 mov r8d, [r14+148h] ; +0x13e, 0x140169f7e sub r8d, [r14+14Ch] ; +0x145, 0x140169f85 mov [rsp+150h+var_110], ebx ; +0x14c, 0x140169f8c mov [rsp+150h+var_118], r13 ; +0x150, 0x140169f90 mov dword ptr [rsp+150h+var_120], ecx ; +0x155, 0x140169f95 mov [rsp+150h+var_128], r12 ; +0x159, 0x140169f99 mov dword ptr [rsp+150h+var_130], eax ; +0x15e, 0x140169f9e lea r9, word_140531EA0 ; +0x162, 0x140169fa2 lea rdx, word_140531EA4 ; +0x169, 0x140169fa9 lea rcx, aSISISISI; "%s,%i,%s,%i,%s,%i,%s,%i" ; +0x170, 0x140169fb0 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x177, 0x140169fb7 mov rcx, rax ; +0x17d, 0x140169fbd call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x180, 0x140169fc0 mov r8, rsi ; +0x186, 0x140169fc6 nop dword ptr [rax+00000000h] ; +0x189, 0x140169fc9 inc r8; Size ; +0x190, 0x140169fd0 cmp byte ptr [rax+r8], 0 ; +0x193, 0x140169fd3 jnz short loc_140169FD0 ; +0x198, 0x140169fd8 mov rdx, rax; void * ; +0x19a, 0x140169fda lea rcx, [rbp+50h+Src]; Src ; +0x19d, 0x140169fdd call sub_140041270 ; +0x1a1, 0x140169fe1 inc edi ; +0x1a6, 0x140169fe6 mov rcx, r15 ; +0x1a8, 0x140169fe8 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x1ab, 0x140169feb cmp edi, eax ; +0x1b1, 0x140169ff1 jb loc_140169F04 ; +0x1b3, 0x140169ff3 mov r14, [rbp+50h+var_50] ; +0x1b9, 0x140169ff9 mov r12, [rsp+150h+var_100] ; +0x1bd, 0x140169ffd xor r13d, r13d ; +0x1c2, 0x14016a002 mov rdx, cs:qword_1406C2ED8 ; +0x1c5, 0x14016a005 test rdx, rdx ; +0x1cc, 0x14016a00c jnz short loc_14016A040 ; +0x1cf, 0x14016a00f mov ecx, 668h; Size ; +0x1d1, 0x14016a011 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1d6, 0x14016a016 mov [rsp+150h+var_100], rax ; +0x1db, 0x14016a01b mov rcx, rax ; +0x1e0, 0x14016a020 call sub_14017AB00 ; +0x1e3, 0x14016a023 nop ; +0x1e8, 0x14016a028 mov cs:qword_1406C2ED8, rax ; +0x1e9, 0x14016a029 mov rdx, [rax] ; +0x1f0, 0x14016a030 mov rcx, rax ; +0x1f3, 0x14016a033 call qword ptr [rdx+48h] ; +0x1f6, 0x14016a036 mov rdx, cs:qword_1406C2ED8 ; +0x1f9, 0x14016a039 add rdx, 248h ; +0x200, 0x14016a040 lea rcx, [rbp+50h+var_48] ; +0x207, 0x14016a047 call sub_14003BDB0 ; +0x20b, 0x14016a04b nop ; +0x210, 0x14016a050 call GJAccountManager__sharedState ; +0x211, 0x14016a051 mov edi, [rax+168h] ; +0x216, 0x14016a056 sub edi, [rax+16Ch] ; +0x21c, 0x14016a05c lea rbx, [rbp+50h+var_48] ; +0x222, 0x14016a062 cmp [rbp+50h+var_30], 0Fh ; +0x226, 0x14016a066 cmova rbx, [rbp+50h+var_48] ; +0x22b, 0x14016a06b lea rax, word_140531E88 ; +0x230, 0x14016a070 mov [rsp+150h+var_120], rax ; +0x237, 0x14016a077 mov dword ptr [rsp+150h+var_128], 62h ; 'b' ; +0x23c, 0x14016a07c mov dword ptr [rsp+150h+var_130], 67h ; 'g' ; +0x244, 0x14016a084 lea r9, a2893; "2893" ; +0x24c, 0x14016a08c lea r8, aMfd; "mfd" ; +0x253, 0x14016a093 mov edx, 57h ; 'W' ; +0x25a, 0x14016a09a lea rcx, aCSSCCS; "%c%s%s%c%c%s" ; +0x25f, 0x14016a09f call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x266, 0x14016a0a6 mov rcx, rax ; +0x26c, 0x14016a0ac call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x26f, 0x14016a0af mov r9, rax ; +0x275, 0x14016a0b5 mov r8d, edi ; +0x278, 0x14016a0b8 mov rdx, rbx ; +0x27b, 0x14016a0bb lea rcx, aUdidSAccountid; "udid=%s&accountID=%i&secret=%s" ; +0x27e, 0x14016a0be call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x285, 0x14016a0c5 mov rcx, rax ; +0x28b, 0x14016a0cb call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x28e, 0x14016a0ce xorps xmm0, xmm0 ; +0x294, 0x14016a0d4 movups [rbp+50h+var_88], xmm0 ; +0x297, 0x14016a0d7 mov [rbp+50h+var_78], r13 ; +0x29b, 0x14016a0db mov [rbp+50h+var_70], r13 ; +0x29f, 0x14016a0df mov r8, rsi ; +0x2a3, 0x14016a0e3 inc r8 ; +0x2a6, 0x14016a0e6 cmp byte ptr [rax+r8], 0 ; +0x2a9, 0x14016a0e9 jnz short loc_14016A0E6 ; +0x2ae, 0x14016a0ee mov rdx, rax ; +0x2b0, 0x14016a0f0 lea rcx, [rbp+50h+var_88] ; +0x2b3, 0x14016a0f3 call sub_14003A930 ; +0x2b7, 0x14016a0f7 nop ; +0x2bc, 0x14016a0fc mov r8d, 0Ch; Size ; +0x2bd, 0x14016a0fd lea rdx, aLevelsinfo; "&levelsInfo=" ; +0x2c3, 0x14016a103 lea rcx, [rbp+50h+var_88]; Src ; +0x2ca, 0x14016a10a call sub_140041270 ; +0x2ce, 0x14016a10e lea rdx, [rbp+50h+Src] ; +0x2d3, 0x14016a113 cmp r14, 0Fh ; +0x2d7, 0x14016a117 cmova rdx, qword ptr [rbp+50h+Src]; void * ; +0x2db, 0x14016a11b mov r8, rsi ; +0x2e0, 0x14016a120 inc r8; Size ; +0x2e3, 0x14016a123 cmp byte ptr [rdx+r8], 0 ; +0x2e6, 0x14016a126 jnz short loc_14016A123 ; +0x2eb, 0x14016a12b lea rcx, [rbp+50h+var_88]; Src ; +0x2ed, 0x14016a12d call sub_140041270 ; +0x2f1, 0x14016a131 lea rdx, [rbp+50h+var_88] ; +0x2f6, 0x14016a136 cmp [rbp+50h+var_70], 0Fh ; +0x2fa, 0x14016a13a cmova rdx, qword ptr [rbp+50h+var_88] ; +0x2ff, 0x14016a13f lea rax, [rbp+50h+var_D0] ; +0x304, 0x14016a144 mov [rsp+150h+var_100], rax ; +0x308, 0x14016a148 lea rax, [rbp+50h+var_A8] ; +0x30d, 0x14016a14d mov [rsp+150h+var_F8], rax ; +0x311, 0x14016a151 xorps xmm0, xmm0 ; +0x316, 0x14016a156 movups [rbp+50h+var_D0], xmm0 ; +0x319, 0x14016a159 mov [rbp+50h+var_C0], r13 ; +0x31d, 0x14016a15d mov [rbp+50h+var_B8], 0Fh ; +0x321, 0x14016a161 mov byte ptr [rbp+50h+var_D0], 0 ; +0x329, 0x14016a169 movups [rbp+50h+var_A8], xmm0 ; +0x32d, 0x14016a16d mov [rbp+50h+var_98], r13 ; +0x331, 0x14016a171 mov [rbp+50h+var_90], r13 ; +0x335, 0x14016a175 nop dword ptr [rax+00000000h] ; +0x339, 0x14016a179 inc rsi ; +0x340, 0x14016a180 cmp byte ptr [rdx+rsi], 0 ; +0x343, 0x14016a183 jnz short loc_14016A180 ; +0x347, 0x14016a187 mov r8, rsi ; +0x349, 0x14016a189 lea rcx, [rbp+50h+var_A8] ; +0x34c, 0x14016a18c call sub_14003A930 ; +0x350, 0x14016a190 nop ; +0x355, 0x14016a195 xorps xmm0, xmm0 ; +0x356, 0x14016a196 movups [rsp+150h+var_F0], xmm0 ; +0x359, 0x14016a199 mov [rsp+150h+var_E0], r13 ; +0x35e, 0x14016a19e mov [rsp+150h+var_D8], 0Fh ; +0x363, 0x14016a1a3 mov ecx, 40h ; '@' ; +0x36c, 0x14016a1ac call sub_14003AA10 ; +0x371, 0x14016a1b1 mov rdx, rax ; +0x376, 0x14016a1b6 mov qword ptr [rsp+150h+var_F0], rax ; +0x379, 0x14016a1b9 mov [rsp+150h+var_E0], 37h ; '7' ; +0x37e, 0x14016a1be mov [rsp+150h+var_D8], 3Fh ; '?' ; +0x387, 0x14016a1c7 movups xmm0, cs:xmmword_14055A5D8 ; +0x390, 0x14016a1d0 movups xmmword ptr [rax], xmm0 ; +0x397, 0x14016a1d7 movups xmm1, cs:xmmword_14055A5E8 ; +0x39a, 0x14016a1da movups xmmword ptr [rax+10h], xmm1 ; +0x3a1, 0x14016a1e1 movups xmm0, cs:xmmword_14055A5F8 ; +0x3a5, 0x14016a1e5 movups xmmword ptr [rax+20h], xmm0 ; +0x3ac, 0x14016a1ec mov eax, cs:dword_14055A608 ; +0x3b0, 0x14016a1f0 mov [rdx+30h], eax ; +0x3b6, 0x14016a1f6 movzx eax, cs:word_14055A60C ; +0x3b9, 0x14016a1f9 mov [rdx+34h], ax ; +0x3c0, 0x14016a200 movzx eax, cs:byte_14055A60E ; +0x3c4, 0x14016a204 mov [rdx+36h], al ; +0x3cb, 0x14016a20b mov byte ptr [rdx+37h], 0 ; +0x3ce, 0x14016a20e mov dword ptr [rsp+150h+var_130], 11h ; +0x3d2, 0x14016a212 lea r9, [rbp+50h+var_D0] ; +0x3da, 0x14016a21a lea r8, [rbp+50h+var_A8] ; +0x3de, 0x14016a21e lea rdx, [rsp+150h+var_F0] ; +0x3e2, 0x14016a222 mov rcx, r12 ; +0x3e7, 0x14016a227 call GameLevelManager__ProcessHttpRequest ; +0x3ea, 0x14016a22a nop ; +0x3ef, 0x14016a22f lea rcx, [rbp+50h+var_88] ; +0x3f0, 0x14016a230 call sub_14003A830 ; +0x3f4, 0x14016a234 nop ; +0x3f9, 0x14016a239 lea rcx, [rbp+50h+var_48] ; +0x3fa, 0x14016a23a call sub_14003A830 ; +0x3fe, 0x14016a23e nop ; +0x403, 0x14016a243 lea rcx, [rbp+50h+Src] ; +0x404, 0x14016a244 call sub_14003A830 ; +0x408, 0x14016a248 mov rcx, [rbp+50h+var_28] ; +0x40d, 0x14016a24d xor rcx, rsp; StackCookie ; +0x411, 0x14016a251 call __security_check_cookie ; +0x414, 0x14016a254 lea r11, [rsp+150h+var_20] ; +0x419, 0x14016a259 mov rbx, [r11+38h] ; +0x421, 0x14016a261 mov rsi, [r11+40h] ; +0x425, 0x14016a265 mov rdi, [r11+48h] ; +0x429, 0x14016a269 mov rsp, r11 ; +0x42d, 0x14016a26d pop r15 ; +0x430, 0x14016a270 pop r14 ; +0x432, 0x14016a272 pop r13 ; +0x434, 0x14016a274 pop r12 ; +0x436, 0x14016a276 pop rbp ; +0x438, 0x14016a278 retn ; +0x439, 0x14016a279