; ; GJPathsLayer::onPath from 0x1402851b0 to 0x1402853eb (571 bytes) ; ; 3 xrefs: ; > GJPathsLayer::init @ 0x140284fdd ; > @ 0x1406d1544 ; > @ 0x1406d1550 ; ; 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_10], rbx ; +0x0, 0x1402851b0 mov [rsp+arg_18], rsi ; +0x5, 0x1402851b5 push rdi ; +0xa, 0x1402851ba sub rsp, 90h ; +0xb, 0x1402851bb mov rax, cs:__security_cookie ; +0x12, 0x1402851c2 xor rax, rsp ; +0x19, 0x1402851c9 mov [rsp+98h+var_10], rax ; +0x1c, 0x1402851cc mov rbx, rcx ; +0x24, 0x1402851d4 mov rax, [rdx] ; +0x27, 0x1402851d7 mov rcx, rdx ; +0x2a, 0x1402851da call qword ptr [rax+38h] ; +0x2d, 0x1402851dd mov edi, eax ; +0x30, 0x1402851e0 mov rdx, rbx ; +0x32, 0x1402851e2 mov ecx, eax ; +0x35, 0x1402851e5 call GJPathPage__create ; +0x37, 0x1402851e7 mov byte ptr [rax+24Ch], 1 ; +0x3c, 0x1402851ec mov rdx, [rax] ; +0x43, 0x1402851f3 mov rcx, rax ; +0x46, 0x1402851f6 call qword ptr [rdx+410h] ; +0x49, 0x1402851f9 mov rbx, cs:qword_1406C2EE8 ; +0x4f, 0x1402851ff test rbx, rbx ; +0x56, 0x140285206 jnz short loc_14028523B ; +0x59, 0x140285209 mov ecx, 3E0h; Size ; +0x5b, 0x14028520b call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x60, 0x140285210 mov [rsp+98h+var_78], rax ; +0x65, 0x140285215 mov rcx, rax ; +0x6a, 0x14028521a call sub_1401D0AE0 ; +0x6d, 0x14028521d nop ; +0x72, 0x140285222 mov cs:qword_1406C2EE8, rax ; +0x73, 0x140285223 mov r8, [rax] ; +0x7a, 0x14028522a mov rcx, rax ; +0x7d, 0x14028522d call qword ptr [r8+48h] ; +0x80, 0x140285230 mov rbx, cs:qword_1406C2EE8 ; +0x84, 0x140285234 lea edx, [rdi+1Dh] ; +0x8b, 0x14028523b lea rcx, [rsp+98h+var_30] ; +0x8e, 0x14028523e call GameToolbox__intToString ; +0x93, 0x140285243 nop ; +0x98, 0x140285248 cmp qword ptr [rax+18h], 0Fh ; +0x99, 0x140285249 jbe short loc_140285253 ; +0x9e, 0x14028524e mov rax, [rax] ; +0xa0, 0x140285250 mov rdx, rax ; +0xa3, 0x140285253 mov rcx, rbx ; +0xa6, 0x140285256 call GameStatsManager__getStat ; +0xa9, 0x140285259 mov ebx, eax ; +0xae, 0x14028525e lea rcx, [rsp+98h+var_30] ; +0xb0, 0x140285260 call sub_14003A830 ; +0xb5, 0x140285265 cmp ebx, 3E8h ; +0xba, 0x14028526a jl loc_1402853C6 ; +0xc0, 0x140285270 mov rbx, cs:qword_1406C2EE8 ; +0xc6, 0x140285276 test rbx, rbx ; +0xcd, 0x14028527d jnz short loc_1402852B1 ; +0xd0, 0x140285280 mov ecx, 3E0h; Size ; +0xd2, 0x140285282 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xd7, 0x140285287 mov [rsp+98h+var_78], rax ; +0xdc, 0x14028528c mov rcx, rax ; +0xe1, 0x140285291 call sub_1401D0AE0 ; +0xe4, 0x140285294 nop ; +0xe9, 0x140285299 mov cs:qword_1406C2EE8, rax ; +0xea, 0x14028529a mov rdx, [rax] ; +0xf1, 0x1402852a1 mov rcx, rax ; +0xf4, 0x1402852a4 call qword ptr [rdx+48h] ; +0xf7, 0x1402852a7 mov rbx, cs:qword_1406C2EE8 ; +0xfa, 0x1402852aa mov r8d, edi ; +0x101, 0x1402852b1 lea rdx, [rsp+98h+var_50] ; +0x104, 0x1402852b4 call GameStatsManager__getPathRewardKey ; +0x109, 0x1402852b9 nop ; +0x10e, 0x1402852be lea rdx, [rsp+98h+var_50] ; +0x10f, 0x1402852bf lea rcx, [rsp+98h+var_70] ; +0x114, 0x1402852c4 call sub_14003BDB0 ; +0x119, 0x1402852c9 mov rdx, rax ; +0x11e, 0x1402852ce mov rcx, rbx ; +0x121, 0x1402852d1 call GameStatsManager__isSpecialChestUnlocked ; +0x124, 0x1402852d4 movzx ebx, al ; +0x129, 0x1402852d9 lea rcx, [rsp+98h+var_50] ; +0x12c, 0x1402852dc call sub_14003A830 ; +0x131, 0x1402852e1 test bl, bl ; +0x136, 0x1402852e6 jnz loc_1402853C6 ; +0x138, 0x1402852e8 mov ecx, 280h; Size ; +0x13e, 0x1402852ee call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x143, 0x1402852f3 mov rbx, rax ; +0x148, 0x1402852f8 mov [rsp+98h+var_78], rax ; +0x14b, 0x1402852fb mov rcx, rax ; +0x150, 0x140285300 call FLAlertLayer__FLAlertLayer ; +0x153, 0x140285303 lea rax, ??_7GJPathRewardPopup@@6B@; const GJPathRewardPopup::`vftable' ; +0x158, 0x140285308 mov [rbx], rax ; +0x15f, 0x14028530f lea rax, ??_7GJPathRewardPopup@@6B@_0; const GJPathRewardPopup::`vftable' ; +0x162, 0x140285312 mov [rbx+140h], rax ; +0x169, 0x140285319 lea rax, ??_7GJPathRewardPopup@@6B@_1; const GJPathRewardPopup::`vftable' ; +0x170, 0x140285320 mov [rbx+148h], rax ; +0x177, 0x140285327 lea rax, ??_7GJPathRewardPopup@@6B@_2; const GJPathRewardPopup::`vftable' ; +0x17e, 0x14028532e mov [rbx+150h], rax ; +0x185, 0x140285335 lea rax, ??_7GJPathRewardPopup@@6B@_3; const GJPathRewardPopup::`vftable' ; +0x18c, 0x14028533c mov [rbx+158h], rax ; +0x193, 0x140285343 lea rax, ??_7GJPathRewardPopup@@6B@_4; const GJPathRewardPopup::`vftable' ; +0x19a, 0x14028534a mov [rbx+160h], rax ; +0x1a1, 0x140285351 lea rax, ??_7GJPathRewardPopup@@6B@_5; const GJPathRewardPopup::`vftable' ; +0x1a8, 0x140285358 mov [rbx+198h], rax ; +0x1af, 0x14028535f lea rax, ??_7GJPathRewardPopup@@6B@_6; const GJPathRewardPopup::`vftable' ; +0x1b6, 0x140285366 mov [rbx+1B0h], rax ; +0x1bd, 0x14028536d mov dword ptr [rbx+278h], 0 ; +0x1c4, 0x140285374 mov edx, edi ; +0x1ce, 0x14028537e mov rcx, rbx ; +0x1d0, 0x140285380 call GJPathRewardPopup__init ; +0x1d3, 0x140285383 mov rcx, rbx ; +0x1d8, 0x140285388 test al, al ; +0x1db, 0x14028538b jz short loc_140285397 ; +0x1dd, 0x14028538d call cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1df, 0x14028538f jmp short loc_1402853A4 ; +0x1e5, 0x140285395 mov rax, [rbx] ; +0x1e7, 0x140285397 mov edx, 1 ; +0x1ea, 0x14028539a call qword ptr [rax+8] ; +0x1ef, 0x14028539f xor ebx, ebx ; +0x1f2, 0x1402853a2 mov rax, [rbx] ; +0x1f4, 0x1402853a4 mov rdx, [rax+410h] ; +0x1f7, 0x1402853a7 lea rax, FLAlertLayer__show ; +0x1fe, 0x1402853ae mov rcx, rbx ; +0x205, 0x1402853b5 cmp rdx, rax ; +0x208, 0x1402853b8 jnz short loc_1402853C4 ; +0x20b, 0x1402853bb call FLAlertLayer__show ; +0x20d, 0x1402853bd jmp short loc_1402853C6 ; +0x212, 0x1402853c2 call rdx ; +0x214, 0x1402853c4 mov rcx, [rsp+98h+var_10] ; +0x216, 0x1402853c6 xor rcx, rsp; StackCookie ; +0x21e, 0x1402853ce call __security_check_cookie ; +0x221, 0x1402853d1 lea r11, [rsp+98h+var_8] ; +0x226, 0x1402853d6 mov rbx, [r11+20h] ; +0x22e, 0x1402853de mov rsi, [r11+28h] ; +0x232, 0x1402853e2 mov rsp, r11 ; +0x236, 0x1402853e6 pop rdi ; +0x239, 0x1402853e9 retn ; +0x23a, 0x1402853ea