Function at 0x4625e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5a58
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x52600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x28], edi
mov ecx, 1
mov dword [edi + 0x7c], 1
call fcn.004738e0
test al, al
jne 0x46262f
xor eax, eax
jmp 0x462a1b
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0xffffffffffffffff
mov dword [ebp - 4], 0
mov ecx, edi
mov eax, dword [edi]
push 0
push dword [edi + 0x80]
mov eax, dword [eax + 0xd0]
push str.dialog_p.akb
call eax
push 2
push 0x45
push 0x2d0
mov dword [edi + 0x80], eax
mov ecx, edi
mov eax, dword [edi]
push 0x500
push 0
push 0
mov eax, dword [eax + 0xcc]
call eax
mov dword [edi + 0x88], eax
test eax, eax
je 0x462a18
push 1
push 0x7f000000
push 0x2d0
lea ecx, [eax + 0x108]
mov eax, dword [ecx]
push 0x500
push 0
push 0
call dword [eax + 0xd0]
mov edx, dword [edi + 0x80]
mov ecx, dword [edi + 0x88]
add ecx, 0x108
push 0
lea eax, [edx + 0x108]
neg edx
push 0
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
push 0x1fe
push 0x500
push 0x6a
push 0
call dword [esi + 0xa8]
push 0x5674e4
push 0x44
call fcn.004bd047
add esp, 8
mov dword [ebp - 0x44], eax
test eax, eax
je 0x462706
mov ecx, eax
call fcn.0049f420
mov ecx, eax
jmp 0x462708
xor ecx, ecx
mov dword [edi + 0x8c], ecx
test ecx, ecx
je 0x462628
mov eax, dword [ecx]
push 0x120
push 0x200
call dword [eax + 4]
mov ecx, dword [edi + 0x8c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
push 4
push eax
call dword [sym.imp.GDI32.dll_SetStretchBltMode]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x7c]
add eax, 0x108
mov esi, dword [edi + 0x80]
mov dword [ebp - 0x44], eax
mov edi, dword [eax]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
imul eax, eax, 0x2c
add eax, 0x2da
push eax
and ecx, 0x80000001
jns 0x462778
dec ecx
or ecx, 0xfffffffe
inc ecx
imul eax, ecx, 0x1d8
mov ecx, dword [ebp - 0x44]
push eax
lea eax, [esi + 0x108]
neg esi
sbb esi, esi
and esi, eax
push esi
push 0x2c
push 0x1d8
push 0x1ab
push 0x194
call dword [edi + 0xa8]
mov edi, dword [ebp - 0x28]
push 0
push 0x51c
mov edx, dword [edi + 0x80]
mov ecx, dword [edi + 0x88]
add ecx, 0x108
lea eax, [edx + 0x108]
neg edx
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
push 0x3a
push 0x3a
push 0x202
push 0x1ec
call dword [esi + 0xa8]
mov edx, dword [edi + 0x80]
mov ecx, dword [edi + 0x88]
add ecx, 0x108
push 0
lea eax, [edx + 0x108]
neg edx
push 0x556
mov esi, dword [ecx]
sbb edx, edx
and edx, eax
push edx
push 0x3a
push 0x3a
push 0x202
push 0x2dc
call dword [esi + 0xa8]
mov ecx, dword [edi + 0x7c]
mov ecx, dword [ecx*4 + 0x509df4]
call fcn.004738e0
mov ecx, dword [edi + 0x88]
mov edx, dword [edi + 0x80]
add ecx, 0x108
test al, al
mov esi, dword [ecx]
lea eax, [edx + 0x108]
jne 0x462852
push 0x38
jmp 0x462854
push 0
neg edx
push 0x500
sbb edx, edx
and edx, eax
push edx
push 0x1c
push 0x1c
push 0x214
push 0x345
call dword [esi + 0xa8]
mov esi, dword [edi + 0x8c]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], vtable.CFile.0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 2
mov ecx, esi
mov eax, dword [esi]
mov dword [ebp - 0x28], esi
call dword [eax + 0x34]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
lea edx, [edx + 1]
call fcn.004afe10
push 0
push 0
push 3
push 0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 0x10
push 1
cmovae eax, dword [ebp - 0x40]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
mov eax, dword [esi]
mov ecx, esi
jne 0x46292a
push 0
push 0x120
push 0x200
push 0
push 0
mov dword [ebp - 0x20], 0
call dword [eax + 0xd8]
lea ecx, [ebp - 0x40]
call fcn.00428650
mov byte [ebp - 4], 5
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov dword [ebp - 4], 6
jmp 0x462996
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call eax
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0x90000
push eax
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
lea ecx, [ebp - 0x24]
call dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, esi
push 0xff
push 0x120
push 0x200
push 0
push 0
call dword [eax + 0xd8]
lea ecx, [ebp - 0x40]
call fcn.00428650
mov byte [ebp - 4], 7
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov dword [ebp - 4], 8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.CFile.0
push eax
lea ecx, [ebp - 0x24]
call fcn.00475690
mov dword [ebp - 4], 0xffffffff
call fcn.00499b50
mov ecx, dword [edi + 0x8c]
push 0xff
push 0x120
push 0x200
mov eax, dword [ecx]
push 0
push 0
call dword [eax + 0xd8]
mov ecx, dword [edi + 0x88]
push 1
push 0
push 0
push dword [edi + 0x8c]
mov edx, dword [ecx + 0x108]
add ecx, 0x108
push 0x120
push 0x200
push 0x89
push 0x180
call dword [edx + 0x48]
mov eax, 1
jmp 0x462a1b
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004bcfcc
mov esp, ebp
pop ebp
ret 4