; ; GameLevelManager::setDiffVal from 0x14016a780 to 0x14016a865 (229 bytes) ; ; 3 xrefs: ; > LevelSearchLayer::toggleDifficulty @ 0x1403121d3 ; > LevelSearchLayer::toggleDifficultyNum @ 0x140312436 ; > @ 0x1406cad58 ; ; 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+arg_18], rbx ; +0x0, 0x14016a780 push rdi ; +0x5, 0x14016a785 sub rsp, 50h ; +0x6, 0x14016a786 mov rax, cs:__security_cookie ; +0xa, 0x14016a78a xor rax, rsp ; +0x11, 0x14016a791 mov [rsp+58h+var_18], rax ; +0x14, 0x14016a794 movzx edi, r8b ; +0x19, 0x14016a799 mov rbx, rcx ; +0x1d, 0x14016a79d lea rcx, aDiffI; "Diff%i" ; +0x20, 0x14016a7a0 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x27, 0x14016a7a7 mov rcx, rax ; +0x2d, 0x14016a7ad call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x30, 0x14016a7b0 xorps xmm0, xmm0 ; +0x36, 0x14016a7b6 movups xmmword ptr [rsp+58h+Block], xmm0 ; +0x39, 0x14016a7b9 xorps xmm1, xmm1 ; +0x3e, 0x14016a7be movdqu [rsp+58h+var_28], xmm1 ; +0x41, 0x14016a7c1 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x47, 0x14016a7c7 xchg ax, ax ; +0x4e, 0x14016a7ce inc r8 ; +0x50, 0x14016a7d0 cmp byte ptr [rax+r8], 0 ; +0x53, 0x14016a7d3 jnz short loc_14016A7D0 ; +0x58, 0x14016a7d8 mov rdx, rax ; +0x5a, 0x14016a7da lea rcx, [rsp+58h+Block] ; +0x5d, 0x14016a7dd call sub_14003A930 ; +0x62, 0x14016a7e2 nop ; +0x67, 0x14016a7e7 mov edx, edi ; +0x68, 0x14016a7e8 lea rcx, aI_11; "%i" ; +0x6a, 0x14016a7ea call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x71, 0x14016a7f1 mov rdx, rax ; +0x77, 0x14016a7f7 lea r8, [rsp+58h+Block] ; +0x7a, 0x14016a7fa mov rcx, [rbx+158h] ; +0x7f, 0x14016a7ff call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x86, 0x14016a806 nop ; +0x8c, 0x14016a80c mov rdx, qword ptr [rsp+58h+var_28+8] ; +0x8d, 0x14016a80d cmp rdx, 0Fh ; +0x92, 0x14016a812 jbe short loc_14016A84D ; +0x96, 0x14016a816 inc rdx ; +0x98, 0x14016a818 mov rcx, [rsp+58h+Block]; Block ; +0x9b, 0x14016a81b mov rax, rcx ; +0xa0, 0x14016a820 cmp rdx, 1000h ; +0xa3, 0x14016a823 jb short loc_14016A848 ; +0xaa, 0x14016a82a add rdx, 27h ; ''' ; +0xac, 0x14016a82c mov rcx, [rcx-8] ; +0xb0, 0x14016a830 sub rax, rcx ; +0xb4, 0x14016a834 add rax, 0FFFFFFFFFFFFFFF8h ; +0xb7, 0x14016a837 cmp rax, 1Fh ; +0xbb, 0x14016a83b jbe short loc_14016A848 ; +0xbf, 0x14016a83f call cs:_invalid_parameter_noinfo_noreturn ; +0xc1, 0x14016a841 align 8 ; +0xc7, 0x14016a847 call j_j_free ; +0xc8, 0x14016a848 mov rcx, [rsp+58h+var_18] ; +0xcd, 0x14016a84d xor rcx, rsp; StackCookie ; +0xd2, 0x14016a852 call __security_check_cookie ; +0xd5, 0x14016a855 mov rbx, [rsp+58h+arg_18] ; +0xda, 0x14016a85a add rsp, 50h ; +0xdf, 0x14016a85f pop rdi ; +0xe3, 0x14016a863 retn ; +0xe4, 0x14016a864