Function at 0x412bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], ecx
cmp dword [ebp + 0x10], 0
jg 0x412be0
jl 0x412bd7
cmp dword [ebp + 0xc], 0
ja 0x412be0
xor eax, eax
xor edx, edx
jmp 0x412d74
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
je 0x412c02
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00412d80
jmp 0x412d74
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
cmp dword [edx], 0
je 0x412c2c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
jmp 0x412c33
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
cdq
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x412cce
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 8]
jae 0x412c5d
lea edx, [ebp - 0x10]
mov dword [ebp - 0x1c], edx
jmp 0x412c63
lea eax, [ebp - 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00568f10
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov dword [ebp + 8], edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov eax, dword [edx]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x2c]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ecx], edx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x412d65
mov ecx, dword [ebp - 4]
call fcn.0040fd40
mov dword [ebp - 0x2c], 0xfff
cmp dword [ebp - 8], 0xfff
jbe 0x412d3e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
push 0xfff
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.005939f1
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x14]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x14], 0xfff
je 0x412d3c
xor edx, edx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
sbb ecx, edx
mov edx, ecx
jmp 0x412d74
jmp 0x412cea
cmp dword [ebp - 8], 0
jbe 0x412d65
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.005939f1
add esp, 0x10
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
xor edx, edx
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x30]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc