; ; BrowseSmartTemplateLayer::onTemplateObject from 0x1405f0be0 to 0x1405f0ead (717 bytes) ; ; 2 xrefs: ; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1405f01e6 ; > @ 0x14092f264 ; ; 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:35:05 +0000 ; mov [rsp-28h+arg_10], rbx ; +0x0, 0x1405f0be0 push rbp ; +0x5, 0x1405f0be5 push rsi ; +0x6, 0x1405f0be6 push rdi ; +0x7, 0x1405f0be7 push r14 ; +0x8, 0x1405f0be8 push r15 ; +0xa, 0x1405f0bea mov rbp, rsp ; +0xc, 0x1405f0bec sub rsp, 70h ; +0xf, 0x1405f0bef mov rsi, rcx ; +0x13, 0x1405f0bf3 mov rax, [rdx] ; +0x16, 0x1405f0bf6 mov rcx, rdx ; +0x19, 0x1405f0bf9 call qword ptr [rax+3B8h] ; +0x1c, 0x1405f0bfc lea r14, [rax+140h] ; +0x22, 0x1405f0c02 mov rdx, r14 ; +0x29, 0x1405f0c09 lea rcx, [rbp+var_20] ; +0x2c, 0x1405f0c0c call sub_14003F4F0 ; +0x30, 0x1405f0c10 mov rbx, rax ; +0x35, 0x1405f0c15 mov [rbp+arg_0], rax ; +0x38, 0x1405f0c18 mov rcx, [rsi+298h] ; +0x3c, 0x1405f0c1c mov rdx, rax ; +0x43, 0x1405f0c23 mov rcx, [rcx+38h] ; +0x46, 0x1405f0c26 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 &) ; +0x4a, 0x1405f0c2a mov rdi, rax ; +0x50, 0x1405f0c30 mov rcx, rbx ; +0x53, 0x1405f0c33 call sub_14003D310 ; +0x56, 0x1405f0c36 test rdi, rdi ; +0x5b, 0x1405f0c3b jz loc_1405F0DE1 ; +0x5e, 0x1405f0c3e mov rcx, rdi ; +0x64, 0x1405f0c44 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x67, 0x1405f0c47 test eax, eax ; +0x6d, 0x1405f0c4d jz loc_1405F0DE1 ; +0x6f, 0x1405f0c4f call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x75, 0x1405f0c55 mov rcx, [rax] ; +0x7b, 0x1405f0c5b mov rdx, [rcx+90h] ; +0x7e, 0x1405f0c5e mov rcx, rax ; +0x85, 0x1405f0c65 call rdx ; +0x88, 0x1405f0c68 mov rcx, rax ; +0x8a, 0x1405f0c6a mov rdx, rsi ; +0x8d, 0x1405f0c6d call cs:?unregisterForcePrio@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCTouchDispatcher::unregisterForcePrio(cocos2d::CCObject *) ; +0x90, 0x1405f0c70 mov rax, [rsi] ; +0x96, 0x1405f0c76 xor edx, edx ; +0x99, 0x1405f0c79 mov rcx, rsi ; +0x9b, 0x1405f0c7b call qword ptr [rax+3E0h] ; +0x9e, 0x1405f0c7e mov rax, [rsi] ; +0xa4, 0x1405f0c84 mov dl, 1 ; +0xa7, 0x1405f0c87 mov rcx, rsi ; +0xa9, 0x1405f0c89 call qword ptr [rax+208h] ; +0xac, 0x1405f0c8c mov rdx, r14 ; +0xb2, 0x1405f0c92 lea rcx, [rbp+var_20] ; +0xb5, 0x1405f0c95 call sub_14003F4F0 ; +0xb9, 0x1405f0c99 mov r15, rax ; +0xbe, 0x1405f0c9e mov [rbp+arg_0], rax ; +0xc1, 0x1405f0ca1 mov rbx, [rsi+298h] ; +0xc5, 0x1405f0ca5 mov ecx, 2F0h; Size ; +0xcc, 0x1405f0cac call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xd1, 0x1405f0cb1 mov rdi, rax ; +0xd6, 0x1405f0cb6 mov [rbp+arg_8], rax ; +0xd9, 0x1405f0cb9 mov rcx, rax ; +0xdd, 0x1405f0cbd call BrowseSmartTemplateLayer__BrowseSmartTemplateLayer ; +0xe0, 0x1405f0cc0 lea rax, ??_7BrowseSmartKeyLayer@@6B@; const BrowseSmartKeyLayer::`vftable' ; +0xe5, 0x1405f0cc5 mov [rdi], rax ; +0xec, 0x1405f0ccc lea rax, ??_7BrowseSmartKeyLayer@@6B@_0; const BrowseSmartKeyLayer::`vftable' ; +0xef, 0x1405f0ccf mov [rdi+140h], rax ; +0xf6, 0x1405f0cd6 lea rax, ??_7BrowseSmartKeyLayer@@6B@_1; const BrowseSmartKeyLayer::`vftable' ; +0xfd, 0x1405f0cdd mov [rdi+148h], rax ; +0x104, 0x1405f0ce4 lea rax, ??_7BrowseSmartKeyLayer@@6B@_2; const BrowseSmartKeyLayer::`vftable' ; +0x10b, 0x1405f0ceb mov [rdi+150h], rax ; +0x112, 0x1405f0cf2 lea rax, ??_7BrowseSmartKeyLayer@@6B@_3; const BrowseSmartKeyLayer::`vftable' ; +0x119, 0x1405f0cf9 mov [rdi+158h], rax ; +0x120, 0x1405f0d00 lea rax, ??_7BrowseSmartKeyLayer@@6B@_4; const BrowseSmartKeyLayer::`vftable' ; +0x127, 0x1405f0d07 mov [rdi+160h], rax ; +0x12e, 0x1405f0d0e lea rax, ??_7BrowseSmartKeyLayer@@6B@_5; const BrowseSmartKeyLayer::`vftable' ; +0x135, 0x1405f0d15 mov [rdi+198h], rax ; +0x13c, 0x1405f0d1c lea rax, ??_7BrowseSmartKeyLayer@@6B@_6; const BrowseSmartKeyLayer::`vftable' ; +0x143, 0x1405f0d23 mov [rdi+1B0h], rax ; +0x14a, 0x1405f0d2a lea rax, ??_7BrowseSmartKeyLayer@@6B@_7; const BrowseSmartKeyLayer::`vftable' ; +0x151, 0x1405f0d31 mov [rdi+220h], rax ; +0x158, 0x1405f0d38 xorps xmm0, xmm0 ; +0x15f, 0x1405f0d3f movups xmmword ptr [rdi+2C8h], xmm0 ; +0x162, 0x1405f0d42 xor r14d, r14d ; +0x169, 0x1405f0d49 mov [rdi+2D8h], r14 ; +0x16c, 0x1405f0d4c mov qword ptr [rdi+2E0h], 0Fh ; +0x173, 0x1405f0d53 mov [rdi+2C8h], r14b ; +0x17e, 0x1405f0d5e mov [rdi+2E8h], r14d ; +0x185, 0x1405f0d65 mov rdx, r15 ; +0x18c, 0x1405f0d6c lea rcx, [rbp+var_40] ; +0x18f, 0x1405f0d6f call sub_14003F4F0 ; +0x193, 0x1405f0d73 mov r8, rax ; +0x198, 0x1405f0d78 mov rdx, rbx ; +0x19b, 0x1405f0d7b mov rcx, rdi ; +0x19e, 0x1405f0d7e call BrowseSmartKeyLayer__init ; +0x1a1, 0x1405f0d81 mov rcx, rdi ; +0x1a6, 0x1405f0d86 test al, al ; +0x1a9, 0x1405f0d89 jz short loc_1405F0D95 ; +0x1ab, 0x1405f0d8b call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1ad, 0x1405f0d8d jmp short loc_1405F0DA3 ; +0x1b3, 0x1405f0d93 mov rax, [rdi] ; +0x1b5, 0x1405f0d95 mov edx, 1 ; +0x1b8, 0x1405f0d98 call qword ptr [rax+8] ; +0x1bd, 0x1405f0d9d mov rdi, r14 ; +0x1c0, 0x1405f0da0 mov rcx, r15 ; +0x1c3, 0x1405f0da3 call sub_14003D310 ; +0x1c6, 0x1405f0da6 mov eax, [rsi+2A8h] ; +0x1cb, 0x1405f0dab mov [rdi+2E8h], eax ; +0x1d1, 0x1405f0db1 mov rax, [rdi] ; +0x1d7, 0x1405f0db7 mov rdx, [rax+428h] ; +0x1da, 0x1405f0dba lea rax, FLAlertLayer__show ; +0x1e1, 0x1405f0dc1 mov rcx, rdi ; +0x1e8, 0x1405f0dc8 cmp rdx, rax ; +0x1eb, 0x1405f0dcb jnz short loc_1405F0DDA ; +0x1ee, 0x1405f0dce call FLAlertLayer__show ; +0x1f0, 0x1405f0dd0 jmp loc_1405F0E99 ; +0x1f5, 0x1405f0dd5 call rdx ; +0x1fa, 0x1405f0dda jmp loc_1405F0E99 ; +0x1fc, 0x1405f0ddc mov rdx, r14 ; +0x201, 0x1405f0de1 lea rcx, [rbp+var_20] ; +0x204, 0x1405f0de4 call sub_14003F4F0 ; +0x208, 0x1405f0de8 xor r8d, r8d ; +0x20d, 0x1405f0ded mov rdx, rax ; +0x210, 0x1405f0df0 mov rcx, rsi ; +0x213, 0x1405f0df3 call BrowseSmartTemplateLayer__createPrefab ; +0x216, 0x1405f0df6 lea rax, [rbp+var_20] ; +0x21b, 0x1405f0dfb mov [rbp+arg_0], rax ; +0x21f, 0x1405f0dff xorps xmm0, xmm0 ; +0x223, 0x1405f0e03 movups [rbp+var_20], xmm0 ; +0x226, 0x1405f0e06 xor r14d, r14d ; +0x22a, 0x1405f0e0a mov [rbp+var_10], r14 ; +0x22d, 0x1405f0e0d mov [rbp+var_8], 0Fh ; +0x231, 0x1405f0e11 mov byte ptr [rbp+var_20], r14b ; +0x239, 0x1405f0e19 mov [rbp+var_30], 0Fh ; +0x23d, 0x1405f0e1d mov [rbp+var_28], 0Fh ; +0x245, 0x1405f0e25 movsd xmm0, cs:qword_140802A10 ; +0x24d, 0x1405f0e2d movsd qword ptr [rbp+var_40], xmm0 ; +0x255, 0x1405f0e35 mov eax, cs:dword_140802A18 ; +0x25a, 0x1405f0e3a mov dword ptr [rbp+var_40+8], eax ; +0x260, 0x1405f0e40 movzx eax, cs:word_140802A1C ; +0x263, 0x1405f0e43 mov word ptr [rbp+var_40+0Ch], ax ; +0x26a, 0x1405f0e4a movzx eax, cs:byte_140802A1E ; +0x26e, 0x1405f0e4e mov [rbp+var_40+0Eh], al ; +0x275, 0x1405f0e55 mov [rbp+var_40+0Fh], r14b ; +0x278, 0x1405f0e58 mov rbx, [rsi] ; +0x27c, 0x1405f0e5c lea rax, [rbp+var_20] ; +0x27f, 0x1405f0e5f mov [rsp+70h+var_50], rax ; +0x283, 0x1405f0e63 mov r9d, 96h ; +0x288, 0x1405f0e68 movss xmm2, cs:dword_140834F64 ; +0x28e, 0x1405f0e6e movss xmm1, cs:dword_140834F20 ; +0x296, 0x1405f0e76 lea rcx, [rbp+var_40] ; +0x29e, 0x1405f0e7e call TextAlertPopup__create ; +0x2a2, 0x1405f0e82 mov rdx, rax ; +0x2a7, 0x1405f0e87 mov r8d, 64h ; 'd' ; +0x2aa, 0x1405f0e8a mov rcx, rsi ; +0x2b0, 0x1405f0e90 call qword ptr [rbx+1C8h] ; +0x2b3, 0x1405f0e93 mov rbx, [rsp+70h+arg_10] ; +0x2b9, 0x1405f0e99 add rsp, 70h ; +0x2c1, 0x1405f0ea1 pop r15 ; +0x2c5, 0x1405f0ea5 pop r14 ; +0x2c7, 0x1405f0ea7 pop rdi ; +0x2c9, 0x1405f0ea9 pop rsi ; +0x2ca, 0x1405f0eaa pop rbp ; +0x2cb, 0x1405f0eab retn ; +0x2cc, 0x1405f0eac