Function at 0x4319f2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0x30]
test eax, eax
mov dword [ebp - 4], 0x200
je 0x431a09
mov dword [ebp - 4], eax
cmp dword [ebp + 0x34], 0
mov eax, dword [ebp + 0x28]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
je 0x431a49
or eax, dword [ebp + 0x2c]
je 0x431a2c
mov esi, dword [ebp + 0x20]
add esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
adc edi, dword [ebp + 0x2c]
mov eax, dword [ebp - 4]
cmp eax, 1
jle 0x431aa4
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x34], edx
push dword [ebp + 0x20]
call fcn.00468b90
jmp 0x431a79
or eax, dword [ebp + 0x2c]
je 0x431a5a
mov esi, dword [ebp + 0x20]
add esi, dword [ebp + 0x28]
mov edi, dword [ebp + 0x24]
adc edi, dword [ebp + 0x2c]
mov eax, dword [ebp - 4]
cmp eax, 1
jle 0x431aa4
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x34], edx
push dword [ebp + 0x20]
call fcn.00468b90
mov dword [ebp + 0x34], eax
cdq
sub dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x34]
push dword [ebp - 0x34]
sbb dword [ebp + 0x24], edx
cdq
add dword [ebp + 0x20], eax
push ebx
adc dword [ebp + 0x24], edx
push dword [ebp + 0x24]
push dword [ebp + 0x20]
call fcn.00468b90
mov dword [ebp + 0x34], eax
cdq
sub dword [ebp + 0x20], eax
sbb dword [ebp + 0x24], edx
jmp 0x431aa8
and dword [ebp + 0x34], 0
cmp edi, dword [ebp + 0x10]
jl 0x431aba
jg 0x431ab4
cmp esi, dword [ebp + 0xc]
jbe 0x431aba
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x20]
mov ebx, 0xfffffe00
and edx, ebx
mov eax, esi
add eax, 0x1ff
mov ecx, edi
adc ecx, 0
and eax, ebx
cmp ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
jl 0x431ae7
jg 0x431ae1
cmp eax, dword [ebp + 0xc]
jbe 0x431ae7
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
sub eax, edx
mov edx, dword [ebp + 0x24]
sbb ecx, edx
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x34]
cdq
mov dword [ebp - 0x38], eax
mov dword [ebp + 0x10], ecx
mov ecx, eax
add ecx, dword [ebp + 0x20]
mov eax, edx
adc eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
cdq
mov ebx, eax
mov eax, esi
sub eax, ebx
mov ebx, edi
sbb ebx, edx
sub eax, ecx
sbb ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
jg 0x431bd2
jl 0x431b44
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x431bd2
push dword [ebp + 0x24]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x20]
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042ac60
cmp dword [ebp - 0x24], 0
je 0x431bd2
mov esi, dword [ebp - 0x30]
sub esi, dword [ebp - 0x20]
xor edi, edi
add esi, dword [ebp - 0x24]
cmp ebx, edi
mov dword [ebp + 0x20], edi
jl 0x431db6
jg 0x431b84
cmp dword [ebp - 0x18], edi
jb 0x431db6
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call fcn.0042b0dd
add esp, 0xc
test eax, eax
jne 0x431bba
mov eax, dword [ebp - 4]
cdq
add dword [ebp + 0x20], eax
adc edi, edx
add esi, dword [ebp - 4]
cmp edi, ebx
jl 0x431b84
jg 0x431db6
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x20], eax
jbe 0x431b84
jmp 0x431db6
lea ecx, [ebp - 0x28]
call fcn.00425fa6
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x30]
mov edx, edi
adc edx, dword [ebp - 0x2c]
jmp 0x431dc4
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x34]
lea ebx, [eax + ecx]
push 0
push dword [ebp + 0x24]
mov eax, ebx
push dword [ebp + 0x20]
cdq
push dword [ebp + 8]
mov ecx, esi
sub ecx, eax
mov eax, edi
sbb eax, edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
call fcn.00426f04
add esp, 0x10
cmp dword [ebp + 0x20], eax
jne 0x431db6
cmp dword [ebp + 0x24], edx
jne 0x431db6
sub esi, dword [ebp + 0x20]
sbb edi, dword [ebp + 0x24]
mov ecx, esi
mov esi, ebx
shl esi, 2
mov eax, esi
cdq
cmp edx, edi
jl 0x431c30
jg 0x431c2e
cmp eax, ecx
jbe 0x431c30
mov esi, ecx
lea edi, [ebx + 0x1ff]
mov eax, 0xfffffe00
lea ebx, [esi + 0x1ff]
and ebx, eax
and edi, eax
mov eax, 0x200000
cmp ebx, eax
mov dword [ebp - 0xc], ebx
jge 0x431c56
mov dword [ebp - 0xc], eax
mov ebx, eax
and dword [ebp + 0x10], 0
push ebx
lea ecx, [ebp + 0x10]
call fcn.0042adfe
test eax, eax
mov dword [ebp - 8], eax
jne 0x431c8a
cmp ebx, esi
jl 0x431dae
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, 0x1ff
and eax, 0xfffffe00
mov dword [ebp - 0xc], eax
mov ebx, eax
jmp 0x431c5a
cmp ebx, edi
jl 0x431dae
mov eax, dword [ebp + 0x24]
xor ebx, ebx
cmp eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0x3e8
jg 0x431dae
jl 0x431cb5
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x30]
ja 0x431dae
mov ecx, dword [ebp - 0x30]
sub ecx, dword [ebp + 0x20]
mov esi, dword [ebp - 0x2c]
sbb esi, dword [ebp + 0x24]
mov edi, dword [ebp - 0xc]
add ecx, 0x1ff
adc esi, 0
sub edi, ebx
mov eax, edi
cdq
and ecx, 0xfffffe00
cmp esi, edx
jl 0x431ce7
jg 0x431ce2
cmp ecx, eax
jbe 0x431ce7
mov ecx, eax
mov dword [ebp - 0x14], edx
xor esi, esi
push esi
lea eax, [ebp + 0x30]
push eax
mov eax, dword [ebp - 8]
push ecx
add eax, ebx
push eax
push dword [ebp + 8]
mov dword [ebp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x431d0a
cmp dword [ebp + 0x30], esi
jge 0x431d19
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jle 0x431dae
mov dword [ebp + 0x30], esi
cmp dword [ebp + 0x30], edi
jle 0x431d21
mov dword [ebp + 0x30], edi
add dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
cmp ebx, dword [ebp - 0x1c]
jl 0x431d94
mov edi, dword [ebp + 0x10]
mov eax, dword [ebp + 0x34]
add eax, edi
mov dword [ebp - 8], eax
mov eax, ebx
sub eax, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
add eax, dword [ebp - 4]
cdq
idiv dword [ebp - 4]
mov esi, eax
test esi, esi
jle 0x431d7a
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.0042b0dd
add esp, 0xc
test eax, eax
jne 0x431dc9
mov eax, dword [ebp - 4]
inc dword [ebp - 0x14]
cdq
add dword [ebp + 0x20], eax
mov eax, dword [ebp - 4]
adc dword [ebp + 0x24], edx
add dword [ebp - 8], eax
cmp dword [ebp - 0x14], esi
jl 0x431d4d
imul esi, dword [ebp - 4]
sub ebx, esi
test ebx, ebx
mov dword [ebp - 8], edi
jle 0x431d94
push ebx
add esi, edi
push esi
push edi
call fcn.00466d00
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + 0x24], eax
jl 0x431cb5
jg 0x431dae
mov eax, dword [ebp - 0x30]
cmp dword [ebp + 0x20], eax
jbe 0x431cb5
lea ecx, [ebp + 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x28]
call fcn.00425fa6
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp + 0x10]
call fcn.0042602e
lea ecx, [ebp - 0x28]
call fcn.00425fa6
mov eax, dword [ebp - 0x38]
add eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x34]
adc edx, dword [ebp + 0x24]
jmp 0x431dc4