Function at 0x41a220
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00406688
mov eax, dword [0x4224ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00416aa7
mov ebx, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [esi + 4], eax
jge 0x41a222
mov dword [esi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.00402e2f
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], edx
test edx, edx
jg 0x41a251
jl 0x41a247
test edi, edi
jae 0x41a251
or eax, 0xffffffff
or edx, eax
jmp 0x41a525
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x425bc0]
and ebx, 0x1f
mov dword [ebp - 0x101c], eax
mov eax, dword [eax]
shl ebx, 6
add eax, ebx
mov cl, byte [eax + 0x24]
add cl, cl
sar cl, 1
test dword [esi + 0xc], 0x108
mov byte [ebp - 0x1005], cl
jne 0x41a29a
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1010]
cdq
sub edi, eax
sbb ecx, edx
mov eax, edi
mov edx, ecx
jmp 0x41a525
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
mov edi, ecx
sub edi, dword [esi + 8]
mov dword [ebp - 0x100c], edi
test dl, 3
je 0x41a40e
cmp byte [ebp - 0x1005], 1
jne 0x41a3da
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x41a3da
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [esi + 4], edx
jne 0x41a2e9
mov eax, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
jmp 0x41a525
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.00402e2f
mov esi, eax
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
add esp, 0x10
mov edi, edx
cmp esi, dword [eax + ebx + 0x28]
jne 0x41a247
cmp edi, dword [eax + ebx + 0x2c]
jne 0x41a247
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]
test eax, eax
je 0x41a247
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.00402e2f
add esp, 0x10
test edx, edx
jg 0x41a372
jl 0x41a247
test eax, eax
jb 0x41a247
mov ecx, dword [ebp - 0x100c]
mov ebx, dword [ebp - 0x1020]
cmp ebx, ecx
ja 0x41a247
lea eax, [ebp - 0x1004]
test ebx, ebx
je 0x41a3c7
lea edx, [ebp + ecx - 0x1004]
dec ebx
cmp eax, edx
jae 0x41a3c7
mov cl, byte [eax]
cmp cl, 0xd
jne 0x41a3b6
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x41a3c2
lea ecx, [eax + 1]
cmp byte [ecx], 0xa
jne 0x41a3c2
mov eax, ecx
jmp 0x41a3c2
movzx ecx, cl
movsx ecx, byte [ecx + 0x423a68]
add eax, ecx
inc eax
test ebx, ebx
jne 0x41a397
lea ecx, [ebp - 0x1004]
sub eax, ecx
xor edx, edx
add eax, esi
adc edx, edi
jmp 0x41a525
test byte [eax + 4], 0x80
je 0x41a3f5
mov edx, dword [esi + 8]
jmp 0x41a3f1
cmp byte [edx], 0xa
jne 0x41a3f0
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x41a3e5
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x41a422
mov eax, dword [ebp - 0x100c]
jmp 0x41a525
test dl, dl
js 0x41a3f5
call fcn.00414fea
mov dword [eax], 0x16
jmp 0x41a247
test byte [esi + 0xc], 1
je 0x41a502
mov edx, dword [esi + 4]
test edx, edx
jne 0x41a43e
and dword [ebp - 0x100c], edx
jmp 0x41a502
sub ecx, dword [esi + 8]
test byte [eax + 4], 0x80
lea edi, [edx + ecx]
je 0x41a4ea
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.00402e2f
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jne 0x41a48e
cmp edx, dword [ebp - 0x1010]
jne 0x41a48e
mov eax, dword [esi + 8]
lea ecx, [eax + edi]
jmp 0x41a481
cmp byte [eax], 0xa
jne 0x41a480
inc edi
inc eax
cmp eax, ecx
jb 0x41a47a
test dword [esi + 0xc], 0x2000
jmp 0x41a4e7
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.00402e2f
add esp, 0x10
test edx, edx
jg 0x41a4bc
jl 0x41a247
test eax, eax
jb 0x41a247
mov eax, 0x200
cmp edi, eax
ja 0x41a4d7
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x41a4d7
mov edi, eax
test ecx, 0x400
je 0x41a4da
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
test byte [eax + ebx + 4], 4
je 0x41a4ea
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x41a4f5
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x41a511
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]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e15c
leave
ret