; ; cocos2d::CCProfilingBeginTimingBlock from 0x180097b40 to 0x180097c2f (239 bytes) ; ; 2 xrefs: ; > @ 0x18014cf68 ; > @ 0x1801c0990 ; ; 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:22:10 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x180097b40 mov [rsp+arg_10], rsi ; +0x5, 0x180097b45 push rdi ; +0xa, 0x180097b4a sub rsp, 60h ; +0xb, 0x180097b4b mov rax, cs:__security_cookie ; +0xf, 0x180097b4f xor rax, rsp ; +0x16, 0x180097b56 mov [rsp+68h+var_18], rax ; +0x19, 0x180097b59 mov rdi, rcx ; +0x1e, 0x180097b5e call ?sharedProfiler@CCProfiler@cocos2d@@SAPEAV12@XZ; cocos2d::CCProfiler::sharedProfiler(void) ; +0x21, 0x180097b61 mov rsi, rax ; +0x26, 0x180097b66 mov rdx, rdi; Str ; +0x29, 0x180097b69 lea rcx, [rsp+68h+Block]; void * ; +0x2c, 0x180097b6c call sub_180005A10 ; +0x31, 0x180097b71 nop ; +0x36, 0x180097b76 lea rdx, [rsp+68h+Block] ; +0x37, 0x180097b77 mov rcx, [rsi+38h] ; +0x3c, 0x180097b7c call ?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 &) ; +0x40, 0x180097b80 mov rbx, rax ; +0x45, 0x180097b85 mov rdx, [rsp+68h+var_20] ; +0x48, 0x180097b88 cmp rdx, 0Fh ; +0x4d, 0x180097b8d jbe short loc_180097BDB ; +0x51, 0x180097b91 inc rdx ; +0x53, 0x180097b93 mov rcx, [rsp+68h+Block]; Block ; +0x56, 0x180097b96 mov rax, rcx ; +0x5b, 0x180097b9b cmp rdx, 1000h ; +0x5e, 0x180097b9e jb short loc_180097BD6 ; +0x65, 0x180097ba5 add rdx, 27h ; ''' ; +0x67, 0x180097ba7 mov rcx, [rcx-8] ; +0x6b, 0x180097bab sub rax, rcx ; +0x6f, 0x180097baf sub rax, 8 ; +0x72, 0x180097bb2 cmp rax, 1Fh ; +0x76, 0x180097bb6 jbe short loc_180097BD6 ; +0x7a, 0x180097bba mov [rsp+68h+Reserved], 0; Reserved ; +0x7c, 0x180097bbc xor r9d, r9d; LineNo ; +0x85, 0x180097bc5 xor r8d, r8d; FileName ; +0x88, 0x180097bc8 xor edx, edx; FunctionName ; +0x8b, 0x180097bcb xor ecx, ecx; Expression ; +0x8d, 0x180097bcd call cs:_invoke_watson ; +0x8f, 0x180097bcf align 2 ; +0x95, 0x180097bd5 call j_j_free_0 ; +0x96, 0x180097bd6 movdqa xmm0, cs:xmmword_1800EC500 ; +0x9b, 0x180097bdb movdqu xmmword ptr [rsp+40h], xmm0 ; +0xa3, 0x180097be3 mov byte ptr [rsp+68h+Block], 0 ; +0xa9, 0x180097be9 test rbx, rbx ; +0xae, 0x180097bee jnz short loc_180097C01 ; +0xb1, 0x180097bf1 mov rdx, rdi; char * ; +0xb3, 0x180097bf3 mov rcx, rsi; this ; +0xb6, 0x180097bf6 call ?createAndAddTimerWithName@CCProfiler@cocos2d@@QEAAPEAVCCProfilingTimer@2@PEBD@Z; cocos2d::CCProfiler::createAndAddTimerWithName(char const *) ; +0xb9, 0x180097bf9 mov rbx, rax ; +0xbe, 0x180097bfe inc dword ptr [rbx+58h] ; +0xc1, 0x180097c01 lea rcx, [rbx+78h]; this ; +0xc4, 0x180097c04 xor edx, edx; struct timeval * ; +0xc8, 0x180097c08 call ?gettimeofday@cocos2d@@YAHPEAUtimeval@@PEAUtimezone@1@@Z; cocos2d::gettimeofday(timeval *,cocos2d::timezone *) ; +0xca, 0x180097c0a mov rcx, [rsp+68h+var_18] ; +0xcf, 0x180097c0f xor rcx, rsp; StackCookie ; +0xd4, 0x180097c14 call __security_check_cookie ; +0xd7, 0x180097c17 mov rbx, [rsp+68h+arg_8] ; +0xdc, 0x180097c1c mov rsi, [rsp+68h+arg_10] ; +0xe1, 0x180097c21 add rsp, 60h ; +0xe9, 0x180097c29 pop rdi ; +0xed, 0x180097c2d retn ; +0xee, 0x180097c2e