; ; cocos2d::extension::WebSocket::send from 0x18001a040 to 0x18001a10a (202 bytes) ; ; 5 xrefs: ; > @ 0x180031b5c ; > @ 0x180031b78 ; > @ 0x180031b88 ; > @ 0x180032408 ; > @ 0x18004cbf0 ; ; 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 12:15:43 +0000 ; push rbx ; +0x0, 0x18001a040 push rsi ; +0x2, 0x18001a042 sub rsp, 28h ; +0x3, 0x18001a043 cmp dword ptr [rcx+8], 1 ; +0x7, 0x18001a047 mov rbx, rdx ; +0xb, 0x18001a04b mov rsi, rcx ; +0xe, 0x18001a04e jnz loc_18001A103 ; +0x11, 0x18001a051 mov [rsp+38h+arg_8], rbp ; +0x17, 0x18001a057 mov ecx, 10h; Size ; +0x1c, 0x18001a05c mov [rsp+38h+arg_10], rdi ; +0x21, 0x18001a061 mov [rsp+38h+arg_18], r14 ; +0x26, 0x18001a066 mov [rsp+38h+var_18], r15 ; +0x2b, 0x18001a06b call sub_18001F040 ; +0x30, 0x18001a070 xor ebp, ebp ; +0x35, 0x18001a075 mov [rsp+38h+arg_0], rax ; +0x37, 0x18001a077 mov ecx, 10h; Size ; +0x3c, 0x18001a07c mov r14, rax ; +0x41, 0x18001a081 mov [rax+8], rbp ; +0x44, 0x18001a084 mov [rax], ebp ; +0x48, 0x18001a088 call sub_18001F040 ; +0x4a, 0x18001a08a lea r15, [rbx+10h] ; +0x4f, 0x18001a08f mov [rsp+38h+arg_0], rax ; +0x53, 0x18001a093 mov rdi, rax ; +0x58, 0x18001a098 mov [rax], rbp ; +0x5b, 0x18001a09b mov [rax+8], ebp ; +0x5e, 0x18001a09e mov [rax+0Ch], bpl ; +0x61, 0x18001a0a1 mov rcx, [r15] ; +0x65, 0x18001a0a5 inc rcx; Size ; +0x68, 0x18001a0a8 call sub_18001F33C ; +0x6b, 0x18001a0ab mov rbp, [rsp+38h+arg_8] ; +0x70, 0x18001a0b0 mov rcx, rax ; +0x75, 0x18001a0b5 mov [rdi], rax ; +0x78, 0x18001a0b8 cmp qword ptr [rbx+18h], 0Fh ; +0x7b, 0x18001a0bb jbe short loc_18001A0C5 ; +0x80, 0x18001a0c0 mov rbx, [rbx] ; +0x82, 0x18001a0c2 sub rcx, rbx ; +0x85, 0x18001a0c5 nop dword ptr [rax+rax+00000000h] ; +0x88, 0x18001a0c8 movzx eax, byte ptr [rbx] ; +0x90, 0x18001a0d0 mov [rbx+rcx], al ; +0x93, 0x18001a0d3 lea rbx, [rbx+1] ; +0x96, 0x18001a0d6 test al, al ; +0x9a, 0x18001a0da jnz short loc_18001A0D0 ; +0x9c, 0x18001a0dc mov eax, [r15] ; +0x9e, 0x18001a0de mov rdx, r14 ; +0xa1, 0x18001a0e1 mov [rdi+8], eax ; +0xa4, 0x18001a0e4 mov [r14+8], rdi ; +0xa7, 0x18001a0e7 mov rcx, [rsi+58h] ; +0xab, 0x18001a0eb call sub_180019620 ; +0xaf, 0x18001a0ef mov r15, [rsp+38h+var_18] ; +0xb4, 0x18001a0f4 mov r14, [rsp+38h+arg_18] ; +0xb9, 0x18001a0f9 mov rdi, [rsp+38h+arg_10] ; +0xbe, 0x18001a0fe add rsp, 28h ; +0xc3, 0x18001a103 pop rsi ; +0xc7, 0x18001a107 pop rbx ; +0xc8, 0x18001a108 retn ; +0xc9, 0x18001a109