; ; GJRateLevelLayer::onCustomButton from 0x1402f54d0 to 0x1402f5744 (628 bytes) ; ; 2 xrefs: ; > @ 0x140586b48 ; > @ 0x1406d3fe0 ; ; 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_0], rbx ; +0x0, 0x1402f54d0 push rdi ; +0x5, 0x1402f54d5 sub rsp, 90h ; +0x6, 0x1402f54d6 mov rdi, rcx ; +0xd, 0x1402f54dd mov rax, [rdx] ; +0x10, 0x1402f54e0 mov rcx, rdx ; +0x13, 0x1402f54e3 call qword ptr [rax+38h] ; +0x16, 0x1402f54e6 cmp eax, 0FFFFFFFCh ; +0x19, 0x1402f54e9 jz loc_1402F5608 ; +0x1c, 0x1402f54ec cmp eax, 0FFFFFFFEh ; +0x22, 0x1402f54f2 jnz loc_1402F5733 ; +0x25, 0x1402f54f5 lea rbx, [rdi+3C0h] ; +0x2b, 0x1402f54fb xor eax, eax ; +0x32, 0x1402f5502 test rdi, rdi ; +0x34, 0x1402f5504 cmovz rbx, rax ; +0x37, 0x1402f5507 xorps xmm0, xmm0 ; +0x3b, 0x1402f550b movups [rsp+98h+var_48], xmm0 ; +0x3e, 0x1402f550e mov [rsp+98h+var_38], rax ; +0x43, 0x1402f5513 mov [rsp+98h+var_30], 0Fh ; +0x48, 0x1402f5518 lea ecx, [rax+30h] ; +0x51, 0x1402f5521 call sub_14003AA10 ; +0x54, 0x1402f5524 mov qword ptr [rsp+98h+var_48], rax ; +0x59, 0x1402f5529 mov [rsp+98h+var_38], 21h ; '!' ; +0x5e, 0x1402f552e mov [rsp+98h+var_30], 2Fh ; '/' ; +0x67, 0x1402f5537 movups xmm0, cs:xmmword_1405864D0 ; +0x70, 0x1402f5540 movups xmmword ptr [rax], xmm0 ; +0x77, 0x1402f5547 movups xmm1, cs:xmmword_1405864E0 ; +0x7a, 0x1402f554a movups xmmword ptr [rax+10h], xmm1 ; +0x81, 0x1402f5551 movzx ecx, cs:byte_1405864F0 ; +0x85, 0x1402f5555 mov [rax+20h], cl ; +0x8c, 0x1402f555c mov byte ptr [rax+21h], 0 ; +0x8f, 0x1402f555f lea rax, [rsp+98h+var_48] ; +0x93, 0x1402f5563 mov [rsp+98h+arg_8], rax ; +0x98, 0x1402f5568 lea rdx, [rsp+98h+var_48] ; +0xa0, 0x1402f5570 lea rcx, [rsp+98h+var_28] ; +0xa5, 0x1402f5575 call sub_14003BDB0 ; +0xaa, 0x1402f557a movss xmm0, cs:flt_140622C24 ; +0xaf, 0x1402f557f movss [rsp+98h+var_58], xmm0 ; +0xb7, 0x1402f5587 xorps xmm1, xmm1 ; +0xbd, 0x1402f558d movss [rsp+98h+var_60], xmm1 ; +0xc0, 0x1402f5590 mov [rsp+98h+var_68], 0 ; +0xc6, 0x1402f5596 movss xmm0, cs:dword_140623478 ; +0xcb, 0x1402f559b movss [rsp+98h+var_70], xmm0 ; +0xd3, 0x1402f55a3 lea rcx, aUnrate; "Unrate" ; +0xd9, 0x1402f55a9 mov [rsp+98h+var_78], rcx ; +0xe0, 0x1402f55b0 lea r9, aCancel; "Cancel" ; +0xe5, 0x1402f55b5 mov r8, rax ; +0xec, 0x1402f55bc lea rdx, aUnrateLevel; "Unrate Level" ; +0xef, 0x1402f55bf mov rcx, rbx ; +0xf6, 0x1402f55c6 call FLAlertLayer__create ; +0xf9, 0x1402f55c9 mov rbx, rax ; +0xfe, 0x1402f55ce lea rcx, [rsp+98h+var_48] ; +0x101, 0x1402f55d1 call sub_14003A830 ; +0x106, 0x1402f55d6 lea rdx, aGjButton06Png; "GJ_button_06.png" ; +0x10b, 0x1402f55db mov rcx, [rbx+258h] ; +0x112, 0x1402f55e2 call ButtonSprite__updateBGImage ; +0x119, 0x1402f55e9 mov r8, [rbx] ; +0x11e, 0x1402f55ee mov edx, 0FFFFFFFDh ; +0x121, 0x1402f55f1 mov rcx, rbx ; +0x126, 0x1402f55f6 call qword ptr [r8+40h] ; +0x129, 0x1402f55f9 mov rdx, [rbx] ; +0x12d, 0x1402f55fd mov rcx, rbx ; +0x130, 0x1402f5600 jmp loc_1402F572D ; +0x133, 0x1402f5603 mov rax, [rdi] ; +0x138, 0x1402f5608 mov edx, 0FFFFFFFFh ; +0x13b, 0x1402f560b mov rcx, rdi ; +0x140, 0x1402f5610 call qword ptr [rax+470h] ; +0x143, 0x1402f5613 cvttss2si eax, xmm0 ; +0x149, 0x1402f5619 test eax, eax ; +0x14d, 0x1402f561d jle loc_1402F5733 ; +0x14f, 0x1402f561f cmp dword ptr [rdi+408h], 0 ; +0x155, 0x1402f5625 jle loc_1402F5733 ; +0x15c, 0x1402f562c mov rax, cs:qword_1406C2EC0 ; +0x162, 0x1402f5632 test rax, rax ; +0x169, 0x1402f5639 jnz short loc_1402F5670 ; +0x16c, 0x1402f563c mov ecx, 3D0h; Size ; +0x16e, 0x1402f563e call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x173, 0x1402f5643 mov [rsp+98h+arg_8], rax ; +0x178, 0x1402f5648 mov rcx, rax ; +0x180, 0x1402f5650 call sub_140141280 ; +0x183, 0x1402f5653 nop ; +0x188, 0x1402f5658 mov cs:qword_1406C2EC0, rax ; +0x189, 0x1402f5659 mov rdx, [rax] ; +0x190, 0x1402f5660 mov rcx, rax ; +0x193, 0x1402f5663 call qword ptr [rdx+48h] ; +0x196, 0x1402f5666 mov rax, cs:qword_1406C2EC0 ; +0x199, 0x1402f5669 lea rbx, [rdi+3B0h] ; +0x1a0, 0x1402f5670 test rax, rax ; +0x1a7, 0x1402f5677 jnz short loc_1402F56AE ; +0x1aa, 0x1402f567a mov ecx, 3D0h; Size ; +0x1ac, 0x1402f567c call ??2@YAPEAX_K@Z; operator new(unsigned __int64) ; +0x1b1, 0x1402f5681 mov [rsp+98h+arg_8], rax ; +0x1b6, 0x1402f5686 mov rcx, rax ; +0x1be, 0x1402f568e call sub_140141280 ; +0x1c1, 0x1402f5691 nop ; +0x1c6, 0x1402f5696 mov cs:qword_1406C2EC0, rax ; +0x1c7, 0x1402f5697 mov rdx, [rax] ; +0x1ce, 0x1402f569e mov rcx, rax ; +0x1d1, 0x1402f56a1 call qword ptr [rdx+48h] ; +0x1d4, 0x1402f56a4 mov rax, cs:qword_1406C2EC0 ; +0x1d7, 0x1402f56a7 mov [rax+328h], rbx ; +0x1de, 0x1402f56ae mov rcx, [rdi+3F8h] ; +0x1e5, 0x1402f56b5 xor eax, eax ; +0x1ec, 0x1402f56bc test rcx, rcx ; +0x1ee, 0x1402f56be jz short loc_1402F56CA ; +0x1f1, 0x1402f56c1 mov [rcx+278h], rax ; +0x1f3, 0x1402f56c3 xorps xmm0, xmm0 ; +0x1fa, 0x1402f56ca movups [rsp+98h+var_48], xmm0 ; +0x1fd, 0x1402f56cd mov [rsp+98h+var_38], rax ; +0x202, 0x1402f56d2 mov [rsp+98h+var_30], 0Fh ; +0x207, 0x1402f56d7 mov ecx, 20h ; ' ' ; +0x210, 0x1402f56e0 call sub_14003AA10 ; +0x215, 0x1402f56e5 mov qword ptr [rsp+98h+var_48], rax ; +0x21a, 0x1402f56ea mov [rsp+98h+var_38], 10h ; +0x21f, 0x1402f56ef mov [rsp+98h+var_30], 1Fh ; +0x228, 0x1402f56f8 movups xmm0, cs:xmmword_1405864A8 ; +0x231, 0x1402f5701 movups xmmword ptr [rax], xmm0 ; +0x238, 0x1402f5708 mov byte ptr [rax+10h], 0 ; +0x23b, 0x1402f570b lea rdx, [rsp+98h+var_48] ; +0x23f, 0x1402f570f lea rcx, [rdi+3A8h] ; +0x244, 0x1402f5714 call UploadActionPopup__create ; +0x24b, 0x1402f571b mov [rdi+3F8h], rax ; +0x250, 0x1402f5720 mov rdx, [rax] ; +0x257, 0x1402f5727 mov rcx, rax ; +0x25a, 0x1402f572a call qword ptr [rdx+410h] ; +0x25d, 0x1402f572d mov rbx, [rsp+98h+arg_0] ; +0x263, 0x1402f5733 add rsp, 90h ; +0x26b, 0x1402f573b pop rdi ; +0x272, 0x1402f5742 retn ; +0x273, 0x1402f5743