Function at 0x43170f
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 0x431726
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 0x431766
or eax, dword [ebp + 0x2c]
je 0x431749
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 0x4317c1
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x34], edx
push dword [ebp + 0x20]
call fcn.00463ab0
jmp 0x431796
or eax, dword [ebp + 0x2c]
je 0x431777
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 0x4317c1
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x34], edx
push dword [ebp + 0x20]
call fcn.00463ab0
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.00463ab0
mov dword [ebp + 0x34], eax
cdq
sub dword [ebp + 0x20], eax
sbb dword [ebp + 0x24], edx
jmp 0x4317c5
and dword [ebp + 0x34], 0
cmp edi, dword [ebp + 0x10]
jl 0x4317d7
jg 0x4317d1
cmp esi, dword [ebp + 0xc]
jbe 0x4317d7
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 0x431804
jg 0x4317fe
cmp eax, dword [ebp + 0xc]
jbe 0x431804
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 0x4318ef
jl 0x431861
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x4318ef
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.0042a0c1
cmp dword [ebp - 0x24], 0
je 0x4318ef
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 0x431ad3
jg 0x4318a1
cmp dword [ebp - 0x18], edi
jb 0x431ad3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call fcn.00461880
add esp, 0xc
test eax, eax
je 0x4318d7
mov eax, dword [ebp - 4]
cdq
add dword [ebp + 0x20], eax
adc edi, edx
add esi, dword [ebp - 4]
cmp edi, ebx
jl 0x4318a1
jg 0x431ad3
mov eax, dword [ebp - 0x18]
cmp dword [ebp + 0x20], eax
jbe 0x4318a1
jmp 0x431ad3
lea ecx, [ebp - 0x28]
call fcn.00424456
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x30]
mov edx, edi
adc edx, dword [ebp - 0x2c]
jmp 0x431ae1
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.0042572e
add esp, 0x10
cmp dword [ebp + 0x20], eax
jne 0x431ad3
cmp dword [ebp + 0x24], edx
jne 0x431ad3
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 0x43194d
jg 0x43194b
cmp eax, ecx
jbe 0x43194d
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 0x431973
mov dword [ebp - 0xc], eax
mov ebx, eax
and dword [ebp + 0x10], 0
push ebx
lea ecx, [ebp + 0x10]
call fcn.0042459d
test eax, eax
mov dword [ebp - 8], eax
jne 0x4319a7
cmp ebx, esi
jl 0x431acb
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 0x431977
cmp ebx, edi
jl 0x431acb
mov eax, dword [ebp + 0x24]
xor ebx, ebx
cmp eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0x3e8
jg 0x431acb
jl 0x4319d2
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x30]
ja 0x431acb
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 0x431a04
jg 0x4319ff
cmp ecx, eax
jbe 0x431a04
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 0x431a27
cmp dword [ebp + 0x30], esi
jge 0x431a36
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], esi
jle 0x431acb
mov dword [ebp + 0x30], esi
cmp dword [ebp + 0x30], edi
jle 0x431a3e
mov dword [ebp + 0x30], edi
add dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 0x30]
cmp ebx, dword [ebp - 0x1c]
jl 0x431ab1
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 0x431a97
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.00461880
add esp, 0xc
test eax, eax
je 0x431ae6
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 0x431a6a
imul esi, dword [ebp - 4]
sub ebx, esi
test ebx, ebx
mov dword [ebp - 8], edi
jle 0x431ab1
push ebx
add esi, edi
push esi
push edi
call fcn.00461d90
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + 0x24], eax
jl 0x4319d2
jg 0x431acb
mov eax, dword [ebp - 0x30]
cmp dword [ebp + 0x20], eax
jbe 0x4319d2
lea ecx, [ebp + 0x10]
call fcn.00424686
lea ecx, [ebp - 0x28]
call fcn.00424456
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp + 0x10]
call fcn.00424686
lea ecx, [ebp - 0x28]
call fcn.00424456
mov eax, dword [ebp - 0x38]
add eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x34]
adc edx, dword [ebp + 0x24]
jmp 0x431ae1