; ; GameLevelManager::onGetGJSecretRewardCompleted from 0x1401653a0 to 0x140166020 (3200 bytes) ; ; 2 xrefs: ; > GameLevelManager::handleIt @ 0x140143edd ; > @ 0x1406cacc8 ; ; 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_18], rbx ; +0x0, 0x1401653a0 push rbp ; +0x5, 0x1401653a5 push rsi ; +0x6, 0x1401653a6 push rdi ; +0x7, 0x1401653a7 push r12 ; +0x8, 0x1401653a8 push r13 ; +0xa, 0x1401653aa push r14 ; +0xc, 0x1401653ac push r15 ; +0xe, 0x1401653ae lea rbp, [rsp-2E0h] ; +0x10, 0x1401653b0 sub rsp, 3E0h ; +0x18, 0x1401653b8 mov rax, cs:__security_cookie ; +0x1f, 0x1401653bf xor rax, rsp ; +0x26, 0x1401653c6 mov [rbp+310h+var_40], rax ; +0x29, 0x1401653c9 mov rax, r8 ; +0x30, 0x1401653d0 mov [rsp+410h+var_3B0], rax ; +0x33, 0x1401653d3 mov r12, rdx ; +0x38, 0x1401653d8 mov [rsp+410h+var_3A8], rdx ; +0x3b, 0x1401653db mov r13, rcx ; +0x40, 0x1401653e0 mov [rsp+410h+var_3C0], rcx ; +0x43, 0x1401653e3 mov [rsp+410h+var_398], rdx ; +0x48, 0x1401653e8 mov [rbp+310h+var_390], rax ; +0x4d, 0x1401653ed xorps xmm0, xmm0 ; +0x51, 0x1401653f1 movups xmmword ptr [rbp+310h+Block], xmm0 ; +0x54, 0x1401653f4 mov [rbp+310h+var_378], 0Bh ; +0x58, 0x1401653f8 mov ebx, 0Fh ; +0x60, 0x140165400 mov [rbp+310h+var_370], rbx ; +0x65, 0x140165405 movsd xmm0, cs:qword_14055A368 ; +0x69, 0x140165409 movsd [rbp+310h+Block], xmm0 ; +0x71, 0x140165411 movzx eax, cs:word_14055A370 ; +0x76, 0x140165416 mov word ptr [rbp+310h+Block+8], ax ; +0x7d, 0x14016541d movzx eax, cs:byte_14055A372 ; +0x81, 0x140165421 mov byte ptr [rbp+310h+Block+0Ah], al ; +0x88, 0x140165428 mov byte ptr [rbp+310h+Block+0Bh], 0 ; +0x8b, 0x14016542b lea rdx, [rbp+310h+Block] ; +0x8f, 0x14016542f mov rcx, [rcx+248h] ; +0x93, 0x140165433 call cs:?removeObjectForKey@CCDictionary@cocos2d@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::removeObjectForKey(std::string const &) ; +0x9a, 0x14016543a nop ; +0xa0, 0x140165440 mov rdx, [rbp+310h+var_370] ; +0xa1, 0x140165441 cmp rdx, rbx ; +0xa5, 0x140165445 jbe short loc_14016547E ; +0xa8, 0x140165448 inc rdx ; +0xaa, 0x14016544a mov rcx, [rbp+310h+Block]; Block ; +0xad, 0x14016544d mov rax, rcx ; +0xb1, 0x140165451 cmp rdx, 1000h ; +0xb4, 0x140165454 jb short loc_140165479 ; +0xbb, 0x14016545b add rdx, 27h ; ''' ; +0xbd, 0x14016545d mov rcx, [rcx-8] ; +0xc1, 0x140165461 sub rax, rcx ; +0xc5, 0x140165465 add rax, 0FFFFFFFFFFFFFFF8h ; +0xc8, 0x140165468 cmp rax, 1Fh ; +0xcc, 0x14016546c jbe short loc_140165479 ; +0xd0, 0x140165470 call cs:_invalid_parameter_noinfo_noreturn ; +0xd2, 0x140165472 db 0CCh ; +0xd8, 0x140165478 call j_j_free ; +0xd9, 0x140165479 xorps xmm0, xmm0 ; +0xde, 0x14016547e movups [rbp+310h+Buf2], xmm0 ; +0xe1, 0x140165481 mov r9d, 2 ; +0xe5, 0x140165485 mov qword ptr [rbp+310h+var_358], r9 ; +0xeb, 0x14016548b mov qword ptr [rbp+310h+var_358+8], rbx ; +0xef, 0x14016548f movzx eax, cs:word_1405334A0 ; +0xf3, 0x140165493 mov word ptr [rbp+310h+Buf2], ax ; +0xfa, 0x14016549a mov byte ptr [rbp+310h+Buf2+2], 0 ; +0xfe, 0x14016549e lea rdx, [rbp+310h+Buf2]; Buf2 ; +0x102, 0x1401654a2 mov rcx, r12 ; +0x106, 0x1401654a6 cmp qword ptr [r12+18h], 0Fh ; +0x109, 0x1401654a9 jbe short loc_1401654B5 ; +0x10f, 0x1401654af mov rcx, [r12]; Buf1 ; +0x111, 0x1401654b1 mov r14, [r12+10h] ; +0x115, 0x1401654b5 mov r8, r14 ; +0x11a, 0x1401654ba cmp r9, r14 ; +0x11d, 0x1401654bd cmovb r8, r9; Size ; +0x120, 0x1401654c0 call memcmp ; +0x124, 0x1401654c4 mov ebx, eax ; +0x129, 0x1401654c9 mov rdi, 0FFFFFFFFFFFFFFFFh ; +0x12b, 0x1401654cb test eax, eax ; +0x132, 0x1401654d2 jnz short loc_1401654E9 ; +0x134, 0x1401654d4 cmp r14, 2 ; +0x136, 0x1401654d6 jnb short loc_1401654E0 ; +0x13a, 0x1401654da mov ebx, edi ; +0x13c, 0x1401654dc jmp short loc_1401654E9 ; +0x13e, 0x1401654de xor ebx, ebx ; +0x140, 0x1401654e0 cmp r14, 2 ; +0x142, 0x1401654e2 setnbe bl ; +0x146, 0x1401654e6 test ebx, ebx ; +0x149, 0x1401654e9 jz short loc_14016550D ; +0x14b, 0x1401654eb lea rdx, asc_140531EF4; "|" ; +0x14d, 0x1401654ed mov rcx, r12 ; +0x154, 0x1401654f4 call sub_140140F70 ; +0x157, 0x1401654f7 mov rbx, rax ; +0x15c, 0x1401654fc mov rcx, rax ; +0x15f, 0x1401654ff call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x162, 0x140165502 cmp eax, 2 ; +0x168, 0x140165508 jnb short loc_140165528 ; +0x16b, 0x14016550b mov rcx, [r13+360h] ; +0x16d, 0x14016550d test rcx, rcx ; +0x174, 0x140165514 jz short loc_140165520 ; +0x177, 0x140165517 mov rax, [rcx] ; +0x179, 0x140165519 call qword ptr [rax+8] ; +0x17c, 0x14016551c nop ; +0x17f, 0x14016551f mov rcx, r12 ; +0x180, 0x140165520 jmp loc_140165968 ; +0x183, 0x140165523 xor edx, edx ; +0x188, 0x140165528 mov rcx, rbx ; +0x18a, 0x14016552a call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x18d, 0x14016552d mov rcx, rax ; +0x193, 0x140165533 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x196, 0x140165536 xorps xmm0, xmm0 ; +0x19c, 0x14016553c movups [rbp+310h+var_348], xmm0 ; +0x19f, 0x14016553f xor r12d, r12d ; +0x1a3, 0x140165543 mov qword ptr [rbp+310h+var_338], r12 ; +0x1a6, 0x140165546 mov qword ptr [rbp+310h+var_338+8], r12 ; +0x1aa, 0x14016554a mov r8, rdi ; +0x1ae, 0x14016554e inc r8 ; +0x1b1, 0x140165551 cmp [rax+r8], r12b ; +0x1b4, 0x140165554 jnz short loc_140165551 ; +0x1b8, 0x140165558 mov rdx, rax ; +0x1ba, 0x14016555a lea rcx, [rbp+310h+var_348] ; +0x1bd, 0x14016555d call sub_14003A930 ; +0x1c1, 0x140165561 nop ; +0x1c6, 0x140165566 mov edx, 1 ; +0x1c7, 0x140165567 mov rcx, rbx ; +0x1cc, 0x14016556c call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x1cf, 0x14016556f mov rcx, rax ; +0x1d5, 0x140165575 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x1d8, 0x140165578 xorps xmm0, xmm0 ; +0x1de, 0x14016557e movups xmmword ptr [rbp+310h+var_308], xmm0 ; +0x1e1, 0x140165581 mov [rbp+310h+Size], r12 ; +0x1e5, 0x140165585 mov [rbp+310h+var_2F0], r12 ; +0x1e9, 0x140165589 mov r8, rdi ; +0x1ed, 0x14016558d inc r8 ; +0x1f0, 0x140165590 cmp byte ptr [rax+r8], 0 ; +0x1f3, 0x140165593 jnz short loc_140165590 ; +0x1f8, 0x140165598 mov rdx, rax ; +0x1fa, 0x14016559a lea rcx, [rbp+310h+var_308] ; +0x1fd, 0x14016559d call sub_14003A930 ; +0x201, 0x1401655a1 nop ; +0x206, 0x1401655a6 xorps xmm0, xmm0 ; +0x207, 0x1401655a7 movups [rbp+310h+Buf2], xmm0 ; +0x20a, 0x1401655aa mov qword ptr [rbp+310h+var_358], r12 ; +0x20e, 0x1401655ae mov qword ptr [rbp+310h+var_358+8], r12 ; +0x212, 0x1401655b2 mov rax, qword ptr [rbp+310h+var_338] ; +0x216, 0x1401655b6 cmp rax, 5 ; +0x21a, 0x1401655ba jb loc_14016600E ; +0x21e, 0x1401655be add rax, 0FFFFFFFFFFFFFFFBh ; +0x224, 0x1401655c4 mov r8, rdi ; +0x228, 0x1401655c8 cmp rax, rdi ; +0x22b, 0x1401655cb cmovb r8, rax ; +0x22e, 0x1401655ce lea rdx, [rbp+310h+var_348] ; +0x232, 0x1401655d2 cmp qword ptr [rbp+310h+var_338+8], 0Fh ; +0x236, 0x1401655d6 cmova rdx, qword ptr [rbp+310h+var_348] ; +0x23b, 0x1401655db add rdx, 5 ; +0x240, 0x1401655e0 lea rcx, [rbp+310h+Buf2] ; +0x244, 0x1401655e4 call sub_14003A930 ; +0x248, 0x1401655e8 mov rdx, qword ptr [rbp+310h+var_338+8] ; +0x24d, 0x1401655ed cmp rdx, 0Fh ; +0x251, 0x1401655f1 jbe short loc_140165628 ; +0x255, 0x1401655f5 inc rdx ; +0x257, 0x1401655f7 mov rcx, qword ptr [rbp+310h+var_348] ; +0x25a, 0x1401655fa mov rax, rcx ; +0x25e, 0x1401655fe cmp rdx, 1000h ; +0x261, 0x140165601 jb short loc_140165623 ; +0x268, 0x140165608 add rdx, 27h ; ''' ; +0x26a, 0x14016560a mov rcx, [rcx-8]; Block ; +0x26e, 0x14016560e sub rax, rcx ; +0x272, 0x140165612 add rax, 0FFFFFFFFFFFFFFF8h ; +0x275, 0x140165615 cmp rax, 1Fh ; +0x279, 0x140165619 ja loc_140165F79 ; +0x27d, 0x14016561d call j_j_free ; +0x283, 0x140165623 movups xmm1, [rbp+310h+Buf2] ; +0x288, 0x140165628 movups [rbp+310h+var_348], xmm1 ; +0x28c, 0x14016562c movups xmm2, [rbp+310h+var_358] ; +0x290, 0x140165630 movups [rbp+310h+var_338], xmm2 ; +0x294, 0x140165634 xorps xmm0, xmm0 ; +0x298, 0x140165638 movups xmmword ptr [rbp+310h+var_328], xmm0 ; +0x29b, 0x14016563b mov [rbp+310h+var_318], r12 ; +0x29f, 0x14016563f mov [rbp+310h+var_310], r12 ; +0x2a3, 0x140165643 lea r14, [rbp+310h+var_348] ; +0x2a7, 0x140165647 movq rcx, xmm1 ; +0x2ab, 0x14016564b movdqa xmm0, xmm2 ; +0x2b0, 0x140165650 psrldq xmm0, 8 ; +0x2b4, 0x140165654 movq rax, xmm0 ; +0x2b9, 0x140165659 cmp rax, 0Fh ; +0x2be, 0x14016565e cmova r14, rcx ; +0x2c2, 0x140165662 movq rsi, xmm2 ; +0x2c6, 0x140165666 mov r15, 7FFFFFFFFFFFFFFFh ; +0x2cb, 0x14016566b cmp rsi, r15 ; +0x2d5, 0x140165675 ja loc_140166014 ; +0x2d8, 0x140165678 mov eax, 16h ; +0x2de, 0x14016567e cmp rsi, 0Fh ; +0x2e3, 0x140165683 ja short loc_1401656A0 ; +0x2e7, 0x140165687 mov [rbp+310h+var_318], rsi ; +0x2e9, 0x140165689 mov eax, 0Fh ; +0x2ed, 0x14016568d mov [rbp+310h+var_310], rax ; +0x2f2, 0x140165692 movups xmm0, xmmword ptr [r14] ; +0x2f6, 0x140165696 movups xmmword ptr [rbp+310h+var_328], xmm0 ; +0x2fa, 0x14016569a jmp short loc_1401656DD ; +0x2fe, 0x14016569e mov rbx, rsi ; +0x300, 0x1401656a0 or rbx, 0Fh ; +0x303, 0x1401656a3 cmp rbx, r15 ; +0x307, 0x1401656a7 jbe short loc_1401656B1 ; +0x30a, 0x1401656aa mov rbx, r15 ; +0x30c, 0x1401656ac jmp short loc_1401656B8 ; +0x30f, 0x1401656af cmp rbx, rax ; +0x311, 0x1401656b1 cmovb rbx, rax ; +0x314, 0x1401656b4 lea rcx, [rbx+1] ; +0x318, 0x1401656b8 call sub_14003AA10 ; +0x31c, 0x1401656bc mov [rbp+310h+var_328], rax ; +0x321, 0x1401656c1 mov [rbp+310h+var_318], rsi ; +0x325, 0x1401656c5 mov [rbp+310h+var_310], rbx ; +0x329, 0x1401656c9 lea r8, [rsi+1]; Size ; +0x32d, 0x1401656cd mov rdx, r14; Src ; +0x331, 0x1401656d1 mov rcx, rax; void * ; +0x334, 0x1401656d4 call memcpy ; +0x337, 0x1401656d7 nop ; +0x33c, 0x1401656dc lea rax, aTg; "tg" ; +0x33d, 0x1401656dd mov [rsp+410h+var_3E0], rax ; +0x344, 0x1401656e4 mov [rsp+410h+var_3E8], 43h ; 'C' ; +0x349, 0x1401656e9 mov [rsp+410h+var_3F0], 51h ; 'Q' ; +0x351, 0x1401656f1 lea r9, aFpya; "fpYa" ; +0x359, 0x1401656f9 lea r8, aC26; "C26" ; +0x360, 0x140165700 mov edx, 70h ; 'p' ; +0x367, 0x140165707 lea rcx, aCSSCCS; "%c%s%s%c%c%s" ; +0x36c, 0x14016570c call cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0x373, 0x140165713 mov rcx, rax ; +0x379, 0x140165719 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x37c, 0x14016571c mov r8, rdi ; +0x382, 0x140165722 inc r8; Size ; +0x385, 0x140165725 cmp byte ptr [rax+r8], 0 ; +0x388, 0x140165728 jnz short loc_140165725 ; +0x38d, 0x14016572d mov rdx, rax; void * ; +0x38f, 0x14016572f lea rcx, [rbp+310h+var_328]; Src ; +0x392, 0x140165732 call sub_140041270 ; +0x396, 0x140165736 lea rax, [rbp+310h+var_328] ; +0x39b, 0x14016573b cmp [rbp+310h+var_310], 0Fh ; +0x39f, 0x14016573f jbe short loc_14016574F ; +0x3a4, 0x140165744 mov rcx, [rbp+310h+var_328] ; +0x3a6, 0x140165746 mov rax, rcx ; +0x3aa, 0x14016574a jmp short loc_140165753 ; +0x3ad, 0x14016574d lea rcx, [rbp+310h+var_328] ; +0x3af, 0x14016574f mov rdx, rdi ; +0x3b3, 0x140165753 inc rdx ; +0x3b6, 0x140165756 cmp byte ptr [rax+rdx], 0 ; +0x3b9, 0x140165759 jnz short loc_140165756 ; +0x3bd, 0x14016575d lea r8, [rbp+310h+var_90] ; +0x3bf, 0x14016575f call sub_140070860 ; +0x3c6, 0x140165766 lea rdx, [rbp+310h+var_70] ; +0x3cb, 0x14016576b lea rcx, [rbp+310h+var_90] ; +0x3d2, 0x140165772 call sub_140070B30 ; +0x3d9, 0x140165779 xorps xmm1, xmm1 ; +0x3de, 0x14016577e movups xmmword ptr [rbp+310h+Block], xmm1 ; +0x3e1, 0x140165781 mov [rbp+310h+var_378], r12 ; +0x3e5, 0x140165785 mov [rbp+310h+var_370], r12 ; +0x3e9, 0x140165789 lea rax, [rbp+310h+var_70] ; +0x3ed, 0x14016578d mov r8, rdi ; +0x3f4, 0x140165794 nop word ptr [rax+rax+00000000h] ; +0x3f7, 0x140165797 inc r8 ; +0x400, 0x1401657a0 cmp byte ptr [rax+r8], 0 ; +0x403, 0x1401657a3 jnz short loc_1401657A0 ; +0x408, 0x1401657a8 lea rdx, [rbp+310h+var_70] ; +0x40a, 0x1401657aa lea rcx, [rbp+310h+Block] ; +0x411, 0x1401657b1 call sub_14003A930 ; +0x415, 0x1401657b5 lea rdx, [rbp+310h+var_308] ; +0x41a, 0x1401657ba cmp [rbp+310h+var_2F0], 0Fh ; +0x41e, 0x1401657be setnbe r12b ; +0x423, 0x1401657c3 mov [rsp+410h+var_3CE], r12b ; +0x427, 0x1401657c7 mov rbx, [rbp+310h+var_308] ; +0x42c, 0x1401657cc cmova rdx, rbx; Buf2 ; +0x430, 0x1401657d0 lea rcx, [rbp+310h+Block] ; +0x434, 0x1401657d4 cmp [rbp+310h+var_370], 0Fh ; +0x438, 0x1401657d8 cmova rcx, [rbp+310h+Block]; Buf1 ; +0x43d, 0x1401657dd mov rsi, [rbp+310h+var_378] ; +0x442, 0x1401657e2 mov r8, rsi ; +0x446, 0x1401657e6 mov r14, [rbp+310h+Size] ; +0x449, 0x1401657e9 cmp r14, rsi ; +0x44d, 0x1401657ed cmovb r8, r14; Size ; +0x450, 0x1401657f0 call memcmp ; +0x454, 0x1401657f4 test eax, eax ; +0x459, 0x1401657f9 jnz loc_140165F2B ; +0x45b, 0x1401657fb cmp rsi, r14 ; +0x461, 0x140165801 jb loc_140165F2B ; +0x464, 0x140165804 ja loc_140165F2B ; +0x46a, 0x14016580a lea rcx, [rbp+310h+Block] ; +0x470, 0x140165810 call sub_14003A830 ; +0x474, 0x140165814 xorps xmm0, xmm0 ; +0x479, 0x140165819 movups [rbp+310h+Buf2], xmm0 ; +0x47c, 0x14016581c mov qword ptr [rbp+310h+var_358], 5 ; +0x480, 0x140165820 mov eax, 0Fh ; +0x488, 0x140165828 mov qword ptr [rbp+310h+var_358+8], rax ; +0x48d, 0x14016582d mov eax, cs:dword_14055A374 ; +0x491, 0x140165831 mov dword ptr [rbp+310h+Buf2], eax ; +0x497, 0x140165837 movzx eax, cs:byte_14055A378 ; +0x49a, 0x14016583a mov byte ptr [rbp+310h+Buf2+4], al ; +0x4a1, 0x140165841 mov byte ptr [rbp+310h+Buf2+5], 0 ; +0x4a4, 0x140165844 lea r8, [rbp+310h+Buf2] ; +0x4a8, 0x140165848 lea rdx, [rbp+310h+var_348] ; +0x4ac, 0x14016584c lea rcx, [rbp+310h+var_2C8] ; +0x4b0, 0x140165850 call cs:?base64DecodeEnc@ZipUtils@cocos2d@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV34@V34@@Z; cocos2d::ZipUtils::base64DecodeEnc(std::string const &,std::string) ; +0x4b4, 0x140165854 nop ; +0x4ba, 0x14016585a lea rdx, asc_140557BAC; ":" ; +0x4bb, 0x14016585b lea rcx, [rbp+310h+var_2C8] ; +0x4c2, 0x140165862 call sub_140140F70 ; +0x4c6, 0x140165866 mov rsi, rax ; +0x4cb, 0x14016586b mov rcx, rax ; +0x4ce, 0x14016586e call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x4d1, 0x140165871 cmp eax, 5 ; +0x4d7, 0x140165877 jnb loc_1401659A2 ; +0x4da, 0x14016587a mov rcx, [r13+360h] ; +0x4e0, 0x140165880 test rcx, rcx ; +0x4e7, 0x140165887 jz short loc_140165893 ; +0x4ea, 0x14016588a mov rax, [rcx] ; +0x4ec, 0x14016588c call qword ptr [rax+8] ; +0x4ef, 0x14016588f nop ; +0x4f2, 0x140165892 lea rcx, [rbp+310h+var_2C8] ; +0x4f3, 0x140165893 call sub_14003A830 ; +0x4f7, 0x140165897 nop ; +0x4fc, 0x14016589c mov rdx, [rbp+310h+var_310] ; +0x4fd, 0x14016589d cmp rdx, 0Fh ; +0x501, 0x1401658a1 jbe short loc_1401658D9 ; +0x505, 0x1401658a5 inc rdx ; +0x507, 0x1401658a7 mov rcx, [rbp+310h+var_328] ; +0x50a, 0x1401658aa cmp rdx, 1000h ; +0x50e, 0x1401658ae mov rax, rcx ; +0x515, 0x1401658b5 jb short loc_1401658D3 ; +0x518, 0x1401658b8 mov rcx, [rcx-8]; Block ; +0x51a, 0x1401658ba sub rax, rcx ; +0x51e, 0x1401658be add rdx, 27h ; ''' ; +0x521, 0x1401658c1 add rax, 0FFFFFFFFFFFFFFF8h ; +0x525, 0x1401658c5 cmp rax, 1Fh ; +0x529, 0x1401658c9 ja loc_140165F79 ; +0x52d, 0x1401658cd call j_j_free ; +0x533, 0x1401658d3 nop ; +0x538, 0x1401658d8 test r12b, r12b ; +0x539, 0x1401658d9 jz short loc_140165913 ; +0x53c, 0x1401658dc mov rdx, [rbp+310h+var_2F0] ; +0x53e, 0x1401658de inc rdx ; +0x542, 0x1401658e2 cmp rdx, 1000h ; +0x545, 0x1401658e5 mov rax, rbx ; +0x54c, 0x1401658ec jb short loc_14016590A ; +0x54f, 0x1401658ef add rdx, 27h ; ''' ; +0x551, 0x1401658f1 mov rbx, [rbx-8] ; +0x555, 0x1401658f5 sub rax, rbx ; +0x559, 0x1401658f9 add rax, 0FFFFFFFFFFFFFFF8h ; +0x55c, 0x1401658fc cmp rax, 1Fh ; +0x560, 0x140165900 ja loc_140165FB3 ; +0x564, 0x140165904 mov rcx, rbx; Block ; +0x56a, 0x14016590a call j_j_free ; +0x56d, 0x14016590d nop ; +0x572, 0x140165912 mov rdx, qword ptr [rbp+310h+var_338+8] ; +0x573, 0x140165913 cmp rdx, 0Fh ; +0x577, 0x140165917 jbe short loc_14016594E ; +0x57b, 0x14016591b inc rdx ; +0x57d, 0x14016591d mov rcx, qword ptr [rbp+310h+var_348] ; +0x580, 0x140165920 mov rax, rcx ; +0x584, 0x140165924 cmp rdx, 1000h ; +0x587, 0x140165927 jb short loc_140165949 ; +0x58e, 0x14016592e add rdx, 27h ; ''' ; +0x590, 0x140165930 mov rcx, [rcx-8]; Block ; +0x594, 0x140165934 sub rax, rcx ; +0x598, 0x140165938 add rax, 0FFFFFFFFFFFFFFF8h ; +0x59b, 0x14016593b cmp rax, 1Fh ; +0x59f, 0x14016593f ja loc_140166001 ; +0x5a3, 0x140165943 call j_j_free ; +0x5a9, 0x140165949 mov qword ptr [rbp+310h+var_338], 0 ; +0x5ae, 0x14016594e mov eax, 0Fh ; +0x5b6, 0x140165956 mov qword ptr [rbp+310h+var_338+8], rax ; +0x5bb, 0x14016595b mov byte ptr [rbp+310h+var_348], 0 ; +0x5bf, 0x14016595f mov rcx, [rsp+410h+var_3A8] ; +0x5c3, 0x140165963 call sub_14003A830 ; +0x5c8, 0x140165968 nop ; +0x5cd, 0x14016596d mov rcx, [rsp+410h+var_3B0] ; +0x5ce, 0x14016596e call sub_14003A830 ; +0x5d3, 0x140165973 mov rcx, [rbp+310h+var_40] ; +0x5d8, 0x140165978 xor rcx, rsp; StackCookie ; +0x5df, 0x14016597f call __security_check_cookie ; +0x5e2, 0x140165982 mov rbx, [rsp+410h+arg_18] ; +0x5e7, 0x140165987 add rsp, 3E0h ; +0x5ef, 0x14016598f pop r15 ; +0x5f6, 0x140165996 pop r14 ; +0x5f8, 0x140165998 pop r13 ; +0x5fa, 0x14016599a pop r12 ; +0x5fc, 0x14016599c pop rdi ; +0x5fe, 0x14016599e pop rsi ; +0x5ff, 0x14016599f pop rbp ; +0x600, 0x1401659a0 retn ; +0x601, 0x1401659a1 mov edx, 1 ; +0x602, 0x1401659a2 mov rcx, rsi ; +0x607, 0x1401659a7 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x60a, 0x1401659aa mov rcx, rax ; +0x610, 0x1401659b0 call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x613, 0x1401659b3 mov r14d, eax ; +0x619, 0x1401659b9 mov rcx, cs:qword_1406C2ED8 ; +0x61c, 0x1401659bc test rcx, rcx ; +0x623, 0x1401659c3 jnz short loc_1401659F7 ; +0x626, 0x1401659c6 mov ecx, 668h; Size ; +0x628, 0x1401659c8 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x62d, 0x1401659cd mov [rsp+410h+var_3C8], rax ; +0x632, 0x1401659d2 mov rcx, rax ; +0x637, 0x1401659d7 call sub_14017AB00 ; +0x63a, 0x1401659da nop ; +0x63f, 0x1401659df mov cs:qword_1406C2ED8, rax ; +0x640, 0x1401659e0 mov rdx, [rax] ; +0x647, 0x1401659e7 mov rcx, rax ; +0x64a, 0x1401659ea call qword ptr [rdx+48h] ; +0x64d, 0x1401659ed mov rcx, cs:qword_1406C2ED8 ; +0x650, 0x1401659f0 mov eax, [rcx+378h] ; +0x657, 0x1401659f7 sub eax, [rcx+37Ch] ; +0x65d, 0x1401659fd cmp r14d, eax ; +0x663, 0x140165a03 jnz loc_140165880 ; +0x666, 0x140165a06 mov edx, 2 ; +0x66c, 0x140165a0c mov rcx, rsi ; +0x671, 0x140165a11 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x674, 0x140165a14 mov rcx, rax ; +0x67a, 0x140165a1a call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x67d, 0x140165a1d mov dword ptr [rsp+410h+var_3B8], eax ; +0x683, 0x140165a23 mov edx, 3 ; +0x687, 0x140165a27 mov rcx, rsi ; +0x68c, 0x140165a2c call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x68f, 0x140165a2f mov rcx, rax ; +0x695, 0x140165a35 call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x698, 0x140165a38 mov dword ptr [rsp+410h+var_3C8], eax ; +0x69e, 0x140165a3e mov edx, 4 ; +0x6a2, 0x140165a42 mov rcx, rsi ; +0x6a7, 0x140165a47 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x6aa, 0x140165a4a mov rcx, rax ; +0x6b0, 0x140165a50 call cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0x6b3, 0x140165a53 xorps xmm0, xmm0 ; +0x6b9, 0x140165a59 movups xmmword ptr [rbp+310h+Src], xmm0 ; +0x6bc, 0x140165a5c xor esi, esi ; +0x6c0, 0x140165a60 mov [rbp+310h+var_2D8], rsi ; +0x6c2, 0x140165a62 mov [rbp+310h+var_2D0], rsi ; +0x6c6, 0x140165a66 mov r8, rdi ; +0x6ca, 0x140165a6a nop dword ptr [rax] ; +0x6cd, 0x140165a6d inc r8 ; +0x6d0, 0x140165a70 cmp [rax+r8], sil ; +0x6d3, 0x140165a73 jnz short loc_140165A70 ; +0x6d7, 0x140165a77 mov rdx, rax ; +0x6d9, 0x140165a79 lea rcx, [rbp+310h+Src] ; +0x6dc, 0x140165a7c call sub_14003A930 ; +0x6e0, 0x140165a80 nop ; +0x6e5, 0x140165a85 lea rax, [rbp+310h+Block] ; +0x6e6, 0x140165a86 mov [rsp+410h+var_3A0], rax ; +0x6ea, 0x140165a8a xorps xmm0, xmm0 ; +0x6ef, 0x140165a8f movups xmmword ptr [rbp+310h+Block], xmm0 ; +0x6f2, 0x140165a92 mov [rbp+310h+var_378], rsi ; +0x6f6, 0x140165a96 mov [rbp+310h+var_370], rsi ; +0x6fa, 0x140165a9a lea r12, [rbp+310h+Src] ; +0x6fe, 0x140165a9e cmp [rbp+310h+var_2D0], 0Fh ; +0x702, 0x140165aa2 setnbe [rsp+410h+var_3CF] ; +0x707, 0x140165aa7 mov r14, [rbp+310h+Src] ; +0x70c, 0x140165aac cmova r12, r14 ; +0x710, 0x140165ab0 mov r13, [rbp+310h+var_2D8] ; +0x714, 0x140165ab4 cmp r13, r15 ; +0x718, 0x140165ab8 ja loc_14016601A ; +0x71b, 0x140165abb mov eax, 0Fh ; +0x721, 0x140165ac1 mov [rbp+310h+var_370], rax ; +0x726, 0x140165ac6 cmp r13, rax ; +0x72a, 0x140165aca ja short loc_140165ADE ; +0x72d, 0x140165acd mov [rbp+310h+var_378], r13 ; +0x72f, 0x140165acf movups xmm0, xmmword ptr [r12] ; +0x733, 0x140165ad3 movups xmmword ptr [rbp+310h+Block], xmm0 ; +0x738, 0x140165ad8 jmp short loc_140165B20 ; +0x73c, 0x140165adc mov rsi, r13 ; +0x73e, 0x140165ade or rsi, rax ; +0x741, 0x140165ae1 cmp rsi, r15 ; +0x744, 0x140165ae4 jbe short loc_140165AEE ; +0x747, 0x140165ae7 mov rsi, r15 ; +0x749, 0x140165ae9 jmp short loc_140165AFB ; +0x74c, 0x140165aec cmp rsi, 16h ; +0x74e, 0x140165aee mov eax, 16h ; +0x752, 0x140165af2 cmovb rsi, rax ; +0x757, 0x140165af7 lea rcx, [rsi+1] ; +0x75b, 0x140165afb call sub_14003AA10 ; +0x75f, 0x140165aff mov [rbp+310h+Block], rax ; +0x764, 0x140165b04 mov [rbp+310h+var_378], r13 ; +0x768, 0x140165b08 mov [rbp+310h+var_370], rsi ; +0x76c, 0x140165b0c lea r8, [r13+1]; Size ; +0x770, 0x140165b10 mov rdx, r12; Src ; +0x774, 0x140165b14 mov rcx, rax; void * ; +0x777, 0x140165b17 call memcpy ; +0x77a, 0x140165b1a nop ; +0x77f, 0x140165b1f cmp cs:qword_1406C2EE8, 0 ; +0x780, 0x140165b20 jnz short loc_140165B55 ; +0x788, 0x140165b28 mov ecx, 3E0h; Size ; +0x78a, 0x140165b2a call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x78f, 0x140165b2f mov qword ptr [rbp+310h+var_90], rax ; +0x794, 0x140165b34 mov rcx, rax ; +0x79b, 0x140165b3b call sub_1401D0AE0 ; +0x79e, 0x140165b3e nop ; +0x7a3, 0x140165b43 mov cs:qword_1406C2EE8, rax ; +0x7a4, 0x140165b44 mov rdx, [rax] ; +0x7ab, 0x140165b4b mov rcx, rax ; +0x7ae, 0x140165b4e call qword ptr [rdx+48h] ; +0x7b1, 0x140165b51 nop ; +0x7b4, 0x140165b54 lea r9, [rbp+310h+Block] ; +0x7b5, 0x140165b55 mov esi, dword ptr [rsp+410h+var_3B8] ; +0x7b9, 0x140165b59 mov r8d, esi ; +0x7bd, 0x140165b5d mov edx, dword ptr [rsp+410h+var_3C8] ; +0x7c0, 0x140165b60 call GameStatsManager__createReward ; +0x7c4, 0x140165b64 mov [rsp+410h+var_3C8], rax ; +0x7c9, 0x140165b69 test rax, rax ; +0x7ce, 0x140165b6e jz loc_140165ED5 ; +0x7d1, 0x140165b71 cmp cs:qword_1406C2EE8, 0 ; +0x7d7, 0x140165b77 jnz short loc_140165BAB ; +0x7df, 0x140165b7f mov ecx, 3E0h; Size ; +0x7e1, 0x140165b81 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x7e6, 0x140165b86 mov qword ptr [rbp+310h+var_90], rax ; +0x7eb, 0x140165b8b mov rcx, rax ; +0x7f2, 0x140165b92 call sub_1401D0AE0 ; +0x7f5, 0x140165b95 nop ; +0x7fa, 0x140165b9a mov cs:qword_1406C2EE8, rax ; +0x7fb, 0x140165b9b mov rdx, [rax] ; +0x802, 0x140165ba2 mov rcx, rax ; +0x805, 0x140165ba5 call qword ptr [rdx+48h] ; +0x808, 0x140165ba8 lea rcx, [rbp+310h+var_2A0] ; +0x80b, 0x140165bab call cs:??0?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter::BasicWriter(void) ; +0x80f, 0x140165baf nop ; +0x815, 0x140165bb5 lea rax, aOSecret; "o_secret_" ; +0x816, 0x140165bb6 mov qword ptr [rbp+310h+var_90], rax ; +0x81d, 0x140165bbd xor r12d, r12d ; +0x824, 0x140165bc4 mov qword ptr [rbp+310h+var_90+8], r12 ; +0x827, 0x140165bc7 movaps xmm0, [rbp+310h+var_90] ; +0x82e, 0x140165bce movdqa [rbp+310h+var_90], xmm0 ; +0x835, 0x140165bd5 lea rdx, [rbp+310h+var_90] ; +0x83d, 0x140165bdd lea rcx, [rbp+310h+var_2A0] ; +0x844, 0x140165be4 call cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@V?$BasicStringRef@D@1@@Z; fmt::BasicWriter::operator<<(fmt::BasicStringRef) ; +0x848, 0x140165be8 mov edx, esi ; +0x84e, 0x140165bee lea rcx, [rbp+310h+var_2A0] ; +0x850, 0x140165bf0 call cs:??6?$BasicWriter@D@fmt@@QEAAAEAV01@H@Z; fmt::BasicWriter::operator<<(int) ; +0x854, 0x140165bf4 lea rcx, [rbp+310h+var_2A0] ; +0x85a, 0x140165bfa call cs:?c_str@?$BasicWriter@D@fmt@@QEBAPEBDXZ; fmt::BasicWriter::c_str(void) ; +0x85e, 0x140165bfe xorps xmm0, xmm0 ; +0x864, 0x140165c04 movups [rbp+310h+Buf2], xmm0 ; +0x867, 0x140165c07 mov qword ptr [rbp+310h+var_358], r12 ; +0x86b, 0x140165c0b mov qword ptr [rbp+310h+var_358+8], r12 ; +0x86f, 0x140165c0f inc rdi ; +0x873, 0x140165c13 cmp [rax+rdi], r12b ; +0x876, 0x140165c16 jnz short loc_140165C13 ; +0x87a, 0x140165c1a mov r8, rdi ; +0x87c, 0x140165c1c mov rdx, rax ; +0x87f, 0x140165c1f lea rcx, [rbp+310h+Buf2] ; +0x882, 0x140165c22 call sub_14003A930 ; +0x886, 0x140165c26 nop ; +0x88b, 0x140165c2b lea rcx, [rbp+310h+var_2A0] ; +0x88c, 0x140165c2c call cs:__imp_??1?$BasicWriter@D@fmt@@QEAA@XZ; fmt::BasicWriter::~BasicWriter(void) ; +0x890, 0x140165c30 nop ; +0x896, 0x140165c36 lea rax, [rbp+310h+var_70] ; +0x897, 0x140165c37 mov qword ptr [rbp+310h+var_90], rax ; +0x89e, 0x140165c3e xorps xmm0, xmm0 ; +0x8a5, 0x140165c45 movups [rbp+310h+var_70], xmm0 ; +0x8a8, 0x140165c48 mov [rbp+310h+var_60], r12 ; +0x8af, 0x140165c4f mov [rbp+310h+var_58], r12 ; +0x8b6, 0x140165c56 lea r13, [rbp+310h+Buf2] ; +0x8bd, 0x140165c5d cmp qword ptr [rbp+310h+var_358+8], 0Fh ; +0x8c1, 0x140165c61 setnbe [rsp+410h+var_3D0] ; +0x8c6, 0x140165c66 mov r12, qword ptr [rbp+310h+Buf2] ; +0x8cb, 0x140165c6b cmova r13, r12 ; +0x8cf, 0x140165c6f mov rsi, qword ptr [rbp+310h+var_358] ; +0x8d3, 0x140165c73 cmp rsi, r15 ; +0x8d7, 0x140165c77 ja loc_140166008 ; +0x8da, 0x140165c7a mov eax, 0Fh ; +0x8e0, 0x140165c80 mov [rbp+310h+var_58], rax ; +0x8e5, 0x140165c85 cmp rsi, rax ; +0x8ec, 0x140165c8c ja short loc_140165CA6 ; +0x8ef, 0x140165c8f mov [rbp+310h+var_60], rsi ; +0x8f1, 0x140165c91 movups xmm0, xmmword ptr [r13+0] ; +0x8f8, 0x140165c98 movups [rbp+310h+var_70], xmm0 ; +0x8fd, 0x140165c9d jmp short loc_140165CF0 ; +0x904, 0x140165ca4 mov rdi, rsi ; +0x906, 0x140165ca6 or rdi, rax ; +0x909, 0x140165ca9 cmp rdi, r15 ; +0x90c, 0x140165cac jbe short loc_140165CB6 ; +0x90f, 0x140165caf mov rdi, r15 ; +0x911, 0x140165cb1 jmp short loc_140165CC3 ; +0x914, 0x140165cb4 cmp rdi, 16h ; +0x916, 0x140165cb6 mov eax, 16h ; +0x91a, 0x140165cba cmovb rdi, rax ; +0x91f, 0x140165cbf lea rcx, [rdi+1] ; +0x923, 0x140165cc3 call sub_14003AA10 ; +0x927, 0x140165cc7 mov qword ptr [rbp+310h+var_70], rax ; +0x92c, 0x140165ccc mov [rbp+310h+var_60], rsi ; +0x933, 0x140165cd3 mov [rbp+310h+var_58], rdi ; +0x93a, 0x140165cda lea r8, [rsi+1]; Size ; +0x941, 0x140165ce1 mov rdx, r13; Src ; +0x945, 0x140165ce5 mov rcx, rax; void * ; +0x948, 0x140165ce8 call memcpy ; +0x94b, 0x140165ceb lea rax, [rbp+310h+var_70] ; +0x950, 0x140165cf0 mov [rsp+410h+var_3A0], rax ; +0x957, 0x140165cf7 mov rcx, cs:qword_1406C2EE8 ; +0x95c, 0x140165cfc test rcx, rcx ; +0x963, 0x140165d03 jnz short loc_140165D37 ; +0x966, 0x140165d06 mov ecx, 3E0h; Size ; +0x968, 0x140165d08 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x96d, 0x140165d0d mov [rsp+410h+var_3B8], rax ; +0x972, 0x140165d12 mov rcx, rax ; +0x977, 0x140165d17 call sub_1401D0AE0 ; +0x97a, 0x140165d1a nop ; +0x97f, 0x140165d1f mov cs:qword_1406C2EE8, rax ; +0x980, 0x140165d20 mov rdx, [rax] ; +0x987, 0x140165d27 mov rcx, rax ; +0x98a, 0x140165d2a call qword ptr [rdx+48h] ; +0x98d, 0x140165d2d mov rcx, cs:qword_1406C2EE8 ; +0x990, 0x140165d30 lea r8, [rbp+310h+var_70] ; +0x997, 0x140165d37 mov rdx, [rsp+410h+var_3C8] ; +0x99e, 0x140165d3e mov rcx, [rcx+170h] ; +0x9a3, 0x140165d43 call cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,std::string const &) ; +0x9aa, 0x140165d4a nop ; +0x9b0, 0x140165d50 lea rcx, [rbp+310h+var_70] ; +0x9b1, 0x140165d51 call sub_14003A830 ; +0x9b8, 0x140165d58 mov rax, [rsp+410h+var_3C0] ; +0x9bd, 0x140165d5d movzx r13d, [rsp+410h+var_3D0] ; +0x9c2, 0x140165d62 cmp qword ptr [rax+360h], 0 ; +0x9c8, 0x140165d68 jz loc_140165E0B ; +0x9d0, 0x140165d70 xorps xmm0, xmm0 ; +0x9d6, 0x140165d76 movups xmmword ptr [rbp+310h+Block], xmm0 ; +0x9d9, 0x140165d79 mov [rbp+310h+var_378], 0 ; +0x9dd, 0x140165d7d lea rdi, [rbp+310h+Buf2] ; +0x9e5, 0x140165d85 test r13b, r13b ; +0x9e9, 0x140165d89 cmovnz rdi, r12 ; +0x9ec, 0x140165d8c cmp rsi, 0Fh ; +0x9f0, 0x140165d90 ja short loc_140165DAC ; +0x9f4, 0x140165d94 mov [rbp+310h+var_378], rsi ; +0x9f6, 0x140165d96 mov ecx, 0Fh ; +0x9fa, 0x140165d9a mov [rbp+310h+var_370], rcx ; +0x9ff, 0x140165d9f movups xmm0, xmmword ptr [rdi] ; +0xa03, 0x140165da3 movups xmmword ptr [rbp+310h+Block], xmm0 ; +0xa06, 0x140165da6 jmp short loc_140165DFA ; +0xa0a, 0x140165daa mov eax, 0Fh ; +0xa0c, 0x140165dac mov [rbp+310h+var_370], rax ; +0xa11, 0x140165db1 mov rax, rsi ; +0xa15, 0x140165db5 or rax, 0Fh ; +0xa18, 0x140165db8 cmp rax, r15 ; +0xa1c, 0x140165dbc ja short loc_140165DD1 ; +0xa1f, 0x140165dbf mov r15, rax ; +0xa21, 0x140165dc1 cmp rax, 16h ; +0xa24, 0x140165dc4 mov eax, 16h ; +0xa28, 0x140165dc8 cmovb r15, rax ; +0xa2d, 0x140165dcd lea rcx, [r15+1] ; +0xa31, 0x140165dd1 call sub_14003AA10 ; +0xa35, 0x140165dd5 mov [rbp+310h+Block], rax ; +0xa3a, 0x140165dda mov [rbp+310h+var_378], rsi ; +0xa3e, 0x140165dde mov [rbp+310h+var_370], r15 ; +0xa42, 0x140165de2 lea r8, [rsi+1]; Size ; +0xa46, 0x140165de6 mov rdx, rdi; Src ; +0xa4a, 0x140165dea mov rcx, rax; void * ; +0xa4d, 0x140165ded call memcpy ; +0xa50, 0x140165df0 mov rax, [rsp+410h+var_3C0] ; +0xa55, 0x140165df5 mov rcx, [rax+360h] ; +0xa5a, 0x140165dfa mov rax, [rcx] ; +0xa61, 0x140165e01 lea rdx, [rbp+310h+Block] ; +0xa64, 0x140165e04 call qword ptr [rax] ; +0xa68, 0x140165e08 nop ; +0xa6a, 0x140165e0a test r13b, r13b ; +0xa6b, 0x140165e0b jz short loc_140165E49 ; +0xa6e, 0x140165e0e mov rdx, qword ptr [rbp+310h+var_358+8] ; +0xa70, 0x140165e10 inc rdx ; +0xa74, 0x140165e14 mov rax, r12 ; +0xa77, 0x140165e17 cmp rdx, 1000h ; +0xa7a, 0x140165e1a jb short loc_140165E40 ; +0xa81, 0x140165e21 add rdx, 27h ; ''' ; +0xa83, 0x140165e23 mov r12, [r12-8] ; +0xa87, 0x140165e27 sub rax, r12 ; +0xa8c, 0x140165e2c add rax, 0FFFFFFFFFFFFFFF8h ; +0xa8f, 0x140165e2f cmp rax, 1Fh ; +0xa93, 0x140165e33 jbe short loc_140165E40 ; +0xa97, 0x140165e37 call cs:_invalid_parameter_noinfo_noreturn ; +0xa99, 0x140165e39 align 20h ; +0xa9f, 0x140165e3f mov rcx, r12; Block ; +0xaa0, 0x140165e40 call j_j_free ; +0xaa3, 0x140165e43 nop ; +0xaa8, 0x140165e48 cmp [rsp+410h+var_3CF], 0 ; +0xaa9, 0x140165e49 jz short loc_140165E85 ; +0xaae, 0x140165e4e mov rdx, [rbp+310h+var_2D0] ; +0xab0, 0x140165e50 inc rdx ; +0xab4, 0x140165e54 mov rax, r14 ; +0xab7, 0x140165e57 cmp rdx, 1000h ; +0xaba, 0x140165e5a jb short loc_140165E7C ; +0xac1, 0x140165e61 add rdx, 27h ; ''' ; +0xac3, 0x140165e63 mov r14, [r14-8] ; +0xac7, 0x140165e67 sub rax, r14 ; +0xacb, 0x140165e6b add rax, 0FFFFFFFFFFFFFFF8h ; +0xace, 0x140165e6e cmp rax, 1Fh ; +0xad2, 0x140165e72 ja loc_140165F24 ; +0xad6, 0x140165e76 mov rcx, r14; Block ; +0xadc, 0x140165e7c call j_j_free ; +0xadf, 0x140165e7f nop ; +0xae4, 0x140165e84 lea rcx, [rbp+310h+var_2C8] ; +0xae5, 0x140165e85 call sub_14003A830 ; +0xae9, 0x140165e89 nop ; +0xaee, 0x140165e8e mov rdx, [rbp+310h+var_310] ; +0xaef, 0x140165e8f cmp rdx, 0Fh ; +0xaf3, 0x140165e93 jbe short loc_140165ECB ; +0xaf7, 0x140165e97 inc rdx ; +0xaf9, 0x140165e99 mov rcx, [rbp+310h+var_328] ; +0xafc, 0x140165e9c cmp rdx, 1000h ; +0xb00, 0x140165ea0 mov rax, rcx ; +0xb07, 0x140165ea7 jb short loc_140165EC5 ; +0xb0a, 0x140165eaa add rdx, 27h ; ''' ; +0xb0c, 0x140165eac mov rcx, [rcx-8]; Block ; +0xb10, 0x140165eb0 sub rax, rcx ; +0xb14, 0x140165eb4 add rax, 0FFFFFFFFFFFFFFF8h ; +0xb17, 0x140165eb7 cmp rax, 1Fh ; +0xb1b, 0x140165ebb ja loc_140165F79 ; +0xb1f, 0x140165ebf call j_j_free ; +0xb25, 0x140165ec5 nop ; +0xb2a, 0x140165eca cmp [rsp+410h+var_3CE], 0 ; +0xb2b, 0x140165ecb jmp loc_1401658DC ; +0xb30, 0x140165ed0 mov rax, [rsp+410h+var_3C0] ; +0xb35, 0x140165ed5 mov rcx, [rax+360h] ; +0xb3a, 0x140165eda test rcx, rcx ; +0xb41, 0x140165ee1 jz short loc_140165EED ; +0xb44, 0x140165ee4 mov rax, [rcx] ; +0xb46, 0x140165ee6 call qword ptr [rax+8] ; +0xb49, 0x140165ee9 nop ; +0xb4c, 0x140165eec cmp [rsp+410h+var_3CF], 0 ; +0xb4d, 0x140165eed jz short loc_140165E85 ; +0xb52, 0x140165ef2 mov rdx, [rbp+310h+var_2D0] ; +0xb54, 0x140165ef4 inc rdx ; +0xb58, 0x140165ef8 mov rax, r14 ; +0xb5b, 0x140165efb cmp rdx, 1000h ; +0xb5e, 0x140165efe jb loc_140165E7C ; +0xb65, 0x140165f05 add rdx, 27h ; ''' ; +0xb6b, 0x140165f0b mov r14, [r14-8] ; +0xb6f, 0x140165f0f sub rax, r14 ; +0xb73, 0x140165f13 add rax, 0FFFFFFFFFFFFFFF8h ; +0xb76, 0x140165f16 cmp rax, 1Fh ; +0xb7a, 0x140165f1a jbe loc_140165E7C ; +0xb7e, 0x140165f1e call cs:_invalid_parameter_noinfo_noreturn ; +0xb84, 0x140165f24 db 90h ; +0xb8a, 0x140165f2a lea rcx, [rbp+310h+Block] ; +0xb8b, 0x140165f2b call sub_14003A830 ; +0xb8f, 0x140165f2f mov rcx, [r13+360h] ; +0xb94, 0x140165f34 test rcx, rcx ; +0xb9b, 0x140165f3b jz short loc_140165F47 ; +0xb9e, 0x140165f3e mov rax, [rcx] ; +0xba0, 0x140165f40 call qword ptr [rax+8] ; +0xba3, 0x140165f43 nop ; +0xba6, 0x140165f46 mov rdx, [rbp+310h+var_310] ; +0xba7, 0x140165f47 cmp rdx, 0Fh ; +0xbab, 0x140165f4b jbe short loc_140165F86 ; +0xbaf, 0x140165f4f inc rdx ; +0xbb1, 0x140165f51 mov rcx, [rbp+310h+var_328]; Block ; +0xbb4, 0x140165f54 mov rax, rcx ; +0xbb8, 0x140165f58 cmp rdx, 1000h ; +0xbbb, 0x140165f5b jb short loc_140165F80 ; +0xbc2, 0x140165f62 add rdx, 27h ; ''' ; +0xbc4, 0x140165f64 mov rcx, [rcx-8] ; +0xbc8, 0x140165f68 sub rax, rcx ; +0xbcc, 0x140165f6c add rax, 0FFFFFFFFFFFFFFF8h ; +0xbcf, 0x140165f6f cmp rax, 1Fh ; +0xbd3, 0x140165f73 jbe short loc_140165F80 ; +0xbd7, 0x140165f77 call cs:_invalid_parameter_noinfo_noreturn ; +0xbd9, 0x140165f79 align 20h ; +0xbdf, 0x140165f7f call j_j_free ; +0xbe0, 0x140165f80 nop ; +0xbe5, 0x140165f85 test r12b, r12b ; +0xbe6, 0x140165f86 jz short loc_140165FC3 ; +0xbe9, 0x140165f89 mov rdx, [rbp+310h+var_2F0] ; +0xbeb, 0x140165f8b inc rdx ; +0xbef, 0x140165f8f mov rax, rbx ; +0xbf2, 0x140165f92 cmp rdx, 1000h ; +0xbf5, 0x140165f95 jb short loc_140165FBA ; +0xbfc, 0x140165f9c add rdx, 27h ; ''' ; +0xbfe, 0x140165f9e mov rbx, [rbx-8] ; +0xc02, 0x140165fa2 sub rax, rbx ; +0xc06, 0x140165fa6 add rax, 0FFFFFFFFFFFFFFF8h ; +0xc09, 0x140165fa9 cmp rax, 1Fh ; +0xc0d, 0x140165fad jbe short loc_140165FBA ; +0xc11, 0x140165fb1 call cs:_invalid_parameter_noinfo_noreturn ; +0xc13, 0x140165fb3 align 2 ; +0xc19, 0x140165fb9 mov rcx, rbx; Block ; +0xc1a, 0x140165fba call j_j_free ; +0xc1d, 0x140165fbd nop ; +0xc22, 0x140165fc2 mov rdx, qword ptr [rbp+310h+var_338+8] ; +0xc23, 0x140165fc3 cmp rdx, 0Fh ; +0xc27, 0x140165fc7 jbe loc_14016594E ; +0xc2b, 0x140165fcb inc rdx ; +0xc31, 0x140165fd1 mov rcx, qword ptr [rbp+310h+var_348] ; +0xc34, 0x140165fd4 mov rax, rcx ; +0xc38, 0x140165fd8 cmp rdx, 1000h ; +0xc3b, 0x140165fdb jb loc_140165949 ; +0xc42, 0x140165fe2 add rdx, 27h ; ''' ; +0xc48, 0x140165fe8 mov rcx, [rcx-8] ; +0xc4c, 0x140165fec sub rax, rcx ; +0xc50, 0x140165ff0 add rax, 0FFFFFFFFFFFFFFF8h ; +0xc53, 0x140165ff3 cmp rax, 1Fh ; +0xc57, 0x140165ff7 jbe loc_140165949 ; +0xc5b, 0x140165ffb call cs:_invalid_parameter_noinfo_noreturn ; +0xc61, 0x140166001 align 8 ; +0xc67, 0x140166007 call sub_140007B50 ; +0xc68, 0x140166008 align 2 ; +0xc6d, 0x14016600d call sub_14003BCC0 ; +0xc6e, 0x14016600e align 4 ; +0xc73, 0x140166013 call sub_140007B50 ; +0xc74, 0x140166014 align 2 ; +0xc79, 0x140166019 call sub_140007B50 ; +0xc7a, 0x14016601a align 20h ; +0xc7f, 0x14016601f