Function at 0x402ef0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x465c73
mov eax, dword fs:[0]
push eax
mov eax, 0x2058
call fcn.0043ac60
mov eax, dword [0x485618]
xor eax, esp
mov dword [esp + 0x2054], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485618]
xor eax, esp
push eax
lea eax, [esp + 0x206c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2084]
mov ebx, dword [esp + 0x207c]
mov dword [esp + 0x20], eax
xor eax, eax
mov edi, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x2080]
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocStringLen
push ebp
mov dword [esp + 0x2090], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402fae
push 0x46adb8
mov ecx, ebx
call fcn.00402d00
lea eax, [ebp - 0x10]
mov dword [esp + 0x2074], esi
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402fa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
jmp 0x4030d1
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov eax, dword [esp + 0x20]
test eax, eax
mov ebp, dword [esp + 0x48]
mov ebx, dword [esp + 0x44]
je 0x402fcf
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov edx, ebp
or edx, ebx
je 0x403025
push 0x2000
lea eax, [esp + 0x6c]
push 0
push eax
call fcn.0043ac90
add esp, 0xc
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x2000
lea edx, [esp + 0x74]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4030fb
mov eax, dword [esp + 0x18]
sub ebp, eax
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
sbb ebx, 0
call fcn.00401430
mov ecx, ebp
or ecx, ebx
jne 0x402fd5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00401470
push 0x10
lea ecx, [esp + 0x5c]
push ecx
push eax
call fcn.0043ab34
add esp, 0xc
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x18]
call fcn.00402d00
lea ecx, [esp + 0x14]
mov byte [esp + 0x2074], 1
call fcn.00402b70
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebx, 0xffffffff
push eax
mov dword [edi + 4], ebx
call fcn.00401cf0
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x2074], 0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2080]
add eax, 0xfffffff0
mov dword [esp + 0x2074], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x4030cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x206c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2054]
xor ecx, esp
call fcn.0043a450
add esp, 0x2064
ret 0xc
mov esi, dword [esp + 0x1c]
push 0x46adb8
mov ecx, esi
call fcn.00402d00
mov eax, dword [esp + 0x2080]
add eax, 0xfffffff0
mov dword [esp + 0x2074], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4030c3