; ; GJRateLevelLayer::onRate from 0x1402f6ab0 to 0x1402f6c19 (361 bytes) ; ; 2 xrefs: ; > GJRateLevelLayer::init @ 0x1402f5361 ; > @ 0x1406d4070 ; ; 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], rbx ; +0x0, 0x1402f6ab0 push rdi ; +0x5, 0x1402f6ab5 sub rsp, 40h ; +0x6, 0x1402f6ab6 mov rdi, rcx ; +0xa, 0x1402f6aba cmp dword ptr [rcx+3E8h], 0FFFFFFFFh ; +0xd, 0x1402f6abd jz loc_1402F6C0E ; +0x14, 0x1402f6ac4 mov rax, [rcx+3C8h] ; +0x1a, 0x1402f6aca mov ebx, [rax+148h] ; +0x21, 0x1402f6ad1 sub ebx, [rax+14Ch] ; +0x27, 0x1402f6ad7 mov rcx, cs:qword_1406C2EC0 ; +0x2d, 0x1402f6add test rcx, rcx ; +0x34, 0x1402f6ae4 jnz short loc_1402F6B19 ; +0x37, 0x1402f6ae7 mov ecx, 3D0h; Size ; +0x39, 0x1402f6ae9 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x3e, 0x1402f6aee mov [rsp+48h+arg_0], rax ; +0x43, 0x1402f6af3 mov rcx, rax ; +0x48, 0x1402f6af8 call sub_140141280 ; +0x4b, 0x1402f6afb nop ; +0x50, 0x1402f6b00 mov cs:qword_1406C2EC0, rax ; +0x51, 0x1402f6b01 mov r8, [rax] ; +0x58, 0x1402f6b08 mov rcx, rax ; +0x5b, 0x1402f6b0b call qword ptr [r8+48h] ; +0x5e, 0x1402f6b0e mov rcx, cs:qword_1406C2EC0 ; +0x62, 0x1402f6b12 mov r9, [rdi+400h] ; +0x69, 0x1402f6b19 mov r9d, [r9+258h] ; +0x70, 0x1402f6b20 mov r8d, [rdi+3E8h] ; +0x77, 0x1402f6b27 mov edx, ebx ; +0x7e, 0x1402f6b2e call GameLevelManager__suggestLevelStars ; +0x80, 0x1402f6b30 test al, al ; +0x85, 0x1402f6b35 jz loc_1402F6C0E ; +0x87, 0x1402f6b37 lea rbx, [rdi+3B0h] ; +0x8d, 0x1402f6b3d mov rax, cs:qword_1406C2EC0 ; +0x94, 0x1402f6b44 test rax, rax ; +0x9b, 0x1402f6b4b jnz short loc_1402F6B7F ; +0x9e, 0x1402f6b4e mov ecx, 3D0h; Size ; +0xa0, 0x1402f6b50 call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0xa5, 0x1402f6b55 mov [rsp+48h+arg_0], rax ; +0xaa, 0x1402f6b5a mov rcx, rax ; +0xaf, 0x1402f6b5f call sub_140141280 ; +0xb2, 0x1402f6b62 nop ; +0xb7, 0x1402f6b67 mov cs:qword_1406C2EC0, rax ; +0xb8, 0x1402f6b68 mov rdx, [rax] ; +0xbf, 0x1402f6b6f mov rcx, rax ; +0xc2, 0x1402f6b72 call qword ptr [rdx+48h] ; +0xc5, 0x1402f6b75 mov rax, cs:qword_1406C2EC0 ; +0xc8, 0x1402f6b78 mov [rax+328h], rbx ; +0xcf, 0x1402f6b7f mov rax, [rdi+3F8h] ; +0xd6, 0x1402f6b86 xor ecx, ecx ; +0xdd, 0x1402f6b8d test rax, rax ; +0xdf, 0x1402f6b8f jz short loc_1402F6B9B ; +0xe2, 0x1402f6b92 mov [rax+278h], rcx ; +0xe4, 0x1402f6b94 xorps xmm0, xmm0 ; +0xeb, 0x1402f6b9b movups [rsp+48h+var_28], xmm0 ; +0xee, 0x1402f6b9e mov [rsp+48h+var_18], rcx ; +0xf3, 0x1402f6ba3 mov [rsp+48h+var_10], 0Fh ; +0xf8, 0x1402f6ba8 mov ecx, 20h ; ' ' ; +0x101, 0x1402f6bb1 call sub_14003AA10 ; +0x106, 0x1402f6bb6 mov qword ptr [rsp+48h+var_28], rax ; +0x10b, 0x1402f6bbb mov [rsp+48h+var_18], 11h ; +0x110, 0x1402f6bc0 mov [rsp+48h+var_10], 1Fh ; +0x119, 0x1402f6bc9 movups xmm0, cs:xmmword_140586540 ; +0x122, 0x1402f6bd2 movups xmmword ptr [rax], xmm0 ; +0x129, 0x1402f6bd9 movzx edx, cs:byte_140586550 ; +0x12c, 0x1402f6bdc mov [rax+10h], dl ; +0x133, 0x1402f6be3 mov byte ptr [rax+11h], 0 ; +0x136, 0x1402f6be6 lea rdx, [rsp+48h+var_28] ; +0x13a, 0x1402f6bea lea rcx, [rdi+3A8h] ; +0x13f, 0x1402f6bef call UploadActionPopup__create ; +0x146, 0x1402f6bf6 mov [rdi+3F8h], rax ; +0x14b, 0x1402f6bfb mov rdx, [rax] ; +0x152, 0x1402f6c02 mov rcx, rax ; +0x155, 0x1402f6c05 call qword ptr [rdx+410h] ; +0x158, 0x1402f6c08 mov rbx, [rsp+48h+arg_8] ; +0x15e, 0x1402f6c0e add rsp, 40h ; +0x163, 0x1402f6c13 pop rdi ; +0x167, 0x1402f6c17 retn ; +0x168, 0x1402f6c18