Function at 0x4201e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.00437250
mov eax, dword [0x46759c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
jg 0x42021b
jl 0x420205
cmp dword [ebp + 0x10], 0
jae 0x42021b
mov dword [ebp - 0x201c], 0
mov dword [ebp - 0x2018], 0
jmp 0x420283
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2020], eax
mov ecx, dword [ebp - 0x2020]
mov edx, dword [ebp + 0x14]
cmp edx, dword [ecx + 0x14]
jl 0x420259
jg 0x420242
mov eax, dword [ebp - 0x2020]
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x10]
jbe 0x420259
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x2028], eax
mov ecx, dword [edx + 0x14]
mov dword [ebp - 0x2024], ecx
jmp 0x42026b
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x2028], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2024], eax
mov ecx, dword [ebp - 0x2028]
mov dword [ebp - 0x201c], ecx
mov edx, dword [ebp - 0x2024]
mov dword [ebp - 0x2018], edx
mov eax, dword [ebp - 0x201c]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0x2018]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x1c], 0
jl 0x420342
jg 0x4202ab
cmp dword [ebp + 0x18], 0
jbe 0x420342
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0x1c], 0
je 0x420342
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x202c], eax
mov ecx, dword [ebp - 0x202c]
cmp dword [ecx + 0x14], 0
jl 0x420342
jg 0x4202db
mov edx, dword [ebp - 0x202c]
cmp dword [edx + 0x10], 0
jbe 0x420342
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
sub ecx, dword [ebp + 0x10]
mov edx, dword [eax + 0x14]
sbb edx, dword [ebp + 0x14]
mov dword [ebp - 0x2034], ecx
mov dword [ebp - 0x2030], edx
mov eax, dword [ebp + 0x1c]
cmp eax, dword [ebp - 0x2030]
jl 0x420323
jg 0x42030e
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp - 0x2034]
jbe 0x420323
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x10]
sub eax, dword [ebp + 0x10]
mov ecx, dword [edx + 0x14]
sbb ecx, dword [ebp + 0x14]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x1c], ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x1c]
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.0041d060
add esp, 0xc
jmp 0x420464
cmp dword [ebp + 0x1c], 0
jl 0x420464
jg 0x420358
cmp dword [ebp + 0x18], 0
jbe 0x420464
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0
je 0x420464
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004371a3
add esp, 4
push eax
call fcn.00437d0d
add esp, 0x10
cmp dword [ebp + 0x1c], 0
jl 0x420464
jg 0x42039d
cmp dword [ebp + 0x18], 0
jbe 0x420464
mov dword [ebp - 0x2014], 0x2000
mov eax, dword [ebp - 0x2014]
cdq
mov dword [ebp - 0x203c], eax
mov dword [ebp - 0x2038], edx
mov edx, dword [ebp - 0x2038]
cmp edx, dword [ebp + 0x1c]
jl 0x4203db
jg 0x4203d2
mov eax, dword [ebp - 0x203c]
cmp eax, dword [ebp + 0x18]
jbe 0x4203db
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x2014], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x2014]
push ecx
push 1
lea edx, [ebp - 0x2010]
push edx
call fcn.00437c6b
add esp, 0x10
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jg 0x420405
jmp 0x420464
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x2010]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0041d060
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
je 0x420429
jmp 0x420464
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x268]
adc edx, dword [ecx + 0x26c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x268], eax
mov dword [ecx + 0x26c], edx
mov eax, dword [ebp - 4]
cdq
mov ecx, dword [ebp + 0x18]
sub ecx, eax
mov eax, dword [ebp + 0x1c]
sbb eax, edx
mov dword [ebp + 0x18], ecx
mov dword [ebp + 0x1c], eax
jmp 0x420387
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004320d5
mov esp, ebp
pop ebp
ret