Function at 0x41bc9e
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1020
mov edi, edi
push ebp
mov ebp, esp
call fcn.00423660
mov eax, dword [0x432680]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0041adc1
mov ebx, eax
xor eax, eax
pop ecx
mov dword [ebp - 0x1018], ebx
cmp dword [esi + 4], eax
jge 0x41bcd6
mov dword [esi + 4], eax
push 1
push eax
push eax
push ebx
call fcn.0041c0da
add esp, 0x10
mov edi, eax
mov dword [ebp - 0x1014], edi
test edx, edx
mov dword [ebp - 0x1010], edx
jg 0x41bd05
jl 0x41bcfb
test edi, edi
jae 0x41bd05
or eax, 0xffffffff
or edx, eax
jmp 0x41bfd9
mov eax, ebx
sar eax, 5
lea eax, [eax*4 + 0x4349e0]
mov dword [ebp - 0x101c], eax
mov eax, dword [eax]
and ebx, 0x1f
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 0x41bd4e
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1010]
cdq
sub edi, eax
sbb ecx, edx
mov eax, edi
mov edx, ecx
jmp 0x41bfd9
mov ecx, dword [esi]
mov edi, ecx
mov edx, dword [esi + 0xc]
sub edi, dword [esi + 8]
test dl, 3
mov dword [ebp - 0x100c], edi
je 0x41bec2
cmp byte [ebp - 0x1005], 1
jne 0x41be8e
xor edx, edx
cmp dword [eax + 0x30], edx
je 0x41be8e
shr edi, 1
mov dword [ebp - 0x1020], edi
cmp dword [esi + 4], edx
jne 0x41bd9d
mov edx, dword [ebp - 0x1010]
mov eax, dword [ebp - 0x1014]
jmp 0x41bfd9
push edx
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [ebp - 0x1018]
call fcn.0041c0da
mov edi, edx
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
cmp esi, dword [eax + ebx + 0x28]
jne 0x41bcfb
cmp edi, dword [eax + ebx + 0x2c]
jne 0x41bcfb
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 0x41bcfb
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041c0da
add esp, 0x10
test edx, edx
jg 0x41be26
jl 0x41bcfb
test eax, eax
jb 0x41bcfb
mov ebx, dword [ebp - 0x1020]
mov ecx, dword [ebp - 0x100c]
cmp ebx, ecx
ja 0x41bcfb
lea eax, [ebp - 0x1004]
test ebx, ebx
je 0x41be7b
lea edx, [ebp + ecx - 0x1004]
dec ebx
cmp eax, edx
jae 0x41be7b
mov cl, byte [eax]
cmp cl, 0xd
jne 0x41be6a
lea ecx, [edx - 1]
cmp eax, ecx
jae 0x41be76
lea ecx, [eax + 1]
cmp byte [ecx], 0xa
jne 0x41be76
mov eax, ecx
jmp 0x41be76
movzx ecx, cl
movsx ecx, byte [ecx + 0x4331b8]
add eax, ecx
inc eax
test ebx, ebx
jne 0x41be4b
lea ecx, [ebp - 0x1004]
sub eax, ecx
xor edx, edx
add eax, esi
adc edx, edi
jmp 0x41bfd9
test byte [eax + 4], 0x80
je 0x41bea9
mov edx, dword [esi + 8]
jmp 0x41bea5
cmp byte [edx], 0xa
jne 0x41bea4
inc dword [ebp - 0x100c]
inc edx
cmp edx, ecx
jb 0x41be99
mov edx, dword [ebp - 0x1014]
or edx, dword [ebp - 0x1010]
jne 0x41bed6
mov eax, dword [ebp - 0x100c]
jmp 0x41bfd9
test dl, dl
js 0x41bea9
call fcn.00414d33
mov dword [eax], 0x16
jmp 0x41bcfb
test byte [esi + 0xc], 1
je 0x41bfb6
mov edx, dword [esi + 4]
test edx, edx
jne 0x41bef2
and dword [ebp - 0x100c], edx
jmp 0x41bfb6
sub ecx, dword [esi + 8]
test byte [eax + 4], 0x80
lea edi, [edx + ecx]
je 0x41bf9e
push 2
push 0
push 0
push dword [ebp - 0x1018]
call fcn.0041c0da
add esp, 0x10
cmp eax, dword [ebp - 0x1014]
jne 0x41bf42
cmp edx, dword [ebp - 0x1010]
jne 0x41bf42
mov eax, dword [esi + 8]
lea ecx, [eax + edi]
jmp 0x41bf35
cmp byte [eax], 0xa
jne 0x41bf34
inc edi
inc eax
cmp eax, ecx
jb 0x41bf2e
test dword [esi + 0xc], 0x2000
jmp 0x41bf9b
push 0
push dword [ebp - 0x1010]
push dword [ebp - 0x1014]
push dword [ebp - 0x1018]
call fcn.0041c0da
add esp, 0x10
test edx, edx
jg 0x41bf70
jl 0x41bcfb
test eax, eax
jb 0x41bcfb
mov eax, 0x200
cmp edi, eax
ja 0x41bf8b
mov ecx, dword [esi + 0xc]
test cl, 8
je 0x41bf8b
mov edi, eax
test ecx, 0x400
je 0x41bf8e
mov edi, dword [esi + 0x18]
mov eax, dword [ebp - 0x101c]
mov eax, dword [eax]
test byte [eax + ebx + 4], 4
je 0x41bf9e
inc edi
cmp byte [ebp - 0x1005], 1
jne 0x41bfa9
shr edi, 1
sub dword [ebp - 0x1014], edi
sbb dword [ebp - 0x1010], 0
cmp byte [ebp - 0x1005], 1
jne 0x41bfc5
shr dword [ebp - 0x100c], 1
mov eax, dword [ebp - 0x100c]
xor edx, edx
add eax, dword [ebp - 0x1014]
adc edx, dword [ebp - 0x1010]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
pop ebx
call fcn.00412a15
leave
ret