Function at 0x453130
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
mov eax, dword [0x4d3100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x58c460]
push ebx
push esi
push edi
mov ecx, dword [eax + 8]
xor ebx, ebx
mov eax, dword [0x58c464]
shl ecx, 4
mov eax, dword [eax + 0x24]
add ecx, eax
mov eax, dword [ecx - 0x24]
mov edx, dword [ecx - 4]
mov edi, dword [ecx - 0x14]
mov dword [ebp - 0x52c], eax
mov eax, dword [ecx - 0x34]
mov dword [ebp - 0x514], edx
mov dword [ebp - 0x51c], edi
mov dword [ebp - 0x528], eax
test edx, edx
js 0x453250
cmp edx, 0x2711
je 0x453250
cmp edx, 0x2710
jge 0x4531bd
push edx
mov ecx, str.save_chsmajiro__04d.sav
call fcn.0045e940
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00493964
add esp, 0xc
jmp 0x453271
call fcn.00456860
mov edi, eax
call fcn.00456810
push 0
mov esi, eax
lea eax, [ebp - 0x510]
push 0x4c3c38
push eax
call fcn.00493964
add esp, 0xc
lea eax, [ebp - 0x310]
mov edx, edi
mov ecx, esi
push 0x200
push eax
lea eax, [ebp - 0x510]
push eax
push str.QuickNum
call fcn.0047e280
lea eax, [ebp - 0x310]
push eax
call fcn.00494176
mov ecx, eax
add esp, 0x14
mov eax, 0x271b
sub eax, dword [ebp - 0x514]
add ecx, eax
and ecx, 0x80000007
jns 0x45322d
dec ecx
or ecx, 0xfffffff8
inc ecx
push ecx
mov ecx, str.save_chsmajiro_quick_d.sav
call fcn.0045e940
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00493964
mov edi, dword [ebp - 0x51c]
add esp, 0xc
jmp 0x453271
mov ecx, str.save_chsmajiro_last.sav
call fcn.0045e940
mov ecx, eax
lea edx, [ebp - 0x110]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x453264
lea eax, [ebp - 0x110]
push 0x4c3d40
push eax
call fcn.00494396
add esp, 8
mov dword [ebp - 0x518], eax
test eax, eax
jne 0x453297
or ecx, 0xffffffff
jmp 0x453488
push 0xa580
call fcn.00497cab
mov esi, eax
add esp, 4
mov dword [ebp - 0x514], esi
test esi, esi
jne 0x4532c3
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [0x4b4414]
push dword [ebp - 0x518]
push 1
push 0xa560
push esi
call fcn.00495739
add esp, 0x10
mov ecx, str.MajiroSavV1.105
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x453300
test dl, dl
je 0x4532fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x453300
add eax, 2
add ecx, 2
test dl, dl
jne 0x4532e0
xor eax, eax
jmp 0x453305
sbb eax, eax
or eax, 1
test eax, eax
jne 0x45341a
mov ecx, dword [esi + 0x214]
test ecx, ecx
je 0x45341a
mov edx, dword [esi + 0x218]
push eax
push 0x20
call fcn.00486160
mov ebx, eax
mov ecx, dword [ebx + 8]
imul ecx, dword [ebx + 4]
push ecx
push 0
push dword [ebx + 0x2c]
call fcn.0049cbc0
xor esi, esi
add esp, 0x14
cmp dword [ebx + 4], esi
jle 0x453377
mov edi, dword [ebp - 0x518]
lea ecx, [ecx]
mov eax, dword [ebx]
push edi
shl eax, 2
push 1
push eax
mov eax, dword [ebx + 8]
imul eax, esi
add eax, dword [ebx + 0x2c]
push eax
call fcn.00495739
inc esi
add esp, 0x10
cmp esi, dword [ebx + 4]
jl 0x453350
mov edi, dword [ebp - 0x51c]
mov eax, dword [ebx]
lea edx, [ebp - 0x53c]
mov dword [ebp - 0x524], eax
mov ecx, ebx
mov dword [ebp - 0x534], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x530], eax
lea eax, [ebp - 0x52c]
push eax
push edi
mov dword [ebp - 0x53c], 0
mov dword [ebp - 0x538], 0
call fcn.004864a0
add esp, 8
test eax, eax
jne 0x453414
cmp dword [ebx + 0x10], 0
lea eax, [ebp - 0x52c]
push eax
mov ecx, ebx
push edi
je 0x4533e8
cmp dword [edi + 0x10], 0
je 0x4533e1
call fcn.00487a90
jmp 0x4533fa
call fcn.00487be0
jmp 0x4533fa
cmp dword [edi + 0x14], 8
jne 0x4533f5
call fcn.00487ca0
jmp 0x4533fa
call fcn.00487910
add esp, 8
lea edx, [ebp - 0x52c]
mov ecx, edi
call fcn.00479d80
mov esi, dword [ebp - 0x514]
xor edi, edi
jmp 0x45341d
mov esi, dword [ebp - 0x514]
or edi, 0xffffffff
push dword [ebp - 0x518]
call fcn.00494b54
add esp, 4
test esi, esi
je 0x453438
push esi
call fcn.00494034
add esp, 4
test ebx, ebx
je 0x453486
cmp dword [ebx + 0xc], 0
jne 0x453486
mov ecx, dword [ebx + 0x34]
mov eax, dword [ebx + 0x38]
test ecx, ecx
je 0x453451
mov dword [ecx + 0x38], eax
jmp 0x453456
mov dword [0x53c124], eax
mov ecx, dword [ebx + 0x38]
test ecx, ecx
je 0x453463
mov eax, dword [ebx + 0x34]
mov dword [ecx + 0x34], eax
call dword [0x4b4078]
push dword [ebx + 0x30]
call dword [0x4b4080]
push dword [ebx + 0x24]
call fcn.00494034
add esp, 4
push ebx
call fcn.00494034
add esp, 4
mov ecx, edi
call fcn.0044fd30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00493955
mov esp, ebp
pop ebp
ret