; ; GJAccountManager::syncAccount from 0x1402028c0 to 0x140202b27 (615 bytes) ; ; 2 xrefs: ; > GJAccountManager::onGetAccountSyncURLCompleted @ 0x140202819 ; > @ 0x1406ccb4c ; ; 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_10], rbx ; +0x0, 0x1402028c0 mov [rsp-8+arg_18], rsi ; +0x5, 0x1402028c5 push rbp ; +0xa, 0x1402028ca push rdi ; +0xb, 0x1402028cb push r14 ; +0xc, 0x1402028cc lea rbp, [rsp-47h] ; +0xe, 0x1402028ce sub rsp, 0F0h ; +0x13, 0x1402028d3 mov rax, cs:__security_cookie ; +0x1a, 0x1402028da xor rax, rsp ; +0x21, 0x1402028e1 mov [rbp+57h+var_20], rax ; +0x24, 0x1402028e4 mov rdi, rdx ; +0x28, 0x1402028e8 mov rsi, rcx ; +0x2b, 0x1402028eb mov [rbp+57h+var_68], rdx ; +0x2e, 0x1402028ee xorps xmm0, xmm0 ; +0x32, 0x1402028f2 movups xmmword ptr [rbp+57h+Block], xmm0 ; +0x35, 0x1402028f5 xor r14d, r14d ; +0x39, 0x1402028f9 mov [rbp+57h+var_50], r14 ; +0x3c, 0x1402028fc mov [rbp+57h+var_48], r14 ; +0x40, 0x140202900 lea r8d, [r14+0Ch] ; +0x44, 0x140202904 lea rdx, aSyncAccount; "sync_account" ; +0x48, 0x140202908 lea rcx, [rbp+57h+Block] ; +0x4f, 0x14020290f call sub_14003A930 ; +0x53, 0x140202913 nop ; +0x58, 0x140202918 lea rdx, [rbp+57h+Block] ; +0x59, 0x140202919 mov rcx, [rsi+140h] ; +0x5d, 0x14020291d call cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::objectForKey(std::string const &) ; +0x64, 0x140202924 mov rbx, rax ; +0x6a, 0x14020292a mov rdx, [rbp+57h+var_48] ; +0x6d, 0x14020292d cmp rdx, 0Fh ; +0x71, 0x140202931 jbe short loc_14020296B ; +0x75, 0x140202935 inc rdx ; +0x77, 0x140202937 mov rcx, [rbp+57h+Block]; Block ; +0x7a, 0x14020293a mov rax, rcx ; +0x7e, 0x14020293e cmp rdx, 1000h ; +0x81, 0x140202941 jb short loc_140202966 ; +0x88, 0x140202948 add rdx, 27h ; ''' ; +0x8a, 0x14020294a mov rcx, [rcx-8] ; +0x8e, 0x14020294e sub rax, rcx ; +0x92, 0x140202952 add rax, 0FFFFFFFFFFFFFFF8h ; +0x95, 0x140202955 cmp rax, 1Fh ; +0x99, 0x140202959 jbe short loc_140202966 ; +0x9d, 0x14020295d call cs:_invalid_parameter_noinfo_noreturn ; +0x9f, 0x14020295f align 2 ; +0xa5, 0x140202965 call j_j_free ; +0xa6, 0x140202966 test rbx, rbx ; +0xab, 0x14020296b jz short loc_14020297F ; +0xae, 0x14020296e mov rcx, rdi ; +0xb0, 0x140202970 call sub_14003A830 ; +0xb3, 0x140202973 xor al, al ; +0xb8, 0x140202978 jmp loc_140202B03 ; +0xba, 0x14020297a lea rdx, aSyncAccount; "sync_account" ; +0xbf, 0x14020297f mov rcx, rsi ; +0xc6, 0x140202986 call GJAccountManager__addDLToActive ; +0xc9, 0x140202989 cmp cs:qword_1406C2EC0, 0 ; +0xce, 0x14020298e jnz short loc_1402029BF ; +0xd6, 0x140202996 mov ecx, 3D0h; Size ; +0xd8, 0x140202998 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xdd, 0x14020299d mov [rbp+57h+var_C0], rax ; +0xe2, 0x1402029a2 mov rcx, rax ; +0xe6, 0x1402029a6 call sub_140141280 ; +0xe9, 0x1402029a9 nop ; +0xee, 0x1402029ae mov cs:qword_1406C2EC0, rax ; +0xef, 0x1402029af mov rdx, [rax] ; +0xf6, 0x1402029b6 mov rcx, rax ; +0xf9, 0x1402029b9 call qword ptr [rdx+48h] ; +0xfc, 0x1402029bc lea rdx, [rbp+57h+Src] ; +0xff, 0x1402029bf call GameLevelManager__getBasePostString ; +0x103, 0x1402029c3 nop ; +0x108, 0x1402029c8 lea rax, a9; "9" ; +0x109, 0x1402029c9 mov [rsp+100h+var_D0], rax ; +0x110, 0x1402029d0 mov [rsp+100h+var_D8], 63h ; 'c' ; +0x115, 0x1402029d5 mov [rsp+100h+var_E0], 67h ; 'g' ; +0x11d, 0x1402029dd lea r9, a3899; "3899" ; +0x125, 0x1402029e5 lea r8, aMfv; "mfv" ; +0x12c, 0x1402029ec mov edx, 57h ; 'W' ; +0x133, 0x1402029f3 lea rcx, aCSSCCS; "%c%s%s%c%c%s" ; +0x138, 0x1402029f8 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x13f, 0x1402029ff mov rcx, rax ; +0x145, 0x140202a05 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x148, 0x140202a08 mov rdx, rax ; +0x14e, 0x140202a0e lea rcx, aSecretS; "&secret=%s" ; +0x151, 0x140202a11 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x158, 0x140202a18 mov rcx, rax ; +0x15e, 0x140202a1e call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x161, 0x140202a21 mov rbx, 0FFFFFFFFFFFFFFFFh ; +0x167, 0x140202a27 mov r8, rbx ; +0x16e, 0x140202a2e inc r8; Size ; +0x171, 0x140202a31 cmp byte ptr [rax+r8], 0 ; +0x174, 0x140202a34 jnz short loc_140202A31 ; +0x179, 0x140202a39 mov rdx, rax; void * ; +0x17b, 0x140202a3b lea rcx, [rbp+57h+Src]; Src ; +0x17e, 0x140202a3e call sub_140041270 ; +0x182, 0x140202a42 lea rax, [rbp+57h+Block] ; +0x187, 0x140202a47 mov [rbp+57h+var_C0], rax ; +0x18b, 0x140202a4b lea rax, [rbp+57h+var_B8] ; +0x18f, 0x140202a4f mov [rbp+57h+var_98], rax ; +0x193, 0x140202a53 mov dword ptr [rbp+57h+Block+0Ch], r14d ; +0x197, 0x140202a57 mov [rbp+57h+var_50], 0Bh ; +0x19b, 0x140202a5b mov [rbp+57h+var_48], 0Fh ; +0x1a3, 0x140202a63 movsd xmm0, cs:qword_140565478 ; +0x1ab, 0x140202a6b movsd [rbp+57h+Block], xmm0 ; +0x1b3, 0x140202a73 movzx eax, cs:word_140565480 ; +0x1b8, 0x140202a78 mov word ptr [rbp+57h+Block+8], ax ; +0x1bf, 0x140202a7f movzx eax, cs:byte_140565482 ; +0x1c3, 0x140202a83 mov byte ptr [rbp+57h+Block+0Ah], al ; +0x1ca, 0x140202a8a mov byte ptr [rbp+57h+Block+0Bh], 0 ; +0x1cd, 0x140202a8d lea rdx, [rbp+57h+Src] ; +0x1d1, 0x140202a91 cmp [rbp+57h+var_28], 0Fh ; +0x1d5, 0x140202a95 cmova rdx, [rbp+57h+Src] ; +0x1da, 0x140202a9a xorps xmm0, xmm0 ; +0x1df, 0x140202a9f movups [rbp+57h+var_B8], xmm0 ; +0x1e2, 0x140202aa2 mov [rbp+57h+var_A8], r14 ; +0x1e6, 0x140202aa6 mov [rbp+57h+var_A0], r14 ; +0x1ea, 0x140202aaa xchg ax, ax ; +0x1ee, 0x140202aae inc rbx ; +0x1f0, 0x140202ab0 cmp byte ptr [rdx+rbx], 0 ; +0x1f3, 0x140202ab3 jnz short loc_140202AB0 ; +0x1f7, 0x140202ab7 mov r8, rbx ; +0x1f9, 0x140202ab9 lea rcx, [rbp+57h+var_B8] ; +0x1fc, 0x140202abc call sub_14003A930 ; +0x200, 0x140202ac0 nop ; +0x205, 0x140202ac5 mov rdx, rdi ; +0x206, 0x140202ac6 lea rcx, [rbp+57h+var_88] ; +0x209, 0x140202ac9 call sub_14003BDB0 ; +0x20d, 0x140202acd nop ; +0x212, 0x140202ad2 mov [rsp+100h+var_E0], 15h ; +0x213, 0x140202ad3 lea r9, [rbp+57h+Block] ; +0x21b, 0x140202adb lea r8, [rbp+57h+var_B8] ; +0x21f, 0x140202adf mov rdx, rax ; +0x223, 0x140202ae3 mov rcx, rsi ; +0x226, 0x140202ae6 call GJAccountManager__ProcessHttpRequest ; +0x229, 0x140202ae9 nop ; +0x22e, 0x140202aee lea rcx, [rbp+57h+Src] ; +0x22f, 0x140202aef call sub_14003A830 ; +0x233, 0x140202af3 nop ; +0x238, 0x140202af8 mov rcx, rdi ; +0x239, 0x140202af9 call sub_14003A830 ; +0x23c, 0x140202afc mov al, 1 ; +0x241, 0x140202b01 mov rcx, [rbp+57h+var_20] ; +0x243, 0x140202b03 xor rcx, rsp; StackCookie ; +0x247, 0x140202b07 call __security_check_cookie ; +0x24a, 0x140202b0a lea r11, [rsp+100h+var_10] ; +0x24f, 0x140202b0f mov rbx, [r11+30h] ; +0x257, 0x140202b17 mov rsi, [r11+38h] ; +0x25b, 0x140202b1b mov rsp, r11 ; +0x25f, 0x140202b1f pop r14 ; +0x262, 0x140202b22 pop rdi ; +0x264, 0x140202b24 pop rbp ; +0x265, 0x140202b25 retn ; +0x266, 0x140202b26