Function at 0x402d80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43342b
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x43d76c]
xor eax, esp
mov dword [esp + 0x880], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43d76c]
xor eax, esp
push eax
lea eax, [esp + 0x898]
mov dword fs:[0], eax
mov eax, dword [esp + 0x8a8]
mov ebp, dword [esp + 0x8ac]
xor ebx, ebx
push ebx
push 0x666c7374
mov esi, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ebx
call fcn.00402260
test eax, eax
je 0x403036
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push ebp
call esi
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x1c], ebx
ja 0x402e46
mov eax, 1
mov ecx, dword [esp + 0x898]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x880]
xor ecx, esp
call fcn.00421275
add esp, 0x890
ret 8
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 7
mov dword [esp + 0x44], eax
mov dword [esp + 0x60], eax
xor edx, edx
xor eax, eax
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], ax
mov dword [esp + 0x64], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
push 0x401
lea ecx, [esp + 0x90]
push ebx
push ecx
mov dword [esp + 0x8ac], ebx
call fcn.004212e0
lea eax, [esp + 0x98]
add esp, 0xc
mov dword [esp + 0x24], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402ec1
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x90]
push edx
lea ecx, [esp + 0x34]
call fcn.004055e0
push ebx
lea eax, [esp + 0x1c]
push eax
mov edi, 8
push edi
lea ecx, [esp + 0x80]
push ecx
push ebp
call esi
test eax, eax
je 0x402ffd
push ebx
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x88]
push eax
push ebp
call esi
test eax, eax
je 0x402ffd
push ebx
lea ecx, [esp + 0x1c]
push ecx
push edi
lea edx, [esp + 0x90]
push edx
push ebp
call esi
test eax, eax
je 0x40303d
push ebx
lea eax, [esp + 0x1c]
push eax
push 4
lea ecx, [esp + 0x70]
push ecx
push ebp
call esi
test eax, eax
je 0x40303d
push ebx
lea edx, [esp + 0x1c]
push edx
push edi
lea eax, [esp + 0x74]
push eax
push ebp
call esi
test eax, eax
je 0x40303d
push ebx
lea ecx, [esp + 0x1c]
push ecx
push 4
lea edx, [esp + 0x30]
push edx
push ebp
call esi
test eax, eax
je 0x40303d
mov eax, dword [esp + 0x24]
cmp eax, 0x400
jg 0x40303d
push ebx
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x98]
push edx
push ebp
call esi
lea ecx, [esp + 0x2c]
test eax, eax
je 0x403041
lea eax, [esp + 0x8c]
push eax
call fcn.00403a50
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
push ecx
add edx, 4
push edx
call fcn.00403cf0
lea edi, [esp + 0x2c]
mov esi, eax
call fcn.004024d0
mov ecx, edi
mov dword [esp + 0x8a0], 0xffffffff
call fcn.00402470
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x1c]
jb 0x402e40
jmp 0x402e08
cmp dword [esp + 0x60], edi
jb 0x403010
mov eax, dword [esp + 0x4c]
push eax
call fcn.00420c40
add esp, 4
xor ecx, ecx
mov dword [esp + 0x60], 7
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], cx
cmp dword [esp + 0x44], edi
jb 0x403036
mov edx, dword [esp + 0x30]
push edx
call fcn.00420c40
add esp, 4
xor eax, eax
jmp 0x402e0d
lea ecx, [esp + 0x2c]
call fcn.00402470
xor eax, eax
jmp 0x402e0d