Function at 0x431249
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x194
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x180], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x17c], eax
mov dword [esp], 0x8048
call fcn.004484c4
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.004415c4
cmp dword [ebp - 0x17c], 0
js 0x431299
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.004415c4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x18]
mov edx, 0x8000
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], edx
call sub.msvcrt.dll_fread
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x18], eax
adc dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x18]
xor ah, 0x80
or eax, dword [ebp - 0x14]
test eax, eax
jne 0x431340
nop
lea eax, [ebp - 0xd8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x8000
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00441c88
cmp dword [ebp - 0x17c], 0
js 0x43142a
jmp 0x431393
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x38]
test eax, eax
jne 0x43137a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x431375
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0062e160
mov dword [ebp - 0x2c], 0
mov eax, 1
jmp 0x431545
jmp 0x43142f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_feof
test eax, eax
je 0x43138e
jmp 0x43142f
jmp 0x4312b5
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp - 0xc]
jg 0x4312a7
cmp edx, dword [ebp - 0xc]
jl 0x4313b6
cmp eax, dword [ebp - 0x10]
jae 0x4312a7
mov eax, 0x8000
mov edx, 0
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 0
jg 0x431400
cmp dword [ebp - 0x1c], 0
js 0x4313f2
cmp dword [ebp - 0x20], 0
ja 0x431400
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x20]
mov edx, 0x8000
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
add edx, eax
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00441a99
jmp 0x4312a7
cmp dword [ebp - 0x14], 0
js 0x4314fb
cmp dword [ebp - 0x14], 0
jg 0x431449
cmp dword [ebp - 0x18], 0
jbe 0x4314fb
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xd8]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00441a99
cmp dword [ebp - 0x17c], 0
js 0x4314fb
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
cmp edx, dword [ebp - 0xc]
jg 0x4314fb
cmp edx, dword [ebp - 0xc]
jl 0x43148d
cmp eax, dword [ebp - 0x10]
jae 0x4314fb
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
sbb edx, dword [ebp - 0xc]
mov ecx, eax
mov ebx, edx
mov eax, dword [ebp - 0x180]
mov edx, dword [ebp - 0x17c]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0
jg 0x4314d3
cmp dword [ebp - 0x24], 0
js 0x4314c5
cmp dword [ebp - 0x28], 0
ja 0x4314d3
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ecx, edx
sub ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
add edx, eax
lea eax, [ebp - 0x178]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.00441a99
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0xd8]
mov dword [esp], eax
call fcn.00441799
cmp dword [ebp - 0x17c], 0
js 0x43152e
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.00441799
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0062e160
mov dword [ebp - 0x2c], 0
mov eax, 0
add esp, 0x194
pop ebx
pop ebp
ret