; ; ClearPlatformerSavesPopup::onDelete from 0x1400a4000 to 0x1400a423e (574 bytes) ; ; 2 xrefs: ; > ClearPlatformerSavesPopup::init @ 0x1400a38b9 ; > @ 0x140913148 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:26:07 +0000 ; mov [rsp-8+arg_8], rbx ; +0x0, 0x1400a4000 mov [rsp-8+arg_10], rsi ; +0x5, 0x1400a4005 mov [rsp-8+arg_18], rdi ; +0xa, 0x1400a400a push rbp ; +0xf, 0x1400a400f push r12 ; +0x10, 0x1400a4010 push r13 ; +0x12, 0x1400a4012 push r14 ; +0x14, 0x1400a4014 push r15 ; +0x16, 0x1400a4016 lea rbp, [rsp-37h] ; +0x18, 0x1400a4018 sub rsp, 0D0h ; +0x1d, 0x1400a401d mov rax, cs:__security_cookie ; +0x24, 0x1400a4024 xor rax, rsp ; +0x2b, 0x1400a402b mov [rbp+57h+var_30], rax ; +0x2e, 0x1400a402e mov rbx, rcx ; +0x32, 0x1400a4032 lea rax, aThisWillClearC; "This will clear all platformer "... ; +0x35, 0x1400a4035 lea rdx, aThisWillClearP; "This will clear platformer saves on all"... ; +0x3c, 0x1400a403c cmp byte ptr [rcx+2A0h], 0 ; +0x43, 0x1400a4043 cmovnz rdx, rax ; +0x4a, 0x1400a404a xorps xmm0, xmm0 ; +0x4e, 0x1400a404e movups xmmword ptr [rbp+57h+Src], xmm0 ; +0x51, 0x1400a4051 xor r13d, r13d ; +0x55, 0x1400a4055 mov [rbp+57h+var_40], r13 ; +0x58, 0x1400a4058 mov [rbp+57h+var_38], r13 ; +0x5c, 0x1400a405c mov r8, 0FFFFFFFFFFFFFFFFh ; +0x60, 0x1400a4060 inc r8 ; +0x67, 0x1400a4067 cmp [rdx+r8], r13b ; +0x6a, 0x1400a406a jnz short loc_1400A4067 ; +0x6e, 0x1400a406e lea rcx, [rbp+57h+Src] ; +0x70, 0x1400a4070 call sub_14003D230 ; +0x74, 0x1400a4074 nop ; +0x79, 0x1400a4079 lea r12, [rbx+298h] ; +0x7a, 0x1400a407a test rbx, rbx ; +0x81, 0x1400a4081 cmovz r12, r13 ; +0x84, 0x1400a4084 xorps xmm0, xmm0 ; +0x88, 0x1400a4088 movups [rbp+57h+var_A0], xmm0 ; +0x8b, 0x1400a408b mov [rbp+57h+var_90], r13 ; +0x8f, 0x1400a408f mov [rbp+57h+var_88], r13 ; +0x93, 0x1400a4093 lea r14, [rbp+57h+Src] ; +0x97, 0x1400a4097 mov rsi, [rbp+57h+Src] ; +0x9b, 0x1400a409b mov r15, [rbp+57h+var_38] ; +0x9f, 0x1400a409f cmp r15, 0Fh ; +0xa3, 0x1400a40a3 cmova r14, rsi ; +0xa7, 0x1400a40a7 mov rbx, 7FFFFFFFFFFFFFFFh ; +0xab, 0x1400a40ab mov rdi, [rbp+57h+var_40] ; +0xb5, 0x1400a40b5 cmp rdi, rbx ; +0xb9, 0x1400a40b9 ja loc_1400A4238 ; +0xbc, 0x1400a40bc cmp rdi, 0Fh ; +0xc2, 0x1400a40c2 ja short loc_1400A40DE ; +0xc6, 0x1400a40c6 mov [rbp+57h+var_90], rdi ; +0xc8, 0x1400a40c8 mov [rbp+57h+var_88], 0Fh ; +0xcc, 0x1400a40cc movups xmm0, xmmword ptr [r14] ; +0xd4, 0x1400a40d4 movups [rbp+57h+var_A0], xmm0 ; +0xd8, 0x1400a40d8 jmp short loc_1400A411D ; +0xdc, 0x1400a40dc mov rax, rdi ; +0xde, 0x1400a40de or rax, 0Fh ; +0xe1, 0x1400a40e1 cmp rax, rbx ; +0xe5, 0x1400a40e5 ja short loc_1400A40F9 ; +0xe8, 0x1400a40e8 mov rbx, rax ; +0xea, 0x1400a40ea mov ecx, 16h ; +0xed, 0x1400a40ed cmp rax, rcx ; +0xf2, 0x1400a40f2 cmovb rbx, rcx ; +0xf5, 0x1400a40f5 lea rcx, [rbx+1] ; +0xf9, 0x1400a40f9 call sub_14003D460 ; +0xfd, 0x1400a40fd mov qword ptr [rbp+57h+var_A0], rax ; +0x102, 0x1400a4102 mov [rbp+57h+var_90], rdi ; +0x106, 0x1400a4106 mov [rbp+57h+var_88], rbx ; +0x10a, 0x1400a410a lea r8, [rdi+1]; Size ; +0x10e, 0x1400a410e mov rdx, r14; Src ; +0x112, 0x1400a4112 mov rcx, rax; void * ; +0x115, 0x1400a4115 call memcpy ; +0x118, 0x1400a4118 lea rax, [rbp+57h+var_A0] ; +0x11d, 0x1400a411d mov [rbp+57h+var_80], rax ; +0x121, 0x1400a4121 lea rdx, [rbp+57h+var_A0] ; +0x125, 0x1400a4125 lea rcx, [rbp+57h+var_70] ; +0x129, 0x1400a4129 call sub_14003F4F0 ; +0x12d, 0x1400a412d movss xmm0, cs:flt_140835080 ; +0x132, 0x1400a4132 movss [rsp+0F0h+var_B0], xmm0 ; +0x13a, 0x1400a413a xorps xmm1, xmm1 ; +0x140, 0x1400a4140 movss [rsp+0F0h+var_B8], xmm1 ; +0x143, 0x1400a4143 mov [rsp+0F0h+var_C0], 0 ; +0x149, 0x1400a4149 movss xmm0, cs:dword_140835A04 ; +0x14e, 0x1400a414e movss [rsp+0F0h+var_C8], xmm0 ; +0x156, 0x1400a4156 lea rcx, aDelete_0; "Delete" ; +0x15c, 0x1400a415c mov [rsp+0F0h+Reserved], rcx ; +0x163, 0x1400a4163 lea r9, aCancel; "Cancel" ; +0x168, 0x1400a4168 mov r8, rax ; +0x16f, 0x1400a416f lea rdx, aConfirm; "Confirm" ; +0x172, 0x1400a4172 mov rcx, r12 ; +0x179, 0x1400a4179 call FLAlertLayer__create ; +0x17c, 0x1400a417c mov rbx, rax ; +0x181, 0x1400a4181 lea rcx, [rbp+57h+var_A0] ; +0x184, 0x1400a4184 call sub_14003D310 ; +0x188, 0x1400a4188 mov rcx, [rbx] ; +0x18d, 0x1400a418d mov r8, [rcx+40h] ; +0x190, 0x1400a4190 mov edx, 1 ; +0x194, 0x1400a4194 mov rcx, rbx ; +0x199, 0x1400a4199 call r8 ; +0x19c, 0x1400a419c lea rdx, aGjButton06Png; "GJ_button_06.png" ; +0x19f, 0x1400a419f mov rcx, [rbx+268h] ; +0x1a6, 0x1400a41a6 call ButtonSprite__updateBGImage ; +0x1ad, 0x1400a41ad mov rcx, [rbx] ; +0x1b2, 0x1400a41b2 mov rdx, [rcx+428h] ; +0x1b5, 0x1400a41b5 mov rcx, rbx ; +0x1bc, 0x1400a41bc call rdx ; +0x1bf, 0x1400a41bf nop ; +0x1c1, 0x1400a41c1 cmp r15, 0Fh ; +0x1c2, 0x1400a41c2 jbe short loc_1400A420B ; +0x1c6, 0x1400a41c6 lea rdx, [r15+1] ; +0x1c8, 0x1400a41c8 mov rax, rsi ; +0x1cc, 0x1400a41cc cmp rdx, 1000h ; +0x1cf, 0x1400a41cf jb short loc_1400A4203 ; +0x1d6, 0x1400a41d6 add rdx, 27h ; ''' ; +0x1d8, 0x1400a41d8 mov rsi, [rsi-8] ; +0x1dc, 0x1400a41dc sub rax, rsi ; +0x1e0, 0x1400a41e0 sub rax, 8 ; +0x1e3, 0x1400a41e3 cmp rax, 1Fh ; +0x1e7, 0x1400a41e7 jbe short loc_1400A4203 ; +0x1eb, 0x1400a41eb mov [rsp+0F0h+Reserved], r13; Reserved ; +0x1ed, 0x1400a41ed xor r9d, r9d; LineNo ; +0x1f2, 0x1400a41f2 xor r8d, r8d; FileName ; +0x1f5, 0x1400a41f5 xor edx, edx; FunctionName ; +0x1f8, 0x1400a41f8 xor ecx, ecx; Expression ; +0x1fa, 0x1400a41fa call cs:_invoke_watson ; +0x1fc, 0x1400a41fc db 0CCh ; +0x202, 0x1400a4202 mov rcx, rsi; Block ; +0x203, 0x1400a4203 call j_j_free ; +0x206, 0x1400a4206 mov rcx, [rbp+57h+var_30] ; +0x20b, 0x1400a420b xor rcx, rsp; StackCookie ; +0x20f, 0x1400a420f call __security_check_cookie ; +0x212, 0x1400a4212 lea r11, [rsp+0F0h+var_20] ; +0x217, 0x1400a4217 mov rbx, [r11+38h] ; +0x21f, 0x1400a421f mov rsi, [r11+40h] ; +0x223, 0x1400a4223 mov rdi, [r11+48h] ; +0x227, 0x1400a4227 mov rsp, r11 ; +0x22b, 0x1400a422b pop r15 ; +0x22e, 0x1400a422e pop r14 ; +0x230, 0x1400a4230 pop r13 ; +0x232, 0x1400a4232 pop r12 ; +0x234, 0x1400a4234 pop rbp ; +0x236, 0x1400a4236 retn ; +0x237, 0x1400a4237 call sub_140009D90 ; +0x238, 0x1400a4238 align 2 ; +0x23d, 0x1400a423d