Function at 0x405e0a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x405e27
push 0xffffffffffffff9a
pop eax
jmp 0x4060e2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x7c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405e44
push 0xffffffffffffff9a
pop eax
jmp 0x4060e2
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x405e55
push 0xffffffffffffff9c
pop eax
jmp 0x4060e2
cmp dword [ebp + 0x10], 0
jne 0x405e62
xor eax, eax
jmp 0x4060e2
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x60]
jbe 0x405e8b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x60]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jbe 0x4060d4
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x405f5c
mov eax, dword [ebp - 8]
cmp dword [eax + 0x5c], 0
jbe 0x405f5c
mov dword [ebp - 0x18], 0x4000
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x5c]
cmp eax, dword [ebp - 0x18]
jae 0x405ecd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x405eda
xor eax, eax
jmp 0x4060e2
push 0
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x68]
push eax
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
jne 0x405f03
or eax, 0xffffffff
jmp 0x4060e2
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 8]
push dword [eax + 4]
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x405f29
or eax, 0xffffffff
jmp 0x4060e2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x40]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x40], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x5c]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x5c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 4]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
jne 0x40603f
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp eax, dword [ecx + 0xc]
jae 0x405f82
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x1c], eax
jmp 0x405f8b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
and dword [ebp - 0x20], 0
jmp 0x405f98
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
jae 0x405fba
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
mov edx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x20]
mov al, byte [eax + esi]
mov byte [ecx + edx], al
jmp 0x405f91
push dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
call fcn.0040125d
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x1c], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x4060cf
mov dword [ebp - 0x34], 2
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x34]
mov eax, dword [ebp - 8]
add eax, 8
push eax
call fcn.00403dfe
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push dword [ebp - 0x30]
mov eax, dword [ebp - 8]
push dword [eax + 0x54]
call fcn.0040125d
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x54], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x60]
sub eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x60], eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 4], 1
jne 0x4060c7
mov eax, dword [ebp - 0x14]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x14]
jmp 0x4060e2
cmp dword [ebp - 4], 0
je 0x4060cf
jmp 0x4060d4
jmp 0x405e8b
cmp dword [ebp - 4], 0
jne 0x4060df
mov eax, dword [ebp - 0x14]
jmp 0x4060e2
mov eax, dword [ebp - 4]
pop esi
leave
ret