Function at 0x451c30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0x4c3d40
push 0x561ad0
mov dword [ebp - 0x14], 0
xor edi, edi
mov dword [ebp - 0x10], 0
xor esi, esi
mov dword [ebp - 0xc], 0
call fcn.00494396
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x45211f
push eax
push 1
push 0xa560
push 0x557460
call fcn.00495739
add esp, 0x10
cmp eax, 1
jne 0x4520d7
mov ecx, str.MajiroSavV1.105
mov eax, 0x557460
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x451cb6
test dl, dl
je 0x451cb2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x451cb6
add eax, 2
add ecx, 2
test dl, dl
jne 0x451c96
xor eax, eax
jmp 0x451cbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4520d7
mov eax, dword [0x557674]
test eax, eax
je 0x451d1e
mov ecx, dword [0x537a0c]
test ecx, ecx
je 0x451ce4
push ecx
call fcn.00494034
mov eax, dword [0x557674]
add esp, 4
mov ecx, dword [0x557678]
imul ecx, eax
shl ecx, 2
call fcn.00484ed0
mov esi, dword [ebp - 4]
mov ecx, eax
mov eax, dword [0x557678]
imul eax, dword [0x557674]
push esi
push 1
mov dword [0x537a0c], ecx
shl eax, 2
push eax
push ecx
call fcn.00495739
add esp, 0x10
jmp 0x451d21
mov esi, dword [ebp - 4]
mov eax, dword [0x557670]
inc eax
imul eax, eax, 0xa8
push esi
push 1
push eax
push 0x561de0
call fcn.00495739
mov esi, dword [0x5379e0]
add esp, 0x10
mov dword [ebp - 8], esi
test esi, esi
je 0x451d5f
jmp 0x451d50
cmp dword [esi + 4], edi
je 0x451d64
mov esi, dword [esi + 0x1c]
mov dword [ebp - 8], esi
test esi, esi
jne 0x451d50
xor esi, esi
mov dword [ebp - 8], esi
push dword [esi + 0x20]
call fcn.00494034
add esp, 4
push dword [esi + 0x24]
call fcn.00494034
mov eax, dword [0x557670]
add esp, 4
mov dword [esi], eax
mov eax, dword [0x557680]
mov dword [esi + 8], eax
mov eax, dword [0x557680]
add eax, 0x400
mov dword [esi + 0xc], eax
add eax, 0x22
shl eax, 4
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
test edi, edi
jne 0x451dbe
push 0x10
push str.malloc
push 0x4c9a90
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [esi + 0x20], edi
imul eax, dword [0x557670], 0xa8
mov eax, dword [eax + 0x561e68]
add eax, 0x400
mov dword [esi + 0x10], eax
add eax, 0x22
shl eax, 4
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
test edi, edi
jne 0x451e02
push 0x10
push str.malloc
push 0x4c9a90
push eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
mov dword [esi + 0x24], edi
mov edx, dword [0x55767c]
mov dword [0x561bdc], edx
lea eax, [edx - 8]
cmp dword [0x561bd8], eax
jg 0x451e3e
mov ecx, dword [0x537a18]
add edx, 0x400
mov dword [0x561bd8], edx
add edx, 0x20
shl edx, 4
call fcn.00484f00
mov dword [0x537a18], eax
cmp dword [0x557670], 0
mov dword [ebp - 0x18], 0
jl 0x451f05
lea edi, [esi + 0x38]
mov esi, 0x561e60
lea ebx, [ebx]
lea ecx, [esi - 0x80]
call fcn.0043a4e0
mov ecx, eax
mov eax, dword [esi]
add eax, dword [ecx + 0xa4]
mov dword [edi - 0x10], eax
mov eax, dword [esi + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi - 4], eax
mov edx, dword [esi + 0x14]
test edx, edx
jle 0x451e9e
mov eax, dword [ecx + 0xa4]
add eax, edx
mov dword [edi + 4], eax
mov edx, dword [esi + 0x18]
test edx, edx
jle 0x451eb0
mov eax, dword [ecx + 0xa4]
add eax, edx
mov dword [edi + 8], eax
mov edx, dword [esi + 0x1c]
test edx, edx
jle 0x451ec2
mov eax, dword [ecx + 0xa4]
add eax, edx
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x20]
test edx, edx
je 0x451ed4
mov eax, dword [ecx + 0xa4]
add eax, edx
mov dword [edi + 0x10], eax
mov edx, dword [esi + 0x24]
test edx, edx
je 0x451ee6
mov eax, dword [ecx + 0xa4]
add eax, edx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x18]
add esi, 0xa8
inc eax
add edi, 0x50
mov dword [ebp - 0x18], eax
cmp eax, dword [0x557670]
jle 0x451e60
mov esi, dword [ebp - 8]
mov eax, dword [0x55767c]
add eax, 0x22
shl eax, 4
push eax
call fcn.00497cab
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x451f35
push 0x10
push str.malloc
push 0x4c9a90
push eax
call edi
mov eax, dword [0x557680]
add eax, 0x22
shl eax, 4
push eax
call fcn.00497cab
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x451f5f
push 0x10
push str.malloc
push 0x4c9a90
push eax
call edi
mov eax, dword [0x557684]
add eax, 0x22
shl eax, 4
push eax
call fcn.00497cab
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x451f89
push 0x10
push str.malloc
push 0x4c9a90
push eax
call edi
mov eax, dword [0x557688]
add eax, 0x40
push eax
call fcn.00497cab
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x451fb7
push 0x10
push str.malloc
push 0x4c9a90
push eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
push dword [ebp - 4]
mov eax, dword [0x55767c]
push 1
shl eax, 4
push eax
push dword [ebp - 0x14]
call fcn.00495739
push dword [ebp - 4]
mov eax, dword [0x557680]
push 1
shl eax, 4
push eax
push dword [ebp - 0x10]
call fcn.00495739
push dword [ebp - 4]
mov eax, dword [0x557684]
push 1
shl eax, 4
push eax
push dword [ebp - 0xc]
call fcn.00495739
push dword [ebp - 4]
push 1
push dword [0x557688]
push edi
call fcn.00495739
add esp, 0x40
mov dword [ebp - 0x1c], 0
cmp dword [0x55767c], 0
jle 0x45204f
xor esi, esi
nop
mov ecx, dword [0x537a18]
mov edx, dword [ebp - 0x14]
push 1
push edi
lea ecx, [esi + ecx]
lea edx, [esi + edx]
call fcn.004511a0
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 0x10]
inc eax
add esp, 8
mov dword [ebp - 0x1c], eax
cmp eax, dword [0x55767c]
jl 0x452020
mov esi, dword [ebp - 8]
cmp dword [0x557680], 0
mov dword [ebp - 0x1c], 0
jle 0x45208b
xor edi, edi
mov edx, dword [ebp - 0x10]
mov ecx, dword [esi + 0x20]
push 2
push dword [ebp - 0x18]
lea edx, [edi + edx]
add ecx, edi
call fcn.004511a0
mov eax, dword [ebp - 0x1c]
add esp, 8
inc eax
add edi, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, dword [0x557680]
jl 0x452061
cmp dword [0x557684], 0
mov dword [ebp - 0x1c], 0
jle 0x4520ca
xor edi, edi
lea ecx, [ecx]
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 0x24]
push 3
push dword [ebp - 0x18]
lea edx, [edi + edx]
add ecx, edi
call fcn.004511a0
mov eax, dword [ebp - 0x1c]
add esp, 8
inc eax
add edi, 0x10
mov dword [ebp - 0x1c], eax
cmp eax, dword [0x557684]
jl 0x4520a0
mov edi, dword [ebp - 0x18]
mov dword [0x4e6830], 1
push dword [ebp - 4]
call fcn.00494b54
add esp, 4
test edi, edi
je 0x4520ef
push edi
call fcn.00494034
add esp, 4
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4520ff
push eax
call fcn.00494034
add esp, 4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x45210f
push eax
call fcn.00494034
add esp, 4
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45211f
push eax
call fcn.00494034
add esp, 4
push 0x9c40
push 0x557d80
push 0x54d820
mov dword [0x55767c], 0
mov dword [0x557680], 0
mov dword [0x557684], 0
mov dword [0x5379e8], 1
mov dword [0x5379fc], 1
call fcn.0049c4f0
add esp, 0xc
test esi, esi
je 0x452184
mov eax, dword [esi]
mov dword [0x58c464], esi
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x28
add eax, esi
mov dword [0x58c460], eax
call fcn.0045b2f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret