Function at 0x43e46a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0x30]
test eax, eax
mov dword [ebp - 4], 0x200
je 0x43e481
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 0x43e4c1
or eax, dword [ebp + 0x2c]
je 0x43e4a4
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 0x43e51c
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x3c], edx
push dword [ebp + 0x20]
call fcn.00485a30
jmp 0x43e4f1
or eax, dword [ebp + 0x2c]
je 0x43e4d2
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 0x43e51c
cdq
push edx
mov ebx, eax
push ebx
push dword [ebp + 0x24]
mov dword [ebp - 0x3c], edx
push dword [ebp + 0x20]
call fcn.00485a30
mov dword [ebp + 0x34], eax
cdq
sub dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x34]
push dword [ebp - 0x3c]
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.00485a30
mov dword [ebp + 0x34], eax
cdq
sub dword [ebp + 0x20], eax
sbb dword [ebp + 0x24], edx
jmp 0x43e520
and dword [ebp + 0x34], 0
cmp edi, dword [ebp + 0x10]
jl 0x43e532
jg 0x43e52c
cmp esi, dword [ebp + 0xc]
jbe 0x43e532
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 - 0x28], edx
jl 0x43e55f
jg 0x43e559
cmp eax, dword [ebp + 0xc]
jbe 0x43e55f
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 - 0x40], 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 - 0x3c], edx
mov dword [ebp - 0x34], 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 - 0x34]
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [ebp + 0x10], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
jg 0x43e64a
jl 0x43e5bc
cmp dword [ebp + 0xc], 0x7fffffff
ja 0x43e64a
push dword [ebp + 0x24]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x28]
push 2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431bf6
cmp dword [ebp - 0x2c], 0
je 0x43e64a
mov esi, dword [ebp - 0x38]
sub esi, dword [ebp - 0x28]
xor edi, edi
add esi, dword [ebp - 0x2c]
cmp ebx, edi
mov dword [ebp + 0x20], edi
jl 0x43e872
jg 0x43e5fc
cmp dword [ebp - 0x20], edi
jb 0x43e872
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call fcn.00437452
add esp, 0xc
test eax, eax
jne 0x43e632
mov eax, dword [ebp - 4]
cdq
add dword [ebp + 0x20], eax
adc edi, edx
add esi, dword [ebp - 4]
cmp edi, ebx
jl 0x43e5fc
jg 0x43e872
mov eax, dword [ebp - 0x20]
cmp dword [ebp + 0x20], eax
jbe 0x43e5fc
jmp 0x43e872
lea ecx, [ebp - 0x30]
call fcn.00431bca
mov eax, dword [ebp + 0x20]
add eax, dword [ebp - 0x38]
mov edx, edi
adc edx, dword [ebp - 0x34]
jmp 0x43e880
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 - 0x38], ecx
mov dword [ebp - 0x34], eax
call fcn.00432bc3
add esp, 0x10
cmp dword [ebp + 0x20], eax
jne 0x43e872
cmp dword [ebp + 0x24], edx
jne 0x43e872
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 0x43e6a8
jg 0x43e6a6
cmp eax, ecx
jbe 0x43e6a8
mov esi, ecx
lea edi, [ebx + 0x1ff]
mov ebx, 0xfffffe00
lea eax, [esi + 0x1ff]
and eax, ebx
mov ecx, 0x200000
and edi, ebx
cmp eax, ecx
mov dword [ebp - 8], eax
jge 0x43e6ce
mov dword [ebp - 8], ecx
mov eax, ecx
and dword [ebp - 0x10], 0
jmp 0x43e6d7
mov eax, dword [ebp - 8]
add eax, 0x100000
push eax
lea ecx, [ebp - 0x10]
call fcn.00437099
test eax, eax
mov dword [ebp + 0x30], eax
je 0x43e6fb
add eax, 0x100000
and eax, 0xfff00000
mov dword [ebp + 0x30], eax
jne 0x43e71b
mov eax, dword [ebp - 8]
cmp eax, esi
jl 0x43e86a
cdq
sub eax, edx
sar eax, 1
add eax, 0x1ff
and eax, ebx
cmp dword [ebp + 0x30], 0
mov dword [ebp - 8], eax
je 0x43e6d4
cmp dword [ebp - 8], edi
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x24], eax
jl 0x43e86a
and dword [ebp - 0xc], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], 0x3e8
jg 0x43e86a
jl 0x43e757
mov eax, dword [ebp + 0x20]
cmp eax, dword [ebp - 0x38]
ja 0x43e86a
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp + 0x20]
mov esi, dword [ebp - 0x34]
sbb esi, dword [ebp + 0x24]
mov edi, dword [ebp - 8]
add ecx, 0x1ff
adc esi, 0
sub edi, dword [ebp - 0xc]
and ecx, ebx
mov eax, edi
cdq
cmp esi, edx
jl 0x43e785
jg 0x43e781
cmp ecx, eax
jbe 0x43e785
mov ecx, eax
mov esi, edx
test esi, esi
jl 0x43e86a
jg 0x43e797
test ecx, ecx
jbe 0x43e86a
mov esi, dword [ebp - 0xc]
and dword [ebp + 0x10], 0
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x30]
push ecx
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43e7be
cmp dword [ebp + 0x10], 0
jg 0x43e7cf
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x43e86a
and dword [ebp + 0x10], 0
cmp dword [ebp + 0x10], edi
jle 0x43e7d7
mov dword [ebp + 0x10], edi
add dword [ebp + 0x10], esi
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
jl 0x43e850
sub eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
add eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x34]
cdq
idiv dword [ebp - 4]
and dword [ebp - 0x18], 0
add ecx, edi
mov dword [ebp + 0x30], ecx
mov esi, eax
test esi, esi
jle 0x43e831
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x30]
call fcn.00437452
add esp, 0xc
test eax, eax
jne 0x43e885
mov eax, dword [ebp - 4]
inc dword [ebp - 0x18]
cdq
add dword [ebp + 0x20], eax
mov eax, dword [ebp - 4]
adc dword [ebp + 0x24], edx
add dword [ebp + 0x30], eax
cmp dword [ebp - 0x18], esi
jl 0x43e804
imul esi, dword [ebp - 4]
sub dword [ebp - 0xc], esi
cmp dword [ebp - 0xc], 0
mov dword [ebp + 0x30], edi
jle 0x43e850
push dword [ebp - 0xc]
add esi, edi
push esi
push edi
call fcn.00410b0e
add esp, 0xc
mov eax, dword [ebp - 0x34]
cmp dword [ebp + 0x24], eax
jl 0x43e757
jg 0x43e86a
mov eax, dword [ebp - 0x38]
cmp dword [ebp + 0x20], eax
jbe 0x43e757
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 0x30]
call fcn.00431bca
or eax, 0xffffffff
or edx, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
lea ecx, [ebp - 0x10]
call fcn.00431c4c
lea ecx, [ebp - 0x30]
call fcn.00431bca
mov eax, dword [ebp - 0x40]
add eax, dword [ebp + 0x20]
mov edx, dword [ebp - 0x3c]
adc edx, dword [ebp + 0x24]
jmp 0x43e880