Function at 0x402aa0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x44df10
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4651b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4651b0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
lea ebx, [esp + 0x30]
call fcn.00402960
xor edi, edi
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x38]
mov esi, 8
cmp dword [esp + 0x4c], esi
jae 0x402af4
lea eax, [esp + 0x38]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, edi
jne 0x402b35
mov dword [esp + 0x30], vtable.TString.0
cmp dword [esp + 0x4c], esi
jb 0x402d89
mov eax, dword [esp + 0x38]
push eax
call fcn.00438e12
add esp, 4
jmp 0x402d89
mov ecx, dword [0x468230]
push edi
push edi
push ecx
push ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov esi, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
lea edx, [esp + 0x1c]
push edx
mov ebp, 4
push ebp
lea eax, [esp + 0x30]
push eax
push ebx
call esi
cmp dword [esp + 0x18], ebp
je 0x402b99
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], vtable.TString.0
jb 0x402d89
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00438e12
add esp, 4
jmp 0x402d89
mov eax, dword [esp + 0x24]
cmp eax, 0x41474745
jne 0x402bc4
push ebx
mov dword [0x468234], edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.004010f0
mov eax, 1
jmp 0x402d8b
cmp eax, 0x245b90f2
jne 0x402d79
push edi
lea edx, [esp + 0x1c]
push edx
push ebp
lea eax, [esp + 0x28]
push eax
push ebx
mov dword [esp + 0x30], edi
call esi
cmp dword [esp + 0x18], ebp
jne 0x402d79
push edi
lea ecx, [esp + 0x1c]
push ecx
push 2
lea edx, [esp + 0x34]
push edx
push ebx
mov dword [esp + 0x3c], edi
call esi
cmp dword [esp + 0x18], 2
jne 0x402d79
push edi
lea eax, [esp + 0x1c]
push eax
push ebp
lea ecx, [esp + 0x2c]
push ecx
push ebx
call esi
cmp dword [esp + 0x18], ebp
jne 0x402d79
jmp 0x402c28
xor edi, edi
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x402d4c
movzx edx, ax
shr eax, 0x10
movzx edi, ax
lea ebp, [edi + 2]
push ebp
mov dword [esp + 0x30], edx
call fcn.00438b0c
mov esi, eax
add esp, 4
test esi, esi
je 0x402d79
push ebp
push 0
push esi
call fcn.0043ad60
mov ebp, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebx
call ebp
cmp dword [esp + 0x18], edi
jne 0x402d70
mov eax, dword [esp + 0x2c]
mov ecx, 1
mov edx, ecx
cmp dx, ax
jne 0x402c9a
mov dword [0x468298], ecx
jmp 0x402d25
mov edx, 2
cmp dx, ax
jne 0x402cac
mov dword [0x46829c], ecx
jmp 0x402d25
mov ecx, 3
cmp cx, ax
jne 0x402ccc
push esi
lea ecx, [esp + 0x54]
call fcn.00403c50
mov byte [esp + 0x78], 1
push 0x468278
jmp 0x402d0a
mov ecx, 4
cmp cx, ax
jne 0x402cec
push esi
lea ecx, [esp + 0x54]
call fcn.00403c50
mov byte [esp + 0x78], 2
push 0x468238
jmp 0x402d0a
mov ecx, 5
cmp cx, ax
jne 0x402d25
push esi
lea ecx, [esp + 0x54]
call fcn.00403c50
mov byte [esp + 0x78], 3
push 0x468258
lea edx, [esp + 0x54]
push edx
call fcn.0040c0c0
add esp, 8
lea ecx, [esp + 0x50]
mov byte [esp + 0x78], 0
call fcn.00403c90
push esi
call fcn.004390a9
add esp, 4
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push ebx
call ebp
cmp dword [esp + 0x18], 4
je 0x402c26
jmp 0x402d79
mov edx, dword [esp + 0x1c]
add edx, 8
push ebx
mov dword [0x468234], edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.004010f0
mov eax, 1
jmp 0x402d8b
push esi
call fcn.004390a9
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x30]
call fcn.004010f0
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00438b17
add esp, 0x68
ret