Function at 0x41b7b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
push esp
pop ebp
mov eax, 0x1020
call fcn.004216d0
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.004197d5
push eax
pop ebx
sub eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [esi + 4], eax
jge 0x41b7eb
mov dword [esi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.0041b6c9
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x1014], edi
mov dword [ebp - 0x1010], edx
or edx, edx
jg 0x41b81a
jl 0x41b810
test edi, edi
jae 0x41b81a
or eax, 0xffffffff
or edx, eax
jmp 0x41baee
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x459ae0]
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 0x41b863
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1010]
cdq
sub edi, eax
sbb ecx, edx
mov eax, edi
mov edx, ecx
jmp 0x41baee
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 0x41b9d7
cmp byte [ebp - 0x1005], 1
jne 0x41b9a3
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x41b9a3
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [esi + 4], edx
jne 0x41b8b2
mov eax, dword [ebp - 0x1014]
mov edx, dword [ebp - 0x1010]
jmp 0x41baee
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.0041b6c9
push eax
pop esi
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
add esp, 0x10
push edx
pop edi
cmp esi, dword [eax + ebx + 0x28]
jne 0x41b810
cmp edi, dword [eax + ebx + 0x2c]
jne 0x41b810
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 0x41b810
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041b6c9
add esp, 0x10
test edx, edx
jg 0x41b93b
jl 0x41b810
test eax, eax
jb 0x41b810
mov ecx, dword [ebp - 0x100c]
mov ebx, dword [ebp - 0x1020]
cmp ebx, ecx
ja 0x41b810
lea eax, [ebp - 0x1004]
test ebx, ebx
je 0x41b990
lea edx, [ebp + ecx - 0x1004]
dec ebx
cmp eax, edx
jae 0x41b990
mov cl, byte [eax]
cmp cl, 0xd
jne 0x41b97f
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x41b98b
lea ecx, [eax + 1]
cmp byte [ecx], 0xa
jne 0x41b98b
push ecx
pop eax
jmp 0x41b98b
movzx ecx, cl
movsx ecx, byte [ecx + 0x42c098]
add eax, ecx
inc eax
or ebx, ebx
jne 0x41b960
lea ecx, [ebp - 0x1004]
sub eax, ecx
sub edx, edx
add eax, esi
adc edx, edi
jmp 0x41baee
test byte [eax + 4], 0x80
je 0x41b9be
mov edx, dword [esi + 8]
jmp 0x41b9ba
cmp byte [edx], 0xa
jne 0x41b9b9
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x41b9ae
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x41b9eb
mov eax, dword [ebp - 0x100c]
jmp 0x41baee
test dl, dl
js 0x41b9be
call fcn.00417a38
mov dword [eax], 0x16
jmp 0x41b810
test byte [esi + 0xc], 1
je 0x41bacb
mov edx, dword [esi + 4]
or edx, edx
jne 0x41ba07
and dword [ebp - 0x100c], edx
jmp 0x41bacb
sub ecx, dword [esi + 8]
test byte [eax + 4], 0x80
lea edi, [edx + ecx]
je 0x41bab3
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.0041b6c9
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jne 0x41ba57
cmp edx, dword [ebp - 0x1010]
jne 0x41ba57
mov eax, dword [esi + 8]
lea ecx, [eax + edi]
jmp 0x41ba4a
cmp byte [eax], 0xa
jne 0x41ba49
inc edi
inc eax
cmp eax, ecx
jb 0x41ba43
test dword [esi + 0xc], 0x2000
jmp 0x41bab0
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041b6c9
add esp, 0x10
or edx, edx
jg 0x41ba85
jl 0x41b810
or eax, eax
jb 0x41b810
mov eax, 0x200
cmp edi, eax
ja 0x41baa0
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x41baa0
mov edi, eax
test ecx, 0x400
je 0x41baa3
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
test byte [eax + ebx + 4], 4
je 0x41bab3
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x41babe
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x41bada
shr dword [ebp - 0x100c], 1
mov eax, dword [ebp - 0x100c]
sub 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.004113cb
leave
ret