; ; cocos2d::CCKeyboardHandler::handlerWithDelegate from 0x180044a50 to 0x180044b08 (184 bytes) ; ; 5 xrefs: ; > cocos2d::CCKeyboardDispatcher::addDelegate @ 0x180044d76 ; > cocos2d::CCKeyboardDispatcher::dispatchKeyboardMSG @ 0x180044f6b ; > cocos2d::CCKeyboardDispatcher::forceAddDelegate @ 0x180044fbc ; > @ 0x1801438a8 ; > @ 0x1801b162c ; ; 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_0], rbx ; +0x0, 0x180044a50 push rdi ; +0x5, 0x180044a55 sub rsp, 30h ; +0x6, 0x180044a56 mov rdi, rcx ; +0xa, 0x180044a5a mov ecx, 40h ; '@'; Size ; +0xd, 0x180044a5d call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x12, 0x180044a62 mov rbx, rax ; +0x17, 0x180044a67 mov [rsp+38h+arg_8], rax ; +0x1a, 0x180044a6a test rax, rax ; +0x1f, 0x180044a6f jz short loc_180044A88 ; +0x22, 0x180044a72 mov rcx, rax; this ; +0x24, 0x180044a74 call ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x27, 0x180044a77 lea rax, ??_7CCKeyboardHandler@cocos2d@@6B@; const cocos2d::CCKeyboardHandler::`vftable' ; +0x2c, 0x180044a7c mov [rbx], rax ; +0x33, 0x180044a83 jmp short loc_180044A8A ; +0x36, 0x180044a86 xor ebx, ebx ; +0x38, 0x180044a88 test rbx, rbx ; +0x3a, 0x180044a8a jz short loc_180044AE5 ; +0x3d, 0x180044a8d mov rax, [rbx] ; +0x3f, 0x180044a8f mov r8, [rax+48h] ; +0x42, 0x180044a92 lea rax, ?initWithDelegate@CCKeyboardHandler@cocos2d@@UEAA_NPEAVCCKeyboardDelegate@2@@Z; cocos2d::CCKeyboardHandler::initWithDelegate(cocos2d::CCKeyboardDelegate *) ; +0x46, 0x180044a96 cmp r8, rax ; +0x4d, 0x180044a9d jnz short loc_180044AD0 ; +0x50, 0x180044aa0 mov [rbx+38h], rdi ; +0x52, 0x180044aa2 mov [rsp+38h+var_18], 0 ; +0x56, 0x180044aa6 lea r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x5e, 0x180044aae lea r8, ??_R0?AVCCKeyboardDelegate@cocos2d@@@8; cocos2d::CCKeyboardDelegate `RTTI Type Descriptor' ; +0x65, 0x180044ab5 xor edx, edx ; +0x6c, 0x180044abc mov rcx, rdi ; +0x6e, 0x180044abe call __RTDynamicCast ; +0x71, 0x180044ac1 mov rcx, rax; this ; +0x76, 0x180044ac6 call ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x79, 0x180044ac9 jmp short loc_180044ADD ; +0x7e, 0x180044ace mov rdx, rdi ; +0x80, 0x180044ad0 mov rcx, rbx ; +0x83, 0x180044ad3 call r8 ; +0x86, 0x180044ad6 test al, al ; +0x89, 0x180044ad9 jz short loc_180044AF3 ; +0x8b, 0x180044adb mov rcx, rbx; this ; +0x8d, 0x180044add call ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x90, 0x180044ae0 mov rax, rbx ; +0x95, 0x180044ae5 mov rbx, [rsp+38h+arg_0] ; +0x98, 0x180044ae8 add rsp, 30h ; +0x9d, 0x180044aed pop rdi ; +0xa1, 0x180044af1 retn ; +0xa2, 0x180044af2 mov rcx, rbx; this ; +0xa3, 0x180044af3 call ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xa6, 0x180044af6 xor eax, eax ; +0xab, 0x180044afb mov rbx, [rsp+38h+arg_0] ; +0xad, 0x180044afd add rsp, 30h ; +0xb2, 0x180044b02 pop rdi ; +0xb6, 0x180044b06 retn ; +0xb7, 0x180044b07