; ; EditLevelLayer::onLevelLeaderboard from 0x140179b40 to 0x140179c94 (340 bytes) ; ; 2 xrefs: ; > EditLevelLayer::init @ 0x140179708 ; > @ 0x1409186bc ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:34 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x140179b40 push rdi ; +0x5, 0x140179b45 sub rsp, 60h ; +0x6, 0x140179b46 mov rax, cs:__security_cookie ; +0xa, 0x140179b4a xor rax, rsp ; +0x11, 0x140179b51 mov [rsp+68h+var_10], rax ; +0x14, 0x140179b54 mov rdi, rcx ; +0x19, 0x140179b59 mov rbx, cs:qword_14090BFD0 ; +0x1c, 0x140179b5c test rbx, rbx ; +0x23, 0x140179b63 jnz short loc_140179B9A ; +0x26, 0x140179b66 mov ecx, 6E8h; Size ; +0x28, 0x140179b68 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x2d, 0x140179b6d mov [rsp+68h+var_38], rax ; +0x32, 0x140179b72 mov rcx, rax ; +0x37, 0x140179b77 call GameManager__GameManager ; +0x3a, 0x140179b7a nop ; +0x3f, 0x140179b7f mov cs:qword_14090BFD0, rax ; +0x40, 0x140179b80 mov rcx, [rax] ; +0x47, 0x140179b87 mov rdx, [rcx+48h] ; +0x4a, 0x140179b8a mov rcx, rax ; +0x4e, 0x140179b8e call rdx ; +0x51, 0x140179b91 mov rbx, cs:qword_14090BFD0 ; +0x53, 0x140179b93 xorps xmm0, xmm0 ; +0x5a, 0x140179b9a movups xmmword ptr [rsp+68h+Block], xmm0 ; +0x5d, 0x140179b9d mov [rsp+68h+var_20], 3 ; +0x62, 0x140179ba2 mov [rsp+68h+var_18], 0Fh ; +0x6b, 0x140179bab mov eax, cs:dword_140757618 ; +0x74, 0x140179bb4 mov word ptr [rsp+68h+Block], ax ; +0x7a, 0x140179bba movzx eax, byte ptr cs:dword_140757618+2 ; +0x7f, 0x140179bbf mov byte ptr [rsp+68h+Block+2], al ; +0x86, 0x140179bc6 mov byte ptr [rsp+68h+Block+3], 0 ; +0x8a, 0x140179bca mov r8d, 4; Size ; +0x8f, 0x140179bcf lea rdx, a0164; "0164" ; +0x95, 0x140179bd5 lea rcx, [rsp+68h+Block]; Src ; +0x9c, 0x140179bdc call sub_140044D80 ; +0xa1, 0x140179be1 lea rdx, [rsp+68h+Block] ; +0xa6, 0x140179be6 mov rcx, [rbx+1B0h] ; +0xab, 0x140179beb call cs:?valueForKey@CCDictionary@cocos2d@@QEAAPEBVCCString@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::valueForKey(std::string const &) ; +0xb2, 0x140179bf2 mov rcx, rax ; +0xb8, 0x140179bf8 call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xbb, 0x140179bfb mov ebx, eax ; +0xc1, 0x140179c01 mov rdx, [rsp+68h+var_18] ; +0xc3, 0x140179c03 cmp rdx, 0Fh ; +0xc8, 0x140179c08 jbe short loc_140179C59 ; +0xcc, 0x140179c0c inc rdx ; +0xce, 0x140179c0e mov r8, [rsp+68h+Block] ; +0xd1, 0x140179c11 mov rcx, r8 ; +0xd6, 0x140179c16 cmp rdx, 1000h ; +0xd9, 0x140179c19 jb short loc_140179C51 ; +0xe0, 0x140179c20 add rdx, 27h ; ''' ; +0xe2, 0x140179c22 mov r8, [r8-8] ; +0xe6, 0x140179c26 sub rcx, r8 ; +0xea, 0x140179c2a sub rcx, 8 ; +0xed, 0x140179c2d cmp rcx, 1Fh ; +0xf1, 0x140179c31 jbe short loc_140179C51 ; +0xf5, 0x140179c35 mov [rsp+68h+Reserved], 0; Reserved ; +0xf7, 0x140179c37 xor r9d, r9d; LineNo ; +0x100, 0x140179c40 xor r8d, r8d; FileName ; +0x103, 0x140179c43 xor edx, edx; FunctionName ; +0x106, 0x140179c46 xor ecx, ecx; Expression ; +0x108, 0x140179c48 call cs:_invoke_watson ; +0x10a, 0x140179c4a db 0CCh ; +0x110, 0x140179c50 mov rcx, r8; Block ; +0x111, 0x140179c51 call j_j_free ; +0x114, 0x140179c54 mov r8d, ebx ; +0x119, 0x140179c59 mov edx, 3 ; +0x11c, 0x140179c5c mov rcx, [rdi+1D8h] ; +0x121, 0x140179c61 call LevelLeaderboard__create ; +0x128, 0x140179c68 mov rcx, [rax] ; +0x12d, 0x140179c6d mov rdx, [rcx+428h] ; +0x130, 0x140179c70 mov rcx, rax ; +0x137, 0x140179c77 call rdx ; +0x13a, 0x140179c7a mov rcx, [rsp+68h+var_10] ; +0x13c, 0x140179c7c xor rcx, rsp; StackCookie ; +0x141, 0x140179c81 call __security_check_cookie ; +0x144, 0x140179c84 mov rbx, [rsp+68h+arg_8] ; +0x149, 0x140179c89 add rsp, 60h ; +0x14e, 0x140179c8e pop rdi ; +0x152, 0x140179c92 retn ; +0x153, 0x140179c93