Function at 0x41c704
Capabilities:
Read file on windows

Disassembly:
pushal
popal
push ebp
push esp
pop ebp
mov eax, 0x1020
call fcn.00422640
mov eax, dword [0x42c520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0041a745
mov ebx, eax
sub eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [esi + 4], eax
jge 0x41c73c
mov dword [esi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.0041c61a
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], edx
test edx, edx
jg 0x41c76b
jl 0x41c761
test edi, edi
jae 0x41c76b
or eax, 0xffffffff
or edx, eax
jmp 0x41ca3f
push ebx
pop eax
sar eax, 5
lea eax, [eax*4 + 0x464620]
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 0x41c7b4
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1010]
cdq
sub edi, eax
sbb ecx, edx
mov eax, edi
push ecx
pop edx
jmp 0x41ca3f
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 0x41c928
cmp byte [ebp - 0x1005], 1
jne 0x41c8f4
sub edx, edx
cmp dword [eax + 0x30], edx
je 0x41c8f4
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [esi + 4], edx
jne 0x41c803
mov eax, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
jmp 0x41ca3f
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.0041c61a
mov esi, eax
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
add esp, 0x10
push edx
pop edi
cmp esi, dword [eax + ebx + 0x28]
jne 0x41c761
cmp edi, dword [eax + ebx + 0x2c]
jne 0x41c761
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 0x41c761
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041c61a
add esp, 0x10
or edx, edx
jg 0x41c88c
jl 0x41c761
test eax, eax
jb 0x41c761
mov ecx, dword [ebp - 0x100c]
mov ebx, dword [ebp - 0x1020]
cmp ebx, ecx
ja 0x41c761
lea eax, [ebp - 0x1004]
or ebx, ebx
je 0x41c8e1
lea edx, [ebp + ecx - 0x1004]
dec ebx
cmp eax, edx
jae 0x41c8e1
mov cl, byte [eax]
cmp cl, 0xd
jne 0x41c8d0
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x41c8dc
lea ecx, [eax + 1]
cmp byte [ecx], 0xa
jne 0x41c8dc
push ecx
pop eax
jmp 0x41c8dc
movzx ecx, cl
movsx ecx, byte [ecx + 0x42d098]
add eax, ecx
inc eax
test ebx, ebx
jne 0x41c8b1
lea ecx, [ebp - 0x1004]
sub eax, ecx
sub edx, edx
add eax, esi
adc edx, edi
jmp 0x41ca3f
test byte [eax + 4], 0x80
je 0x41c90f
mov edx, dword [esi + 8]
jmp 0x41c90b
cmp byte [edx], 0xa
jne 0x41c90a
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x41c8ff
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x41c93c
mov eax, dword [ebp - 0x100c]
jmp 0x41ca3f
test dl, dl
js 0x41c90f
call fcn.004189a8
mov dword [eax], 0x16
jmp 0x41c761
test byte [esi + 0xc], 1
je 0x41ca1c
mov edx, dword [esi + 4]
test edx, edx
jne 0x41c958
and dword [ebp - 0x100c], edx
jmp 0x41ca1c
sub ecx, dword [esi + 8]
test byte [eax + 4], 0x80
lea edi, [edx + ecx]
je 0x41ca04
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.0041c61a
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jne 0x41c9a8
cmp edx, dword [ebp - 0x1010]
jne 0x41c9a8
mov eax, dword [esi + 8]
lea ecx, [eax + edi]
jmp 0x41c99b
cmp byte [eax], 0xa
jne 0x41c99a
inc edi
inc eax
cmp eax, ecx
jb 0x41c994
test dword [esi + 0xc], 0x2000
jmp 0x41ca01
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041c61a
add esp, 0x10
test edx, edx
jg 0x41c9d6
jl 0x41c761
or eax, eax
jb 0x41c761
mov eax, 0x200
cmp edi, eax
ja 0x41c9f1
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x41c9f1
push eax
pop edi
test ecx, 0x400
je 0x41c9f4
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
test byte [eax + ebx + 4], 4
je 0x41ca04
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x41ca0f
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x41ca2b
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.00412178
leave
ret