; ; GJBaseGameLayer::resetRecord from 0x140239e20 to 0x14023a2d1 (1201 bytes) ; ; 3 xrefs: ; > PlayLayer::resetLevel @ 0x1403b9538 ; > PlayLayer::resetLevel @ 0x1403b95a8 ; > @ 0x1406ce1e4 ; ; 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-8+arg_10], rbx ; +0x0, 0x140239e20 push rbp ; +0x5, 0x140239e25 push rsi ; +0x6, 0x140239e26 push rdi ; +0x7, 0x140239e27 push r12 ; +0x8, 0x140239e28 push r13 ; +0xa, 0x140239e2a push r14 ; +0xc, 0x140239e2c push r15 ; +0xe, 0x140239e2e lea rbp, [rsp-27h] ; +0x10, 0x140239e30 sub rsp, 0A0h ; +0x15, 0x140239e35 mov rax, cs:__security_cookie ; +0x1c, 0x140239e3c xor rax, rsp ; +0x23, 0x140239e43 mov [rbp+57h+var_40], rax ; +0x26, 0x140239e46 mov r12d, edx ; +0x2a, 0x140239e4a mov rsi, rcx ; +0x2d, 0x140239e4d cmp byte ptr [rcx+32A8h], 0 ; +0x30, 0x140239e50 jz loc_14023A2AA ; +0x37, 0x140239e57 cmp byte ptr [rcx+3190h], 0 ; +0x3d, 0x140239e5d jnz loc_14023A2AA ; +0x44, 0x140239e64 xor cl, cl ; +0x4a, 0x140239e6a lea r15, [rsi+3318h] ; +0x4c, 0x140239e6c mov r10, [r15] ; +0x53, 0x140239e73 mov rax, r10 ; +0x56, 0x140239e76 mov r11, [r15+8] ; +0x59, 0x140239e79 cmp r10, r11 ; +0x5d, 0x140239e7d jz short loc_140239E94 ; +0x60, 0x140239e80 cmp dword ptr [rax], 62h ; 'b' ; +0x62, 0x140239e82 jz short loc_140239E92 ; +0x65, 0x140239e85 add rax, 10h ; +0x67, 0x140239e87 cmp rax, r11 ; +0x6b, 0x140239e8b jnz short loc_140239E82 ; +0x6e, 0x140239e8e jmp short loc_140239E94 ; +0x70, 0x140239e90 mov cl, 1 ; +0x72, 0x140239e92 test r12d, r12d ; +0x74, 0x140239e94 jg short loc_140239ED6 ; +0x77, 0x140239e97 test cl, cl ; +0x79, 0x140239e99 jnz short loc_140239ED6 ; +0x7b, 0x140239e9b cmp r10, [rsi+3320h] ; +0x7d, 0x140239e9d jz short loc_140239EAD ; +0x84, 0x140239ea4 mov [rsi+3320h], r10 ; +0x86, 0x140239ea6 lea rcx, [rsi+3330h] ; +0x8d, 0x140239ead call sub_140249690 ; +0x94, 0x140239eb4 xor r13d, r13d ; +0x99, 0x140239eb9 mov [rsi+3370h], r13d ; +0x9c, 0x140239ebc mov [rsi+3400h], r13d ; +0xa3, 0x140239ec3 mov [rsi+32FCh], r13d ; +0xaa, 0x140239eca jmp loc_14023A2AA ; +0xb1, 0x140239ed1 xor r13d, r13d ; +0xb6, 0x140239ed6 mov edi, r13d ; +0xb9, 0x140239ed9 mov [rbp+57h+var_B0], r13d ; +0xbc, 0x140239edc mov eax, r13d ; +0xc0, 0x140239ee0 mov [rbp+57h+var_AC], eax ; +0xc3, 0x140239ee3 mov r9, r11 ; +0xc6, 0x140239ee6 sub r9, r10 ; +0xc9, 0x140239ee9 sar r9, 4 ; +0xcc, 0x140239eec movsxd rbx, r9d ; +0xd0, 0x140239ef0 test r9d, r9d ; +0xd3, 0x140239ef3 jle short loc_140239F28 ; +0xd6, 0x140239ef6 mov r8d, r13d ; +0xd8, 0x140239ef8 lea ecx, [r9-1] ; +0xdb, 0x140239efb mov rdx, rbx ; +0xdf, 0x140239eff shl rdx, 4 ; +0xe2, 0x140239f02 add rdx, 0FFFFFFFFFFFFFFF0h ; +0xe6, 0x140239f06 add rdx, r10 ; +0xea, 0x140239f0a nop dword ptr [rax] ; +0xed, 0x140239f0d mov eax, ecx ; +0xf0, 0x140239f10 mov [rbp+57h+var_AC], ecx ; +0xf2, 0x140239f12 cmp dword ptr [rdx], 62h ; 'b' ; +0xf5, 0x140239f15 jz short loc_140239F28 ; +0xf8, 0x140239f18 dec ecx ; +0xfa, 0x140239f1a inc r8 ; +0xfc, 0x140239f1c sub rdx, 10h ; +0xff, 0x140239f1f cmp r8, rbx ; +0x103, 0x140239f23 jl short loc_140239F10 ; +0x106, 0x140239f26 mov r14d, r13d ; +0x108, 0x140239f28 test r9, r9 ; +0x10b, 0x140239f2b jz short loc_140239FA5 ; +0x10e, 0x140239f2e movsxd rbx, eax ; +0x110, 0x140239f30 mov r8, r13 ; +0x113, 0x140239f33 mov rdx, r10 ; +0x116, 0x140239f36 nop dword ptr [rax+00000000h] ; +0x119, 0x140239f39 mov ecx, [rdx+8] ; +0x120, 0x140239f40 lea eax, [rcx+rdi] ; +0x123, 0x140239f43 movd xmm0, eax ; +0x126, 0x140239f46 cvtdq2ps xmm0, xmm0 ; +0x12a, 0x140239f4a mov r9d, [rdx] ; +0x12d, 0x140239f4d lea eax, [r9-62h] ; +0x130, 0x140239f50 cmp eax, 1 ; +0x134, 0x140239f54 ja short loc_140239F60 ; +0x137, 0x140239f57 movd xmm0, ecx ; +0x139, 0x140239f59 cvtdq2ps xmm0, xmm0 ; +0x13d, 0x140239f5d cmp r8, rbx ; +0x140, 0x140239f60 jl short loc_140239F82 ; +0x143, 0x140239f63 movd xmm1, r12d ; +0x145, 0x140239f65 cvtdq2ps xmm1, xmm1 ; +0x14a, 0x140239f6a comiss xmm0, xmm1 ; +0x14d, 0x140239f6d ja short loc_140239FA5 ; +0x150, 0x140239f70 ucomiss xmm0, xmm1 ; +0x152, 0x140239f72 jp short loc_140239F82 ; +0x155, 0x140239f75 jnz short loc_140239F82 ; +0x157, 0x140239f77 lea eax, [r9-62h] ; +0x159, 0x140239f79 cmp eax, 1 ; +0x15d, 0x140239f7d jbe short loc_140239FA5 ; +0x160, 0x140239f80 cvttss2si edi, xmm0 ; +0x162, 0x140239f82 mov [rbp+57h+var_B0], edi ; +0x166, 0x140239f86 inc r14d ; +0x169, 0x140239f89 inc r8 ; +0x16c, 0x140239f8c add rdx, 10h ; +0x16f, 0x140239f8f mov rcx, r11 ; +0x173, 0x140239f93 sub rcx, r10 ; +0x176, 0x140239f96 sar rcx, 4 ; +0x179, 0x140239f99 movsxd rax, r14d ; +0x17d, 0x140239f9d cmp rax, rcx ; +0x180, 0x140239fa0 jb short loc_140239F40 ; +0x183, 0x140239fa3 mov rdx, [rsi+3338h] ; +0x185, 0x140239fa5 mov rbx, [rdx] ; +0x18c, 0x140239fac cmp rbx, rdx ; +0x18f, 0x140239faf jz loc_14023A0A1 ; +0x192, 0x140239fb2 mov r13, 0CBF29CE484222325h ; +0x198, 0x140239fb8 mov r15, 100000001B3h ; +0x1a2, 0x140239fc2 nop dword ptr [rax+00h] ; +0x1ac, 0x140239fcc cmp [rbx+1Ch], r12d ; +0x1b0, 0x140239fd0 jle loc_14023A084 ; +0x1b4, 0x140239fd4 mov rdi, rbx ; +0x1ba, 0x140239fda lea r9, [rbx+10h] ; +0x1bd, 0x140239fdd movzx ecx, byte ptr [r9] ; +0x1c1, 0x140239fe1 xor rcx, r13 ; +0x1c5, 0x140239fe5 imul rcx, r15 ; +0x1c8, 0x140239fe8 movzx eax, byte ptr [rbx+11h] ; +0x1cc, 0x140239fec xor rcx, rax ; +0x1d0, 0x140239ff0 imul rcx, r15 ; +0x1d3, 0x140239ff3 movzx eax, byte ptr [rbx+12h] ; +0x1d7, 0x140239ff7 xor rcx, rax ; +0x1db, 0x140239ffb imul rcx, r15 ; +0x1de, 0x140239ffe movzx eax, byte ptr [rbx+13h] ; +0x1e2, 0x14023a002 xor rcx, rax ; +0x1e6, 0x14023a006 imul rcx, r15 ; +0x1e9, 0x14023a009 mov r8, [rsi+3360h] ; +0x1ed, 0x14023a00d and r8, rcx ; +0x1f4, 0x14023a014 add r8, r8 ; +0x1f7, 0x14023a017 mov rcx, [rsi+3348h] ; +0x1fa, 0x14023a01a mov rax, [rcx+r8*8] ; +0x201, 0x14023a021 cmp [rcx+r8*8+8], rbx ; +0x205, 0x14023a025 jnz short loc_14023A047 ; +0x20a, 0x14023a02a cmp rax, rbx ; +0x20c, 0x14023a02c jnz short loc_14023A03C ; +0x20f, 0x14023a02f mov [rcx+r8*8], rdx ; +0x211, 0x14023a031 mov [rcx+r8*8+8], rdx ; +0x215, 0x14023a035 jmp short loc_14023A053 ; +0x21a, 0x14023a03a mov rdx, [rbx+8] ; +0x21c, 0x14023a03c mov [rcx+r8*8+8], rdx ; +0x220, 0x14023a040 jmp short loc_14023A053 ; +0x225, 0x14023a045 cmp rax, rbx ; +0x227, 0x14023a047 jnz short loc_14023A053 ; +0x22a, 0x14023a04a mov rax, [rbx] ; +0x22c, 0x14023a04c mov [rcx+r8*8], rax ; +0x22f, 0x14023a04f mov rbx, [rbx] ; +0x233, 0x14023a053 dec qword ptr [rsi+3340h] ; +0x236, 0x14023a056 mov rax, [rdi+8] ; +0x23d, 0x14023a05d mov [rax], rbx ; +0x241, 0x14023a061 mov rax, [rdi+8] ; +0x244, 0x14023a064 mov [rbx+8], rax ; +0x248, 0x14023a068 lea rcx, [r9+30h] ; +0x24c, 0x14023a06c call sub_14003A830 ; +0x250, 0x14023a070 mov edx, 60h ; '`' ; +0x255, 0x14023a075 mov rcx, rdi; Block ; +0x25a, 0x14023a07a call j_j_free ; +0x25d, 0x14023a07d jmp short loc_14023A087 ; +0x262, 0x14023a082 mov rbx, [rbx] ; +0x264, 0x14023a084 mov rdx, [rsi+3338h] ; +0x267, 0x14023a087 cmp rbx, rdx ; +0x26e, 0x14023a08e jnz loc_140239FD0 ; +0x271, 0x14023a091 lea r15, [rsi+3318h] ; +0x277, 0x14023a097 xor r13d, r13d ; +0x27e, 0x14023a09e movsxd rbx, r14d ; +0x281, 0x14023a0a1 mov rdx, [r15] ; +0x284, 0x14023a0a4 mov rdi, [r15+8] ; +0x287, 0x14023a0a7 mov rcx, rdi ; +0x28b, 0x14023a0ab sub rcx, rdx ; +0x28e, 0x14023a0ae sar rcx, 4 ; +0x291, 0x14023a0b1 cmp rbx, rcx ; +0x295, 0x14023a0b5 jnb short loc_14023A0C7 ; +0x298, 0x14023a0b8 shl rbx, 4 ; +0x29a, 0x14023a0ba add rbx, rdx ; +0x29e, 0x14023a0be mov [r15+8], rbx ; +0x2a1, 0x14023a0c1 jmp short loc_14023A103 ; +0x2a5, 0x14023a0c5 jbe short loc_14023A103 ; +0x2a7, 0x14023a0c7 mov rax, [r15+10h] ; +0x2a9, 0x14023a0c9 sub rax, rdx ; +0x2ad, 0x14023a0cd sar rax, 4 ; +0x2b0, 0x14023a0d0 cmp rbx, rax ; +0x2b4, 0x14023a0d4 jbe short loc_14023A0E6 ; +0x2b7, 0x14023a0d7 mov rdx, rbx ; +0x2b9, 0x14023a0d9 mov rcx, r15 ; +0x2bc, 0x14023a0dc call sub_140252E00 ; +0x2bf, 0x14023a0df jmp short loc_14023A103 ; +0x2c4, 0x14023a0e4 sub rbx, rcx ; +0x2c6, 0x14023a0e6 jz short loc_14023A0FF ; +0x2c9, 0x14023a0e9 shl rbx, 4 ; +0x2cb, 0x14023a0eb mov r8, rbx; Size ; +0x2cf, 0x14023a0ef xor edx, edx; Val ; +0x2d2, 0x14023a0f2 mov rcx, rdi; void * ; +0x2d4, 0x14023a0f4 call memset ; +0x2d7, 0x14023a0f7 add rdi, rbx ; +0x2dc, 0x14023a0fc mov [r15+8], rdi ; +0x2df, 0x14023a0ff mov [rsi+3400h], r14d ; +0x2e3, 0x14023a103 cmp byte ptr [rsi+309Eh], 0 ; +0x2ea, 0x14023a10a jnz short loc_14023A11C ; +0x2f1, 0x14023a111 mov eax, [rbp+57h+var_B0] ; +0x2f3, 0x14023a113 mov [rsi+32FCh], eax ; +0x2f6, 0x14023a116 mov eax, 63h ; 'c' ; +0x2fc, 0x14023a11c test r14d, r14d ; +0x301, 0x14023a121 jle short loc_14023A132 ; +0x304, 0x14023a124 mov ecx, 62h ; 'b' ; +0x306, 0x14023a126 cmp r14d, [rbp+57h+var_AC] ; +0x30b, 0x14023a12b cmovz eax, ecx ; +0x30f, 0x14023a12f cmp byte ptr [rsi+32A8h], 0 ; +0x312, 0x14023a132 jz loc_14023A2AA ; +0x319, 0x14023a139 xorps xmm0, xmm0 ; +0x31f, 0x14023a13f movups [rbp+57h+var_A8], xmm0 ; +0x322, 0x14023a142 mov dword ptr [rbp+57h+var_A8], eax ; +0x326, 0x14023a146 mov dword ptr [rbp+57h+var_A8+8], r12d ; +0x329, 0x14023a149 mov ebx, [rsi+3370h] ; +0x32d, 0x14023a14d mov dword ptr [rbp+57h+var_A8+0Ch], ebx ; +0x333, 0x14023a153 lea eax, [rbx+1] ; +0x336, 0x14023a156 mov [rsi+3370h], eax ; +0x339, 0x14023a159 mov rdx, [r15+8] ; +0x33f, 0x14023a15f cmp rdx, [r15+10h] ; +0x343, 0x14023a163 jz short loc_14023A177 ; +0x347, 0x14023a167 movups xmm0, [rbp+57h+var_A8] ; +0x349, 0x14023a169 movups xmmword ptr [rdx], xmm0 ; +0x34d, 0x14023a16d add qword ptr [r15+8], 10h ; +0x350, 0x14023a170 jmp short loc_14023A183 ; +0x355, 0x14023a175 lea r8, [rbp+57h+var_A8] ; +0x357, 0x14023a177 mov rcx, r15 ; +0x35b, 0x14023a17b call sub_140252EF0 ; +0x35e, 0x14023a17e xorps xmm0, xmm0 ; +0x363, 0x14023a183 xor eax, eax ; +0x366, 0x14023a186 movups [rbp+57h+var_90], xmm0 ; +0x368, 0x14023a188 movups [rbp+57h+var_80], xmm0 ; +0x36c, 0x14023a18c movups xmmword ptr [rbp+57h+Src], xmm0 ; +0x370, 0x14023a190 movups xmmword ptr [rbp+57h+Size], xmm0 ; +0x374, 0x14023a194 movups xmmword ptr [rbp+57h+Src+8], xmm0 ; +0x378, 0x14023a198 mov [rbp+57h+Size+8], r13 ; +0x37c, 0x14023a19c mov [rbp+57h+var_50], 0Fh ; +0x380, 0x14023a1a0 mov byte ptr [rbp+57h+Src+8], al ; +0x388, 0x14023a1a8 mov dword ptr [rbp+57h+var_90], ebx ; +0x38b, 0x14023a1ab mov rax, [rsi+32E0h] ; +0x38e, 0x14023a1ae mov qword ptr [rbp+57h+var_90+8], rax ; +0x395, 0x14023a1b5 mov dword ptr [rbp+57h+var_90+4], r12d ; +0x399, 0x14023a1b9 mov eax, [rsi+3084h] ; +0x39d, 0x14023a1bd mov dword ptr [rbp+57h+var_80], eax ; +0x3a3, 0x14023a1c3 mov eax, [rsi+3568h] ; +0x3a6, 0x14023a1c6 mov dword ptr [rbp+57h+var_80+4], eax ; +0x3ac, 0x14023a1cc mov eax, [rsi+356Ch] ; +0x3af, 0x14023a1cf mov dword ptr [rbp+57h+Src], eax ; +0x3b5, 0x14023a1d5 mov eax, [rsi+864h] ; +0x3b8, 0x14023a1d8 mov dword ptr [rbp+57h+Src+4], eax ; +0x3be, 0x14023a1de movsd xmm0, qword ptr [rsi+3560h] ; +0x3c1, 0x14023a1e1 mulsd xmm0, cs:qword_140623060; X ; +0x3c9, 0x14023a1e9 call cs:llround ; +0x3d1, 0x14023a1f1 mov qword ptr [rbp+57h+var_80+8], rax ; +0x3d7, 0x14023a1f7 lea r8, [rsi+3408h] ; +0x3db, 0x14023a1fb lea rax, [rbp+57h+Src+8] ; +0x3e2, 0x14023a202 cmp rax, r8 ; +0x3e6, 0x14023a206 jz short loc_14023A225 ; +0x3e9, 0x14023a209 mov rdx, r8 ; +0x3eb, 0x14023a20b cmp qword ptr [r8+18h], 0Fh ; +0x3ee, 0x14023a20e jbe short loc_14023A218 ; +0x3f3, 0x14023a213 mov rdx, [r8]; Src ; +0x3f5, 0x14023a215 mov r8, [r8+10h]; Size ; +0x3f8, 0x14023a218 lea rcx, [rbp+57h+Src+8]; void * ; +0x3fc, 0x14023a21c call sub_14003CCE0 ; +0x400, 0x14023a220 lea rcx, [rsi+3330h] ; +0x405, 0x14023a225 lea r8, [rbp+57h+var_90] ; +0x40c, 0x14023a22c lea rdx, [rbp+57h+var_A8] ; +0x410, 0x14023a230 call sub_14024E770 ; +0x414, 0x14023a234 mov rcx, [rax] ; +0x419, 0x14023a239 mov eax, dword ptr [rbp+57h+var_90] ; +0x41c, 0x14023a23c mov [rcx+18h], eax ; +0x41f, 0x14023a23f mov eax, dword ptr [rbp+57h+var_90+4] ; +0x422, 0x14023a242 mov [rcx+1Ch], eax ; +0x425, 0x14023a245 mov rax, qword ptr [rbp+57h+var_90+8] ; +0x428, 0x14023a248 mov [rcx+20h], rax ; +0x42c, 0x14023a24c mov eax, dword ptr [rbp+57h+var_80] ; +0x430, 0x14023a250 mov [rcx+28h], eax ; +0x433, 0x14023a253 mov eax, dword ptr [rbp+57h+var_80+4] ; +0x436, 0x14023a256 mov [rcx+2Ch], eax ; +0x439, 0x14023a259 mov rax, qword ptr [rbp+57h+var_80+8] ; +0x43c, 0x14023a25c mov [rcx+30h], rax ; +0x440, 0x14023a260 mov eax, dword ptr [rbp+57h+Src] ; +0x444, 0x14023a264 mov [rcx+38h], eax ; +0x447, 0x14023a267 mov eax, dword ptr [rbp+57h+Src+4] ; +0x44a, 0x14023a26a mov [rcx+3Ch], eax ; +0x44d, 0x14023a26d add rcx, 40h ; '@'; void * ; +0x450, 0x14023a270 lea rax, [rbp+57h+Src+8] ; +0x454, 0x14023a274 cmp rcx, rax ; +0x458, 0x14023a278 jz short loc_14023A294 ; +0x45b, 0x14023a27b lea rdx, [rbp+57h+Src+8] ; +0x45d, 0x14023a27d cmp [rbp+57h+var_50], 0Fh ; +0x461, 0x14023a281 cmova rdx, [rbp+57h+Src+8]; Src ; +0x466, 0x14023a286 mov r8, [rbp+57h+Size+8]; Size ; +0x46b, 0x14023a28b call sub_14003CCE0 ; +0x46f, 0x14023a28f mov [rsi+32FCh], r12d ; +0x474, 0x14023a294 inc dword ptr [rsi+3400h] ; +0x47b, 0x14023a29b lea rcx, [rbp+57h+Src+8] ; +0x481, 0x14023a2a1 call sub_14003A830 ; +0x485, 0x14023a2a5 mov rcx, [rbp+57h+var_40] ; +0x48a, 0x14023a2aa xor rcx, rsp; StackCookie ; +0x48e, 0x14023a2ae call __security_check_cookie ; +0x491, 0x14023a2b1 mov rbx, [rsp+0D0h+arg_10] ; +0x496, 0x14023a2b6 add rsp, 0A0h ; +0x49e, 0x14023a2be pop r15 ; +0x4a5, 0x14023a2c5 pop r14 ; +0x4a7, 0x14023a2c7 pop r13 ; +0x4a9, 0x14023a2c9 pop r12 ; +0x4ab, 0x14023a2cb pop rdi ; +0x4ad, 0x14023a2cd pop rsi ; +0x4ae, 0x14023a2ce pop rbp ; +0x4af, 0x14023a2cf retn ; +0x4b0, 0x14023a2d0