; ; cocos2d::extension::WebSocket::close from 0x18001a4d0 to 0x18001a546 (118 bytes) ; ; 3 xrefs: ; > cocos2d::extension::WebSocket::~WebSocket @ 0x180019951 ; > @ 0x18002fdf8 ; > @ 0x18004ace0 ; ; 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 ; push rbx ; +0x0, 0x18001a4d0 sub rsp, 30h ; +0x2, 0x18001a4d2 mov rbx, rcx ; +0x6, 0x18001a4d6 call cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x9, 0x18001a4d9 mov rcx, rax ; +0xf, 0x18001a4df mov rdx, [rax] ; +0x12, 0x18001a4e2 call qword ptr [rdx+70h] ; +0x15, 0x18001a4e5 mov rdx, [rbx+58h] ; +0x18, 0x18001a4e8 mov rcx, rax ; +0x1c, 0x18001a4ec call cs:?unscheduleAllForTarget@CCScheduler@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCScheduler::unscheduleAllForTarget(cocos2d::CCObject *) ; +0x1f, 0x18001a4ef mov eax, [rbx+8] ; +0x25, 0x18001a4f5 sub eax, 2 ; +0x28, 0x18001a4f8 cmp eax, 1 ; +0x2b, 0x18001a4fb jbe short loc_18001A540 ; +0x2e, 0x18001a4fe mov rax, [rbx+58h] ; +0x30, 0x18001a500 lea rdx, [rsp+38h+arg_0] ; +0x34, 0x18001a504 mov dword ptr [rbx+8], 3 ; +0x39, 0x18001a509 lea rcx, [rsp+38h+var_18] ; +0x40, 0x18001a510 mov [rsp+38h+arg_0], 0 ; +0x45, 0x18001a515 movups xmm0, xmmword ptr [rax+58h] ; +0x4e, 0x18001a51e movaps [rsp+38h+var_18], xmm0 ; +0x52, 0x18001a522 call cs:pthread_join ; +0x57, 0x18001a527 mov rcx, [rbx+70h] ; +0x5d, 0x18001a52d mov rdx, rbx ; +0x61, 0x18001a531 mov rax, [rcx] ; +0x64, 0x18001a534 add rsp, 30h ; +0x67, 0x18001a537 pop rbx ; +0x6b, 0x18001a53b jmp qword ptr [rax+18h] ; +0x6c, 0x18001a53c add rsp, 30h ; +0x70, 0x18001a540 pop rbx ; +0x74, 0x18001a544 retn ; +0x75, 0x18001a545