Function at 0x425d30
Capabilities:
Check if file exists
Get file attributes
Get file size
Parse pe header
Read file on windows
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
push esi
mov esi, dword [esp + 0x68]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x425d4e
mov eax, 0x1000000
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 0x7c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x425d70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x425d84
pop ebx
mov eax, 0x200
pop esi
add esp, 0x60
ret
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x425d65
mov eax, dword [esp + 0x34]
push ebp
mov edx, eax
xor ebp, ebp
and edx, 1
je 0x425d93
mov ebp, 1
test al, 2
je 0x425d9a
or ebp, 2
test al, 4
je 0x425da1
or ebp, 4
mov ecx, eax
and ecx, 0x10
je 0x425dab
or ebp, 0x10
test al, 0x20
je 0x425db2
or ebp, 0x20
cmp ecx, ebx
je 0x425dbe
or ebp, 0x40000000
jmp 0x425dc4
or ebp, 0x80000000
or ebp, 0x1000000
cmp edx, ebx
jne 0x425dd4
or ebp, 0x800000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x28
mov dword [esp + 0x10], eax
jbe 0x425e7e
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
push ebx
push ebx
push esi
call edi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
push 0
push 0
push 0x24
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push esi
call ebx
cmp word [esp + 0x10], 0x54ad
jne 0x425e7b
mov eax, dword [esp + 0x1c]
lea edx, [eax + 0x34]
cmp dword [esp + 0x14], edx
jbe 0x425e7b
push 0
push 0
push eax
push esi
call edi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push esi
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x425e75
cmp eax, 0x454e
je 0x425e75
cmp eax, 0x454c
je 0x425e75
cmp eax, 0x4550
jne 0x425e7b
or ebp, 0x400000
xor ebx, ebx
pop edi
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x425e88
mov dword [eax], ebp
mov eax, dword [esp + 0x78]
cmp eax, ebx
pop ebp
je 0x425e97
mov edx, dword [esp + 0xc]
mov dword [eax], edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov esi, dword [esp + 0x78]
cmp esi, ebx
je 0x425f0e
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.00425c90
mov dword [esi + 4], edx
mov edx, dword [esp + 0x28]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.00425c90
mov ecx, dword [esp + 0x40]
mov dword [esi + 0xc], edx
mov edx, dword [esp + 0x3c]
push ecx
push edx
mov dword [esi + 8], eax
call fcn.00425c90
add esp, 0x18
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov esi, dword [esp + 0x7c]
cmp esi, ebx
je 0x425f3c
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx eax, word [esp + 8]
movzx ecx, word [esp + 0xc]
shl eax, 0x10
or eax, ecx
mov dword [esi], eax
pop ebx
xor eax, eax
pop esi
add esp, 0x60
ret