; ; EditorUI::onPause from 0x1401accb0 to 0x1401ad151 (1185 bytes) ; ; 4 xrefs: ; > EditorUI::keyBackClicked @ 0x1401c1a89 ; > EditorUI::handleAction @ 0x1401c1df4 ; > EditorUI::init @ 0x1401ab166 ; > @ 0x140919d24 ; ; 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:54 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x1401accb0 mov [rsp+arg_10], rbp ; +0x5, 0x1401accb5 mov [rsp+arg_18], rsi ; +0xa, 0x1401accba push rdi ; +0xf, 0x1401accbf push r14 ; +0x10, 0x1401accc0 push r15 ; +0x12, 0x1401accc2 sub rsp, 60h ; +0x14, 0x1401accc4 mov rax, cs:__security_cookie ; +0x18, 0x1401accc8 xor rax, rsp ; +0x1f, 0x1401acccf mov [rsp+78h+var_20], rax ; +0x22, 0x1401accd2 mov rsi, rcx ; +0x27, 0x1401accd7 cmp byte ptr [rcx+67Ch], 0 ; +0x2a, 0x1401accda jnz loc_1401AD12A ; +0x31, 0x1401acce1 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x1401acce7 cmp byte ptr [rax+0B0h], 0 ; +0x3d, 0x1401acced jnz loc_1401AD12A ; +0x44, 0x1401accf4 call EditorSFXManager__sharedState ; +0x4a, 0x1401accfa mov rcx, rax ; +0x4f, 0x1401accff mov edx, 0DDh ; +0x52, 0x1401acd02 call EditorSFXManager__playAction ; +0x57, 0x1401acd07 cmp byte ptr [rsi+67Dh], 0 ; +0x5c, 0x1401acd0c jz short loc_1401ACD28 ; +0x63, 0x1401acd13 mov word ptr [rsi+67Dh], 0 ; +0x65, 0x1401acd15 mov dl, 1 ; +0x6e, 0x1401acd1e mov rcx, rsi ; +0x70, 0x1401acd20 call EditorUI__showUI ; +0x73, 0x1401acd23 mov byte ptr [rsi+2E0h], 0 ; +0x78, 0x1401acd28 mov rcx, [rsi+5E8h] ; +0x7f, 0x1401acd2f cmp dword ptr [rcx+89Ch], 0 ; +0x86, 0x1401acd36 jnz short loc_1401ACD57 ; +0x8d, 0x1401acd3d mov rcx, [rcx+10C8h] ; +0x8f, 0x1401acd3f mov rax, [rcx] ; +0x96, 0x1401acd46 call qword ptr [rax+0A8h] ; +0x99, 0x1401acd49 movss dword ptr [rsi+678h], xmm0 ; +0x9f, 0x1401acd4f mov rcx, [rsi+5E8h] ; +0xa7, 0x1401acd57 call LevelEditorLayer__updateKeyframeObjects ; +0xae, 0x1401acd5e call EditorSFXManager__sharedState ; +0xb3, 0x1401acd63 mov rcx, rax ; +0xb8, 0x1401acd68 mov edx, 0D3h ; +0xbb, 0x1401acd6b call EditorSFXManager__playAction ; +0xc0, 0x1401acd70 mov dl, 1 ; +0xc5, 0x1401acd75 mov rcx, rsi ; +0xc7, 0x1401acd77 call EditorUI__showUI ; +0xca, 0x1401acd7a cmp byte ptr [rsi+298h], 0 ; +0xcf, 0x1401acd7f jz short loc_1401ACD92 ; +0xd6, 0x1401acd86 xor edx, edx ; +0xd8, 0x1401acd88 mov rcx, rsi ; +0xda, 0x1401acd8a call EditorUI__onPlayback ; +0xdd, 0x1401acd8d mov rcx, [rsi+5E8h] ; +0xe2, 0x1401acd92 call LevelEditorLayer__onStopPlaytest ; +0xe9, 0x1401acd99 mov rcx, rsi ; +0xee, 0x1401acd9e call EditorUI__playtestStopped ; +0xf1, 0x1401acda1 mov rcx, rsi ; +0xf6, 0x1401acda6 call EditorUI__updatePlaybackBtn ; +0xf9, 0x1401acda9 mov rax, [rsi+5E8h] ; +0xfe, 0x1401acdae mov rcx, [rax+10C8h] ; +0x105, 0x1401acdb5 mov rax, [rcx] ; +0x10c, 0x1401acdbc call qword ptr [rax+0C8h] ; +0x10f, 0x1401acdbf mov rdx, rax ; +0x115, 0x1401acdc5 lea rcx, [rsp+78h+var_48] ; +0x118, 0x1401acdc8 call cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x11d, 0x1401acdcd mov rcx, [rsi+5E8h] ; +0x123, 0x1401acdd3 mov rcx, [rcx+878h] ; +0x12a, 0x1401acdda add rcx, 4ACh ; +0x131, 0x1401acde1 mov rdx, rax ; +0x138, 0x1401acde8 call cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x13b, 0x1401acdeb mov rax, [rsi+5E8h] ; +0x141, 0x1401acdf1 mov rcx, [rax+10C8h] ; +0x148, 0x1401acdf8 mov rbx, [rax+878h] ; +0x14f, 0x1401acdff mov rax, [rcx] ; +0x156, 0x1401ace06 call qword ptr [rax+0A8h] ; +0x159, 0x1401ace09 movss dword ptr [rbx+4B4h], xmm0 ; +0x15f, 0x1401ace0f mov rax, [rsi+368h] ; +0x167, 0x1401ace17 mov rcx, [rax+158h] ; +0x16e, 0x1401ace1e mov ebx, [rcx+24Ch] ; +0x175, 0x1401ace25 cmp byte ptr [rcx+1C8h], 0 ; +0x17b, 0x1401ace2b jz short loc_1401ACE3D ; +0x182, 0x1401ace32 mov rcx, [rcx+1C0h] ; +0x184, 0x1401ace34 jmp short loc_1401ACE44 ; +0x18b, 0x1401ace3b mov rcx, [rcx+1E0h] ; +0x18d, 0x1401ace3d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x194, 0x1401ace44 mov ecx, eax ; +0x19a, 0x1401ace4a test ebx, ebx ; +0x19c, 0x1401ace4c jle short loc_1401ACE59 ; +0x19e, 0x1401ace4e mov eax, ebx ; +0x1a0, 0x1401ace50 cdq ; +0x1a2, 0x1401ace52 idiv ecx ; +0x1a3, 0x1401ace53 mov ebx, edx ; +0x1a5, 0x1401ace55 jmp short loc_1401ACE64 ; +0x1a7, 0x1401ace57 jns short loc_1401ACE64 ; +0x1a9, 0x1401ace59 nop dword ptr [rax+rax+00h] ; +0x1ab, 0x1401ace5b add ebx, ecx ; +0x1b0, 0x1401ace60 js short loc_1401ACE60 ; +0x1b2, 0x1401ace62 mov rax, [rsi+5E8h] ; +0x1b4, 0x1401ace64 mov rcx, [rax+878h] ; +0x1bb, 0x1401ace6b mov [rcx+4BCh], ebx ; +0x1c2, 0x1401ace72 mov rax, [rsi+5E8h] ; +0x1c8, 0x1401ace78 mov rcx, [rax+878h] ; +0x1cf, 0x1401ace7f mov eax, [rsi+648h] ; +0x1d6, 0x1401ace86 mov [rcx+4B8h], eax ; +0x1dc, 0x1401ace8c mov rax, [rsi+5E8h] ; +0x1e2, 0x1401ace92 movsx ecx, word ptr [rax+3A12h] ; +0x1e9, 0x1401ace99 mov rax, [rax+878h] ; +0x1f0, 0x1401acea0 mov [rax+4C0h], ecx ; +0x1f7, 0x1401acea7 xor r15d, r15d ; +0x1fd, 0x1401acead mov ebp, r15d ; +0x200, 0x1401aceb0 mov rcx, [rsi+4D8h] ; +0x203, 0x1401aceb3 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x20a, 0x1401aceba test eax, eax ; +0x210, 0x1401acec0 jz loc_1401ACFF7 ; +0x212, 0x1401acec2 nop dword ptr [rax+rax+00000000h] ; +0x218, 0x1401acec8 mov edx, ebp ; +0x220, 0x1401aced0 mov rcx, [rsi+4D8h] ; +0x222, 0x1401aced2 call cs:?objectAtIndex@CCArray@cocos2d@@QEAAPEAVCCObject@2@I@Z; cocos2d::CCArray::objectAtIndex(uint) ; +0x229, 0x1401aced9 mov rcx, [rax+158h] ; +0x22f, 0x1401acedf mov edi, [rcx+24Ch] ; +0x236, 0x1401acee6 cmp byte ptr [rcx+1C8h], 0 ; +0x23c, 0x1401aceec jz short loc_1401ACEFE ; +0x243, 0x1401acef3 mov rcx, [rcx+1C0h] ; +0x245, 0x1401acef5 jmp short loc_1401ACF05 ; +0x24c, 0x1401acefc mov rcx, [rcx+1E0h] ; +0x24e, 0x1401acefe call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x255, 0x1401acf05 mov ecx, eax ; +0x25b, 0x1401acf0b test edi, edi ; +0x25d, 0x1401acf0d jle short loc_1401ACF1A ; +0x25f, 0x1401acf0f mov eax, edi ; +0x261, 0x1401acf11 cdq ; +0x263, 0x1401acf13 idiv ecx ; +0x264, 0x1401acf14 mov edi, edx ; +0x266, 0x1401acf16 jmp short loc_1401ACF24 ; +0x268, 0x1401acf18 jns short loc_1401ACF24 ; +0x26a, 0x1401acf1a nop dword ptr [rax+00h] ; +0x26c, 0x1401acf1c add edi, ecx ; +0x270, 0x1401acf20 js short loc_1401ACF20 ; +0x272, 0x1401acf22 mov rax, [rsi+5E8h] ; +0x274, 0x1401acf24 mov rbx, [rax+878h] ; +0x27b, 0x1401acf2b mov edx, ebp ; +0x282, 0x1401acf32 lea rcx, word_1406ED6F8 ; +0x284, 0x1401acf34 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x28b, 0x1401acf3b mov rcx, rax ; +0x291, 0x1401acf41 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x294, 0x1401acf44 xorps xmm0, xmm0 ; +0x29a, 0x1401acf4a movups [rsp+78h+var_40], xmm0 ; +0x29d, 0x1401acf4d mov [rsp+78h+var_30], r15 ; +0x2a2, 0x1401acf52 mov [rsp+78h+var_28], r15 ; +0x2a7, 0x1401acf57 mov r8, 0FFFFFFFFFFFFFFFFh ; +0x2ac, 0x1401acf5c inc r8 ; +0x2b3, 0x1401acf63 cmp byte ptr [rax+r8], 0 ; +0x2b6, 0x1401acf66 jnz short loc_1401ACF63 ; +0x2bb, 0x1401acf6b mov rdx, rax ; +0x2bd, 0x1401acf6d lea rcx, [rsp+78h+var_40] ; +0x2c0, 0x1401acf70 call sub_14003D230 ; +0x2c5, 0x1401acf75 nop ; +0x2ca, 0x1401acf7a mov rbx, [rbx+140h] ; +0x2cb, 0x1401acf7b mov edx, edi ; +0x2d2, 0x1401acf82 lea rcx, word_1406ED6F8 ; +0x2d4, 0x1401acf84 call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x2db, 0x1401acf8b mov rdx, rax ; +0x2e1, 0x1401acf91 lea r8, [rsp+78h+var_40] ; +0x2e4, 0x1401acf94 mov rcx, rbx ; +0x2e9, 0x1401acf99 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 &) ; +0x2ec, 0x1401acf9c nop ; +0x2f2, 0x1401acfa2 mov rdx, [rsp+78h+var_28] ; +0x2f3, 0x1401acfa3 cmp rdx, 0Fh ; +0x2f8, 0x1401acfa8 jbe short loc_1401ACFE0 ; +0x2fc, 0x1401acfac inc rdx ; +0x2fe, 0x1401acfae mov rcx, qword ptr [rsp+78h+var_40] ; +0x301, 0x1401acfb1 mov rax, rcx ; +0x306, 0x1401acfb6 cmp rdx, 1000h ; +0x309, 0x1401acfb9 jb short loc_1401ACFDB ; +0x310, 0x1401acfc0 add rdx, 27h ; ''' ; +0x312, 0x1401acfc2 mov rcx, [rcx-8]; Block ; +0x316, 0x1401acfc6 sub rax, rcx ; +0x31a, 0x1401acfca sub rax, 8 ; +0x31d, 0x1401acfcd cmp rax, 1Fh ; +0x321, 0x1401acfd1 ja loc_1401AD0EA ; +0x325, 0x1401acfd5 call j_j_free ; +0x32b, 0x1401acfdb inc ebp ; +0x330, 0x1401acfe0 mov rcx, [rsi+4D8h] ; +0x332, 0x1401acfe2 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x339, 0x1401acfe9 cmp ebp, eax ; +0x33f, 0x1401acfef jb loc_1401ACED0 ; +0x341, 0x1401acff1 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x347, 0x1401acff7 mov r14, [rax+110h] ; +0x34d, 0x1401acffd mov rbx, [rsi+5E8h] ; +0x354, 0x1401ad004 mov ecx, 280h; Size ; +0x35b, 0x1401ad00b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x360, 0x1401ad010 mov rdi, rax ; +0x365, 0x1401ad015 mov [rsp+78h+var_48], rax ; +0x368, 0x1401ad018 mov rcx, rax ; +0x36d, 0x1401ad01d call CCBlockLayer__CCBlockLayer ; +0x370, 0x1401ad020 lea rax, ??_7EditorPauseLayer@@6B@; const EditorPauseLayer::`vftable' ; +0x375, 0x1401ad025 mov [rdi], rax ; +0x37c, 0x1401ad02c lea rax, ??_7EditorPauseLayer@@6B@_0; const EditorPauseLayer::`vftable' ; +0x37f, 0x1401ad02f mov [rdi+140h], rax ; +0x386, 0x1401ad036 lea rax, ??_7EditorPauseLayer@@6B@_1; const EditorPauseLayer::`vftable' ; +0x38d, 0x1401ad03d mov [rdi+148h], rax ; +0x394, 0x1401ad044 lea rax, ??_7EditorPauseLayer@@6B@_2; const EditorPauseLayer::`vftable' ; +0x39b, 0x1401ad04b mov [rdi+150h], rax ; +0x3a2, 0x1401ad052 lea rax, ??_7EditorPauseLayer@@6B@_3; const EditorPauseLayer::`vftable' ; +0x3a9, 0x1401ad059 mov [rdi+158h], rax ; +0x3b0, 0x1401ad060 lea rax, ??_7EditorPauseLayer@@6B@_4; const EditorPauseLayer::`vftable' ; +0x3b7, 0x1401ad067 mov [rdi+160h], rax ; +0x3be, 0x1401ad06e lea rax, ??_7EditorPauseLayer@@6B@_5; const EditorPauseLayer::`vftable' ; +0x3c5, 0x1401ad075 mov [rdi+198h], rax ; +0x3cc, 0x1401ad07c lea rax, ??_7EditorPauseLayer@@6B@_6; const EditorPauseLayer::`vftable' ; +0x3d3, 0x1401ad083 mov [rdi+1B0h], rax ; +0x3da, 0x1401ad08a lea rax, ??_7EditorPauseLayer@@6B@_7; const EditorPauseLayer::`vftable' ; +0x3e1, 0x1401ad091 mov [rdi+228h], rax ; +0x3e8, 0x1401ad098 lea rax, ??_7EditorPauseLayer@@6B@_8; const EditorPauseLayer::`vftable' ; +0x3ef, 0x1401ad09f mov [rdi+230h], rax ; +0x3f6, 0x1401ad0a6 mov byte ptr [rdi+238h], 0 ; +0x3fd, 0x1401ad0ad mov [rdi+240h], r15 ; +0x404, 0x1401ad0b4 mov [rdi+268h], r15 ; +0x40b, 0x1401ad0bb mov [rdi+270h], r15 ; +0x412, 0x1401ad0c2 mov [rdi+278h], r15 ; +0x419, 0x1401ad0c9 mov rdx, rbx ; +0x420, 0x1401ad0d0 mov rcx, rdi ; +0x423, 0x1401ad0d3 call EditorPauseLayer__init ; +0x426, 0x1401ad0d6 mov rcx, rdi ; +0x42b, 0x1401ad0db test al, al ; +0x42e, 0x1401ad0de jz short loc_1401AD100 ; +0x430, 0x1401ad0e0 call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x432, 0x1401ad0e2 jmp short loc_1401AD10E ; +0x438, 0x1401ad0e8 mov [rsp+78h+Reserved], r15; Reserved ; +0x43a, 0x1401ad0ea xor r9d, r9d; LineNo ; +0x43f, 0x1401ad0ef xor r8d, r8d; FileName ; +0x442, 0x1401ad0f2 xor edx, edx; FunctionName ; +0x445, 0x1401ad0f5 xor ecx, ecx; Expression ; +0x447, 0x1401ad0f7 call cs:_invoke_watson ; +0x449, 0x1401ad0f9 align 20h ; +0x44f, 0x1401ad0ff mov rax, [rdi] ; +0x450, 0x1401ad100 mov edx, 1 ; +0x453, 0x1401ad103 call qword ptr [rax+8] ; +0x458, 0x1401ad108 mov rdi, r15 ; +0x45b, 0x1401ad10b mov rax, [r14] ; +0x45e, 0x1401ad10e mov r8d, 64h ; 'd' ; +0x461, 0x1401ad111 mov rdx, rdi ; +0x467, 0x1401ad117 mov rcx, r14 ; +0x46a, 0x1401ad11a call qword ptr [rax+1C8h] ; +0x46d, 0x1401ad11d mov byte ptr [rsi+67Ch], 1 ; +0x473, 0x1401ad123 mov rcx, [rsp+78h+var_20] ; +0x47a, 0x1401ad12a xor rcx, rsp; StackCookie ; +0x47f, 0x1401ad12f call __security_check_cookie ; +0x482, 0x1401ad132 lea r11, [rsp+78h+var_18] ; +0x487, 0x1401ad137 mov rbx, [r11+28h] ; +0x48c, 0x1401ad13c mov rbp, [r11+30h] ; +0x490, 0x1401ad140 mov rsi, [r11+38h] ; +0x494, 0x1401ad144 mov rsp, r11 ; +0x498, 0x1401ad148 pop r15 ; +0x49b, 0x1401ad14b pop r14 ; +0x49d, 0x1401ad14d pop rdi ; +0x49f, 0x1401ad14f retn ; +0x4a0, 0x1401ad150