; ; cocos2d::CCGLProgram::updateUniformLocation from 0x180087920 to 0x180087e83 (1379 bytes) ; ; 23 xrefs: ; > cocos2d::CCGLProgram::setUniformLocationWith1f @ 0x180087048 ; > cocos2d::CCGLProgram::setUniformLocationWith1i @ 0x180087087 ; > cocos2d::CCGLProgram::setUniformLocationWith2f @ 0x1800870df ; > cocos2d::CCGLProgram::setUniformLocationWith2fv @ 0x18008712f ; > cocos2d::CCGLProgram::setUniformLocationWith2i @ 0x18008718b ; > cocos2d::CCGLProgram::setUniformLocationWith2iv @ 0x1800871df ; > cocos2d::CCGLProgram::setUniformLocationWith3f @ 0x180087265 ; > cocos2d::CCGLProgram::setUniformLocationWith3fv @ 0x1800872cf ; > cocos2d::CCGLProgram::setUniformLocationWith3i @ 0x180087340 ; > cocos2d::CCGLProgram::setUniformLocationWith3iv @ 0x18008739f ; > cocos2d::CCGLProgram::setUniformLocationWith4f @ 0x18008743c ; > cocos2d::CCGLProgram::setUniformLocationWith4fv @ 0x1800874ab ; > cocos2d::CCGLProgram::setUniformLocationWith4i @ 0x18008752f ; > cocos2d::CCGLProgram::setUniformLocationWith4iv @ 0x18008758b ; > cocos2d::CCGLProgram::setUniformLocationWithMatrix3fv @ 0x1800875df ; > cocos2d::CCGLProgram::setUniformLocationWithMatrix4fv @ 0x18008762b ; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x1800876ce ; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x180087701 ; > cocos2d::CCGLProgram::setUniformsForBuiltins @ 0x180087737 ; > cocos2d::CCGLProgram::updateUniforms @ 0x180087f8a ; > @ 0x18013cd14 ; > @ 0x1801438a8 ; > @ 0x1801b5850 ; ; 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_8], edx ; +0x0, 0x180087920 push rbx ; +0x4, 0x180087924 push rsi ; +0x5, 0x180087925 push r15 ; +0x6, 0x180087926 sub rsp, 30h ; +0x8, 0x180087928 mov r11d, r9d ; +0xc, 0x18008792c mov r15, r8 ; +0xf, 0x18008792f mov esi, edx ; +0x12, 0x180087932 mov rbx, rcx ; +0x14, 0x180087934 test edx, edx ; +0x17, 0x180087937 jns short loc_180087946 ; +0x19, 0x180087939 xor al, al ; +0x1b, 0x18008793b add rsp, 30h ; +0x1d, 0x18008793d pop r15 ; +0x21, 0x180087941 pop rsi ; +0x23, 0x180087943 pop rbx ; +0x24, 0x180087944 retn ; +0x25, 0x180087945 mov r9, [rbx+68h] ; +0x26, 0x180087946 mov [rsp+48h+arg_0], rbp ; +0x2a, 0x18008794a xor ebp, ebp ; +0x2f, 0x18008794f mov [rsp+48h+var_20], r13 ; +0x31, 0x180087951 mov ecx, ebp ; +0x36, 0x180087956 mov [rsp+48h+var_28], r14 ; +0x38, 0x180087958 mov r13d, 9F49BAC6h ; +0x3d, 0x18008795d test r9, r9 ; +0x43, 0x180087963 jz loc_180087A52 ; +0x46, 0x180087966 movzx ecx, byte ptr [rsp+48h+arg_8+3] ; +0x4c, 0x18008796c mov r8d, r13d ; +0x51, 0x180087971 movzx eax, byte ptr [rsp+48h+arg_8+2] ; +0x54, 0x180087974 mov r10, [r9+10h] ; +0x59, 0x180087979 shl ecx, 8 ; +0x5d, 0x18008797d add ecx, eax ; +0x60, 0x180087980 movzx edx, sil ; +0x62, 0x180087982 movzx eax, byte ptr [rsp+48h+arg_8+1] ; +0x66, 0x180087986 add edx, 112410Dh ; +0x6b, 0x18008798b shl ecx, 8 ; +0x71, 0x180087991 add ecx, eax ; +0x74, 0x180087994 shl ecx, 8 ; +0x76, 0x180087996 add edx, ecx ; +0x79, 0x180087999 mov ecx, 0FEEDBEF3h ; +0x7b, 0x18008799b xor edx, 7F76Dh ; +0x80, 0x1800879a0 sub r8d, edx ; +0x86, 0x1800879a6 mov eax, edx ; +0x89, 0x1800879a9 shl eax, 8 ; +0x8b, 0x1800879ab xor r8d, eax ; +0x8e, 0x1800879ae sub ecx, r8d ; +0x91, 0x1800879b1 mov eax, r8d ; +0x94, 0x1800879b4 sub ecx, edx ; +0x97, 0x1800879b7 shr eax, 0Dh ; +0x99, 0x1800879b9 xor ecx, eax ; +0x9c, 0x1800879bc sub edx, r8d ; +0x9e, 0x1800879be sub edx, ecx ; +0xa1, 0x1800879c1 mov eax, ecx ; +0xa3, 0x1800879c3 shr eax, 0Ch ; +0xa5, 0x1800879c5 xor edx, eax ; +0xa8, 0x1800879c8 sub r8d, edx ; +0xaa, 0x1800879ca mov eax, edx ; +0xad, 0x1800879cd sub r8d, ecx ; +0xaf, 0x1800879cf shl eax, 10h ; +0xb2, 0x1800879d2 xor r8d, eax ; +0xb5, 0x1800879d5 sub ecx, r8d ; +0xb8, 0x1800879d8 mov eax, r8d ; +0xbb, 0x1800879db sub ecx, edx ; +0xbe, 0x1800879de shr eax, 5 ; +0xc0, 0x1800879e0 xor ecx, eax ; +0xc3, 0x1800879e3 sub edx, r8d ; +0xc5, 0x1800879e5 sub edx, ecx ; +0xc8, 0x1800879e8 mov eax, ecx ; +0xca, 0x1800879ea shr eax, 3 ; +0xcc, 0x1800879ec xor edx, eax ; +0xcf, 0x1800879ef sub r8d, edx ; +0xd1, 0x1800879f1 mov eax, edx ; +0xd4, 0x1800879f4 sub r8d, ecx ; +0xd6, 0x1800879f6 shl eax, 0Ah ; +0xd9, 0x1800879f9 xor r8d, eax ; +0xdc, 0x1800879fc sub ecx, r8d ; +0xdf, 0x1800879ff mov eax, r8d ; +0xe2, 0x180087a02 sub ecx, edx ; +0xe5, 0x180087a05 shr rax, 0Fh ; +0xe7, 0x180087a07 mov edx, ecx ; +0xeb, 0x180087a0b mov ecx, [r10+8] ; +0xed, 0x180087a0d xor rdx, rax ; +0xf1, 0x180087a11 mov rax, [r10] ; +0xf4, 0x180087a14 dec ecx ; +0xf7, 0x180087a17 and rdx, rcx ; +0xf9, 0x180087a19 add rdx, rdx ; +0xfc, 0x180087a1c mov rcx, [rax+rdx*8] ; +0xff, 0x180087a1f test rcx, rcx ; +0x103, 0x180087a23 jz short loc_180087A4F ; +0x106, 0x180087a26 mov rdx, [r10+20h] ; +0x108, 0x180087a28 sub rcx, rdx ; +0x10c, 0x180087a2c jz short loc_180087A52 ; +0x10f, 0x180087a2f cmp dword ptr [rcx+40h], 4 ; +0x111, 0x180087a31 jnz short loc_180087A3F ; +0x115, 0x180087a35 mov rax, [rcx+38h] ; +0x117, 0x180087a37 cmp [rax], esi ; +0x11b, 0x180087a3b jz short loc_180087A52 ; +0x11d, 0x180087a3d mov rcx, [rcx+30h] ; +0x11f, 0x180087a3f test rcx, rcx ; +0x123, 0x180087a43 jz short loc_180087A4F ; +0x126, 0x180087a46 sub rcx, rdx ; +0x128, 0x180087a48 jnz short loc_180087A31 ; +0x12b, 0x180087a4b jmp short loc_180087A52 ; +0x12d, 0x180087a4d mov rcx, rbp ; +0x12f, 0x180087a4f mov [rsp+48h+arg_10], rdi ; +0x132, 0x180087a52 mov r14, r11 ; +0x137, 0x180087a57 mov [rsp+48h+arg_18], r12 ; +0x13a, 0x180087a5a test rcx, rcx ; +0x13f, 0x180087a5f jnz loc_180087E3C ; +0x142, 0x180087a62 mov ecx, 48h ; 'H'; Size ; +0x148, 0x180087a68 call cs:__imp_malloc ; +0x14d, 0x180087a6d mov rcx, r14; Size ; +0x153, 0x180087a73 mov [rax+8], esi ; +0x156, 0x180087a76 mov rdi, rax ; +0x159, 0x180087a79 lea r12, [rax+8] ; +0x15c, 0x180087a7c call cs:__imp_malloc ; +0x160, 0x180087a80 mov r8, r14; Size ; +0x166, 0x180087a86 mov rdx, r15; Src ; +0x169, 0x180087a89 mov rcx, rax; void * ; +0x16c, 0x180087a8c mov [rdi], rax ; +0x16f, 0x180087a8f call memcpy ; +0x172, 0x180087a92 mov [rdi+20h], rbp ; +0x177, 0x180087a97 mov [rdi+38h], r12 ; +0x17b, 0x180087a9b mov dword ptr [rdi+40h], 4 ; +0x17f, 0x180087a9f mov rax, [rbx+68h] ; +0x186, 0x180087aa6 test rax, rax ; +0x18a, 0x180087aaa jnz loc_180087B7E ; +0x18d, 0x180087aad mov [rbx+68h], rdi ; +0x193, 0x180087ab3 lea ecx, [rax+40h]; Size ; +0x197, 0x180087ab7 mov [rdi+18h], rbp ; +0x19a, 0x180087aba call cs:__imp_malloc ; +0x19e, 0x180087abe mov rcx, rax ; +0x1a4, 0x180087ac4 mov rax, [rbx+68h] ; +0x1a7, 0x180087ac7 mov [rax+10h], rcx ; +0x1ab, 0x180087acb mov rax, [rbx+68h] ; +0x1af, 0x180087acf mov rcx, [rax+10h] ; +0x1b3, 0x180087ad3 test rcx, rcx ; +0x1b7, 0x180087ad7 jz loc_180087D16 ; +0x1ba, 0x180087ada xorps xmm0, xmm0 ; +0x1c0, 0x180087ae0 movups xmmword ptr [rcx], xmm0 ; +0x1c3, 0x180087ae3 movups xmmword ptr [rcx+10h], xmm0 ; +0x1c6, 0x180087ae6 movups xmmword ptr [rcx+20h], xmm0 ; +0x1ca, 0x180087aea movups xmmword ptr [rcx+30h], xmm0 ; +0x1ce, 0x180087aee mov rcx, [rbx+68h] ; +0x1d2, 0x180087af2 add rcx, 10h ; +0x1d6, 0x180087af6 mov rax, [rcx] ; +0x1da, 0x180087afa mov [rax+18h], rcx ; +0x1dd, 0x180087afd mov rax, [rbx+68h] ; +0x1e1, 0x180087b01 mov rcx, [rax+10h] ; +0x1e5, 0x180087b05 mov dword ptr [rcx+8], 20h ; ' ' ; +0x1e9, 0x180087b09 mov rax, [rbx+68h] ; +0x1f0, 0x180087b10 mov rcx, [rax+10h] ; +0x1f4, 0x180087b14 mov dword ptr [rcx+0Ch], 5 ; +0x1f8, 0x180087b18 mov rax, [rbx+68h] ; +0x1ff, 0x180087b1f mov rcx, [rax+10h] ; +0x203, 0x180087b23 mov qword ptr [rcx+20h], 10h ; +0x207, 0x180087b27 mov ecx, 200h; Size ; +0x20f, 0x180087b2f call cs:__imp_malloc ; +0x214, 0x180087b34 mov rdx, rax ; +0x21a, 0x180087b3a mov rax, [rbx+68h] ; +0x21d, 0x180087b3d mov rcx, [rax+10h] ; +0x221, 0x180087b41 mov [rcx], rdx ; +0x225, 0x180087b45 mov rax, [rbx+68h] ; +0x228, 0x180087b48 mov rcx, [rax+10h] ; +0x22c, 0x180087b4c mov rcx, [rcx]; void * ; +0x230, 0x180087b50 test rcx, rcx ; +0x233, 0x180087b53 jz loc_180087D16 ; +0x236, 0x180087b56 xor edx, edx; Val ; +0x23c, 0x180087b5c mov r8d, 200h; Size ; +0x23e, 0x180087b5e call memset ; +0x244, 0x180087b64 mov rax, [rbx+68h] ; +0x249, 0x180087b69 lea rsi, [rdi+10h] ; +0x24d, 0x180087b6d mov rcx, [rax+10h] ; +0x251, 0x180087b71 mov dword ptr [rcx+38h], 0A0111FE1h ; +0x255, 0x180087b75 jmp short loc_180087BAE ; +0x25c, 0x180087b7c mov rax, [rax+10h] ; +0x25e, 0x180087b7e lea rsi, [rdi+10h] ; +0x262, 0x180087b82 mov rcx, [rax+18h] ; +0x266, 0x180087b86 mov [rcx+10h], rdi ; +0x26a, 0x180087b8a mov rax, [rbx+68h] ; +0x26e, 0x180087b8e mov rcx, [rax+10h] ; +0x272, 0x180087b92 mov rax, [rcx+18h] ; +0x276, 0x180087b96 sub rax, [rcx+20h] ; +0x27a, 0x180087b9a mov [rdi+18h], rax ; +0x27e, 0x180087b9e mov rax, [rbx+68h] ; +0x282, 0x180087ba2 mov rcx, [rax+10h] ; +0x286, 0x180087ba6 mov [rcx+18h], rsi ; +0x28a, 0x180087baa mov rax, [rbx+68h] ; +0x28e, 0x180087bae mov r8d, 0FEEDBEF3h ; +0x292, 0x180087bb2 mov rcx, [rax+10h] ; +0x298, 0x180087bb8 inc dword ptr [rcx+10h] ; +0x29c, 0x180087bbc mov rax, [rbx+68h] ; +0x29f, 0x180087bbf mov rcx, [rax+10h] ; +0x2a3, 0x180087bc3 mov [rdi+44h], r8d ; +0x2a7, 0x180087bc7 mov [rsi], rcx ; +0x2ab, 0x180087bcb movzx eax, byte ptr [r12+2] ; +0x2ae, 0x180087bce movzx ecx, byte ptr [r12+3] ; +0x2b4, 0x180087bd4 movzx edx, byte ptr [r12] ; +0x2ba, 0x180087bda shl ecx, 8 ; +0x2bf, 0x180087bdf add edx, 112410Dh ; +0x2c2, 0x180087be2 add ecx, eax ; +0x2c8, 0x180087be8 movzx eax, byte ptr [r12+1] ; +0x2ca, 0x180087bea shl ecx, 8 ; +0x2d0, 0x180087bf0 add ecx, eax ; +0x2d3, 0x180087bf3 shl ecx, 8 ; +0x2d5, 0x180087bf5 add edx, ecx ; +0x2d8, 0x180087bf8 xor edx, 7F76Dh ; +0x2da, 0x180087bfa sub r13d, edx ; +0x2e0, 0x180087c00 mov eax, edx ; +0x2e3, 0x180087c03 shl eax, 8 ; +0x2e5, 0x180087c05 xor r13d, eax ; +0x2e8, 0x180087c08 sub r8d, r13d ; +0x2eb, 0x180087c0b mov eax, r13d ; +0x2ee, 0x180087c0e sub r8d, edx ; +0x2f1, 0x180087c11 shr eax, 0Dh ; +0x2f4, 0x180087c14 xor r8d, eax ; +0x2f7, 0x180087c17 sub edx, r8d ; +0x2fa, 0x180087c1a mov eax, r8d ; +0x2fd, 0x180087c1d shr eax, 0Ch ; +0x300, 0x180087c20 sub edx, r13d ; +0x303, 0x180087c23 xor edx, eax ; +0x306, 0x180087c26 sub r13d, r8d ; +0x308, 0x180087c28 sub r13d, edx ; +0x30b, 0x180087c2b mov eax, edx ; +0x30e, 0x180087c2e shl eax, 10h ; +0x310, 0x180087c30 xor r13d, eax ; +0x313, 0x180087c33 sub r8d, r13d ; +0x316, 0x180087c36 mov eax, r13d ; +0x319, 0x180087c39 sub r8d, edx ; +0x31c, 0x180087c3c shr eax, 5 ; +0x31f, 0x180087c3f xor r8d, eax ; +0x322, 0x180087c42 sub edx, r8d ; +0x325, 0x180087c45 mov eax, r8d ; +0x328, 0x180087c48 shr eax, 3 ; +0x32b, 0x180087c4b sub edx, r13d ; +0x32e, 0x180087c4e xor edx, eax ; +0x331, 0x180087c51 sub r13d, r8d ; +0x333, 0x180087c53 sub r13d, edx ; +0x336, 0x180087c56 mov eax, edx ; +0x339, 0x180087c59 shl eax, 0Ah ; +0x33b, 0x180087c5b xor r13d, eax ; +0x33e, 0x180087c5e sub r8d, r13d ; +0x341, 0x180087c61 shr r13d, 0Fh ; +0x344, 0x180087c64 sub r8d, edx ; +0x348, 0x180087c68 xor r8d, r13d ; +0x34b, 0x180087c6b mov ecx, r8d ; +0x34e, 0x180087c6e mov [rdi+44h], ecx ; +0x351, 0x180087c71 mov rax, [rbx+68h] ; +0x354, 0x180087c74 mov rdx, [rax+10h] ; +0x358, 0x180087c78 mov r8d, [rdx+8] ; +0x35c, 0x180087c7c mov rax, [rdx] ; +0x360, 0x180087c80 dec r8d ; +0x363, 0x180087c83 and r8, rcx ; +0x366, 0x180087c86 add r8, r8 ; +0x369, 0x180087c89 inc dword ptr [rax+r8*8+8] ; +0x36c, 0x180087c8c mov rax, [rbx+68h] ; +0x371, 0x180087c91 mov rcx, [rax+10h] ; +0x375, 0x180087c95 mov rax, [rcx] ; +0x379, 0x180087c99 mov rcx, [rax+r8*8] ; +0x37c, 0x180087c9c mov [rdi+30h], rcx ; +0x380, 0x180087ca0 mov [rdi+28h], rbp ; +0x384, 0x180087ca4 mov rax, [rbx+68h] ; +0x388, 0x180087ca8 mov rcx, [rax+10h] ; +0x38c, 0x180087cac mov rax, [rcx] ; +0x390, 0x180087cb0 mov rcx, [rax+r8*8] ; +0x393, 0x180087cb3 test rcx, rcx ; +0x397, 0x180087cb7 jz short loc_180087CC0 ; +0x39a, 0x180087cba mov [rcx+18h], rsi ; +0x39c, 0x180087cbc mov rax, [rbx+68h] ; +0x3a0, 0x180087cc0 mov rcx, [rax+10h] ; +0x3a4, 0x180087cc4 mov rax, [rcx] ; +0x3a8, 0x180087cc8 mov [rax+r8*8], rsi ; +0x3ab, 0x180087ccb mov rax, [rbx+68h] ; +0x3af, 0x180087ccf mov rcx, [rax+10h] ; +0x3b3, 0x180087cd3 mov rcx, [rcx] ; +0x3b7, 0x180087cd7 mov eax, [rcx+r8*8+0Ch] ; +0x3ba, 0x180087cda inc eax ; +0x3bf, 0x180087cdf lea eax, [rax+rax*4] ; +0x3c1, 0x180087ce1 add eax, eax ; +0x3c4, 0x180087ce4 cmp [rcx+r8*8+8], eax ; +0x3c6, 0x180087ce6 jb loc_180087E5F ; +0x3cb, 0x180087ceb mov rax, [rsi] ; +0x3d1, 0x180087cf1 cmp dword ptr [rax+34h], 1 ; +0x3d4, 0x180087cf4 jz loc_180087E5F ; +0x3d8, 0x180087cf8 mov eax, [rax+8] ; +0x3de, 0x180087cfe lea ecx, [rax+rax] ; +0x3e1, 0x180087d01 shl rcx, 4; Size ; +0x3e4, 0x180087d04 call cs:__imp_malloc ; +0x3e8, 0x180087d08 mov r14, rax ; +0x3ee, 0x180087d0e test rax, rax ; +0x3f1, 0x180087d11 jnz short loc_180087D22 ; +0x3f4, 0x180087d14 mov ecx, 0FFFFFFFFh; Code ; +0x3f6, 0x180087d16 call cs:exit ; +0x3fb, 0x180087d1b align 2 ; +0x401, 0x180087d21 mov rdi, [rsi] ; +0x402, 0x180087d22 xor edx, edx; Val ; +0x405, 0x180087d25 mov rcx, r14; void * ; +0x407, 0x180087d27 mov eax, [rdi+8] ; +0x40a, 0x180087d2a lea ebx, [rax+rax] ; +0x40d, 0x180087d2d mov r8d, ebx ; +0x410, 0x180087d30 shl r8, 4; Size ; +0x413, 0x180087d33 call memset ; +0x417, 0x180087d37 mov ecx, [rdi+0Ch] ; +0x41c, 0x180087d3c lea eax, [rbx-1] ; +0x41f, 0x180087d3f mov r8d, [rdi+10h] ; +0x422, 0x180087d42 inc ecx ; +0x426, 0x180087d46 shr r8d, cl ; +0x428, 0x180087d48 mov r11d, ebp ; +0x42b, 0x180087d4b test [rdi+10h], eax ; +0x42e, 0x180087d4e mov eax, ebp ; +0x431, 0x180087d51 setnz al ; +0x433, 0x180087d53 add r8d, eax ; +0x436, 0x180087d56 mov [rdi+28h], r8d ; +0x439, 0x180087d59 mov rax, [rsi] ; +0x43d, 0x180087d5d mov [rax+2Ch], ebp ; +0x440, 0x180087d60 mov rax, [rsi] ; +0x443, 0x180087d63 cmp [rax+8], ebp ; +0x446, 0x180087d66 jbe loc_180087DF5 ; +0x449, 0x180087d69 nop ; +0x44f, 0x180087d6f mov rax, [rax] ; +0x450, 0x180087d70 mov ecx, r11d ; +0x453, 0x180087d73 add rcx, rcx ; +0x456, 0x180087d76 mov r9, [rax+rcx*8] ; +0x459, 0x180087d79 test r9, r9 ; +0x45d, 0x180087d7d jz short loc_180087DE5 ; +0x460, 0x180087d80 mov rax, [rsi] ; +0x462, 0x180087d82 mov r10, [r9+20h] ; +0x465, 0x180087d85 mov ecx, [rax+8] ; +0x469, 0x180087d89 mov eax, [r9+34h] ; +0x46c, 0x180087d8c lea ecx, ds:0FFFFFFFFFFFFFFFFh[rcx*2] ; +0x470, 0x180087d90 and rcx, rax ; +0x477, 0x180087d97 shl rcx, 4 ; +0x47a, 0x180087d9a add rcx, r14 ; +0x47e, 0x180087d9e mov eax, [rcx+8] ; +0x481, 0x180087da1 inc eax ; +0x484, 0x180087da4 mov [rcx+8], eax ; +0x486, 0x180087da6 mov rdx, [rsi] ; +0x489, 0x180087da9 cmp eax, [rdx+28h] ; +0x48c, 0x180087dac jbe short loc_180087DC3 ; +0x48f, 0x180087daf inc dword ptr [rdx+2Ch] ; +0x491, 0x180087db1 xor edx, edx ; +0x494, 0x180087db4 mov r8, [rsi] ; +0x496, 0x180087db6 mov eax, [rcx+8] ; +0x499, 0x180087db9 div dword ptr [r8+28h] ; +0x49c, 0x180087dbc mov [rcx+0Ch], eax ; +0x4a0, 0x180087dc0 mov [r9+18h], rbp ; +0x4a3, 0x180087dc3 mov rax, [rcx] ; +0x4a7, 0x180087dc7 mov [r9+20h], rax ; +0x4aa, 0x180087dca mov rax, [rcx] ; +0x4ae, 0x180087dce test rax, rax ; +0x4b1, 0x180087dd1 jz short loc_180087DDA ; +0x4b4, 0x180087dd4 mov [rax+18h], r9 ; +0x4b6, 0x180087dd6 mov [rcx], r9 ; +0x4ba, 0x180087dda mov r9, r10 ; +0x4bd, 0x180087ddd test r10, r10 ; +0x4c0, 0x180087de0 jnz short loc_180087D82 ; +0x4c3, 0x180087de3 mov rax, [rsi] ; +0x4c5, 0x180087de5 inc r11d ; +0x4c8, 0x180087de8 cmp r11d, [rax+8] ; +0x4cb, 0x180087deb jb loc_180087D70 ; +0x4cf, 0x180087def mov rcx, [rax]; Block ; +0x4d5, 0x180087df5 call cs:__imp_free ; +0x4d8, 0x180087df8 mov rcx, [rsi] ; +0x4de, 0x180087dfe mov eax, [rcx+8] ; +0x4e1, 0x180087e01 add eax, eax ; +0x4e4, 0x180087e04 mov [rcx+8], eax ; +0x4e6, 0x180087e06 mov rax, [rsi] ; +0x4e9, 0x180087e09 inc dword ptr [rax+0Ch] ; +0x4ec, 0x180087e0c mov rax, [rsi] ; +0x4ef, 0x180087e0f mov [rax], r14 ; +0x4f2, 0x180087e12 mov rcx, [rsi] ; +0x4f5, 0x180087e15 mov eax, [rcx+10h] ; +0x4f8, 0x180087e18 shr eax, 1 ; +0x4fb, 0x180087e1b cmp [rcx+2Ch], eax ; +0x4fd, 0x180087e1d jbe short loc_180087E27 ; +0x500, 0x180087e20 mov ebp, [rcx+30h] ; +0x502, 0x180087e22 inc ebp ; +0x505, 0x180087e25 mov [rcx+30h], ebp ; +0x507, 0x180087e27 mov rax, [rsi] ; +0x50a, 0x180087e2a cmp dword ptr [rax+30h], 1 ; +0x50d, 0x180087e2d jbe short loc_180087E5F ; +0x511, 0x180087e31 mov dword ptr [rax+34h], 1 ; +0x513, 0x180087e33 jmp short loc_180087E5F ; +0x51a, 0x180087e3a mov rbx, [rcx] ; +0x51c, 0x180087e3c mov r8, r14; Size ; +0x51f, 0x180087e3f mov rcx, rbx; Buf1 ; +0x522, 0x180087e42 mov rdx, r15; Buf2 ; +0x525, 0x180087e45 call memcmp ; +0x528, 0x180087e48 test eax, eax ; +0x52d, 0x180087e4d jz short loc_180087E61 ; +0x52f, 0x180087e4f mov r8, r14; Size ; +0x531, 0x180087e51 mov rdx, r15; Src ; +0x534, 0x180087e54 mov rcx, rbx; void * ; +0x537, 0x180087e57 call memcpy ; +0x53a, 0x180087e5a mov al, 1 ; +0x53f, 0x180087e5f mov r12, [rsp+48h+arg_18] ; +0x541, 0x180087e61 mov rdi, [rsp+48h+arg_10] ; +0x546, 0x180087e66 mov r13, [rsp+48h+var_20] ; +0x54b, 0x180087e6b mov rbp, [rsp+48h+arg_0] ; +0x550, 0x180087e70 mov r14, [rsp+48h+var_28] ; +0x555, 0x180087e75 add rsp, 30h ; +0x55a, 0x180087e7a pop r15 ; +0x55e, 0x180087e7e pop rsi ; +0x560, 0x180087e80 pop rbx ; +0x561, 0x180087e81 retn ; +0x562, 0x180087e82