Function at 0x4206c4
Capabilities:
Read file on windows

Disassembly:
mov esi, esi
push ebp
mov eax, 0x1020
mov ebp, esp
call fcn.00414fc0
mov eax, dword [0x42a080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.0041fb7a
pop ecx
mov ebx, eax
mov dword [ebp - 0x1018], ebx
xor eax, eax
cmp dword [edi + 4], eax
jge 0x4206fc
mov dword [edi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.00420b00
sub esp, 0xfffffff0
mov esi, eax
mov dword [ebp - 0x1014], esi
mov dword [ebp - 0x1010], edx
or edx, edx
jg 0x42072b
jl 0x420721
or esi, esi
jae 0x42072b
or eax, 0xffffffff
or edx, eax
jmp 0x4209ff
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x5ad720]
mov dword [ebp - 0x101c], eax
and ebx, 0x1f
mov eax, dword [eax]
shl ebx, 6
add eax, ebx
mov cl, byte [eax + 0x24]
add cl, cl
sar cl, 1
test dword [edi + 0xc], 0x108
mov byte [ebp - 0x1005], cl
jne 0x420774
mov eax, dword [edi + 4]
mov ebx, dword [ebp - 0x1010]
cdq
sub esi, eax
sbb ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x4209ff
mov ecx, dword [edi]
mov edx, dword [edi + 0xc]
mov esi, ecx
sub esi, dword [edi + 8]
mov dword [ebp - 0x100c], esi
test dl, 3
je 0x4208e8
cmp byte [ebp - 0x1005], 1
jne 0x4208b4
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x4208b4
shr esi, 1
mov dword [ebp - 0x1020], esi
cmp dword [edi + 4], edx
jne 0x4207c3
mov eax, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
jmp 0x4209ff
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.00420b00
add esp, 0x10
mov esi, eax
mov edi, edx
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
cmp esi, dword [eax + ebx + 0x28]
jne 0x420721
cmp edi, dword [eax + ebx + 0x2c]
jne 0x420721
push 0
lea ecx, [ebp - 0x100c]
push ecx
push 0x1000
lea ecx, [ebp - 0x1004]
push ecx
push dword [eax + ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
or eax, eax
je 0x420721
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.00420b00
add esp, 0x10
or edx, edx
jg 0x42084c
jl 0x420721
or eax, eax
jb 0x420721
mov ecx, dword [ebp - 0x1020]
mov ebx, dword [ebp - 0x100c]
cmp ecx, ebx
ja 0x420721
test ecx, ecx
lea eax, [ebp - 0x1004]
je 0x4208a1
lea edx, [ebp + ebx - 0x1004]
dec ecx
cmp eax, edx
jae 0x4208a1
mov bl, byte [eax]
cmp bl, 0xd
jne 0x420890
lea ebx, [edx - 1]
cmp eax, ebx
jae 0x42089c
lea ebx, [eax + 1]
cmp byte [ebx], 0xa
jne 0x42089c
mov eax, ebx
jmp 0x42089c
movzx ebx, bl
movsx ebx, byte [ebx + 0x42b2c8]
add eax, ebx
inc eax
test ecx, ecx
jne 0x420871
lea ebx, [ebp - 0x1004]
sub eax, ebx
xor edx, edx
add eax, esi
adc edx, edi
jmp 0x4209ff
test byte [eax + 4], 0x80
je 0x4208cf
mov edx, dword [edi + 8]
jmp 0x4208cb
cmp byte [edx], 0xa
jne 0x4208ca
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x4208bf
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x4208fc
mov eax, dword [ebp - 0x100c]
jmp 0x4209ff
test dl, dl
js 0x4208cf
call fcn.0040b4a3
mov dword [eax], 0x16
jmp 0x420721
test byte [edi + 0xc], 1
je 0x4209dc
mov edx, dword [edi + 4]
or edx, edx
jne 0x420918
and dword [ebp - 0x100c], edx
jmp 0x4209dc
sub ecx, dword [edi + 8]
lea esi, [edx + ecx]
test byte [eax + 4], 0x80
je 0x4209c4
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.00420b00
sub esp, 0xfffffff0
cmp eax, dword [ebp - 0x1014]
jne 0x420968
cmp edx, dword [ebp - 0x1010]
jne 0x420968
mov edx, dword [edi + 8]
lea ecx, [edx + esi]
jmp 0x42095b
cmp byte [edx], 0xa
jne 0x42095a
inc esi
inc edx
cmp edx, ecx
jb 0x420954
test dword [edi + 0xc], 0x2000
jmp 0x4209c1
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.00420b00
add esp, 0x10
test edx, edx
jg 0x420996
jl 0x420721
or eax, eax
jb 0x420721
mov ecx, 0x200
cmp esi, ecx
ja 0x4209b1
mov edx, dword [edi + 0xc]
test dl, 8
je 0x4209b1
mov esi, ecx
test edx, 0x400
je 0x4209b4
mov esi, dword [edi + 0x18]
mov edx, dword [ebp - 0x101c]
mov edx, dword [edx]
test byte [edx + ebx + 4], 4
je 0x4209c4
inc esi
cmp byte [ebp - 0x1005], 1
jne 0x4209cf
shr esi, 1
sub dword [ebp - 0x1014], esi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x4209eb
shr dword [ebp - 0x100c], 1
mov eax, dword [ebp - 0x100c]
xor edx, edx
add eax, dword [ebp - 0x1014]
adc edx, dword [ebp - 0x1010]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop edi
pop ebx
call fcn.00408076
leave
ret