Function at 0x41148f
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [ebp + 0x10]
mov al, byte [ecx]
cmp al, 0x1a
je 0x4114ca
cmp al, 0xd
je 0x41142b
mov byte [ebx], al
inc ebx
inc ecx
mov eax, dword [ebp - 0xc]
dec eax
cmp ecx, eax
jae 0x41144b
lea eax, [ecx + 1]
cmp byte [eax], 0xa
jne 0x411446
add ecx, 2
mov dword [ebp + 0x10], ecx
mov byte [ebx], 0xa
jmp 0x4114bb
mov dword [ebp + 0x10], eax
jmp 0x4114b8
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0x18]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [esi + eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411473
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4114b8
cmp dword [ebp - 0x18], 0
je 0x4114b8
mov eax, dword [edi]
test byte [esi + eax + 4], 0x48
je 0x411496
cmp byte [ebp - 1], 0xa
je 0x411441
mov byte [ebx], 0xd
mov eax, dword [edi]
mov cl, byte [ebp - 1]
dec dword [eax - 0x14faf9b4]
invalid
dec dword [eax - 0x14faf9b4]
and eax, 0x75f05d3b
push es
cmp ebx, dword [ebp - 0x10]
jne 0x4114a1
cmp byte [ebp - 1], 0xa
je 0x411441
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call 0x41d913
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4114bc
mov byte [ebx], 0xd
inc ebx
mov eax, dword [ebp - 0xc]
cmp dword [ebp + 0x10], eax
jb 0x41140e
jmp 0x4114df
mov eax, dword [edi]
lea eax, [esi + eax + 4]
test byte [eax], 0x40
jne 0x4114da
or byte [eax], 2
jmp 0x4114df
mov al, byte [ecx]
mov byte [ebx], al
inc ebx
mov eax, ebx
sub eax, dword [ebp - 0x10]
cmp byte [ebp - 2], 1
mov dword [ebp - 0xc], eax
jne 0x4115c1
test eax, eax
je 0x4115c1
dec ebx
mov cl, byte [ebx]
test cl, cl
js 0x411506
inc ebx
jmp 0x421e92
xor eax, eax
inc eax
movzx ecx, cl
jmp 0x41151d
cmp eax, 4
jg 0x411526
cmp ebx, dword [ebp - 0x10]
jb 0x411526
dec ebx
movzx ecx, byte [ebx]
inc eax
cmp byte [ecx + 0x420de0], 0
je 0x41150e
mov dl, byte [ebx]
movzx ecx, dl
movsx ecx, byte [ecx + 0x420de0]
test ecx, ecx
jne 0x411543
call 0x417c52
mov dword [eax], 0x2a
jmp 0x4115bd
inc ecx
cmp ecx, eax
jne 0x41154c
add ebx, eax
jmp 0x41158c
mov ecx, dword [edi]
test byte [ecx + esi + 4], 0x48
je 0x41157a
inc ebx
mov byte [ecx + esi + 5], dl
cmp eax, 2
jl 0x411568
mov dl, byte [ebx]
mov ecx, dword [edi]
mov byte [esi + ecx + 0x25], dl
inc ebx
cmp eax, 3
jne 0x411576
mov dl, byte [ebx]
mov ecx, dword [edi]
mov byte [esi + ecx + 0x26], dl
inc ebx
sub ebx, eax
jmp 0x41158c
neg eax
cdq
push 1
push edx
push eax
push dword [ebp + 8]
call 0x41d9ed
add esp, 0x10
mov eax, dword [ebp - 0x1c]
sub ebx, dword [ebp - 0x10]
shr eax, 1
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
push 0
push 0x10aa1e9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4115e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call 0x417cf9
pop ecx
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x4115d0
push eax
call 0x41bc7b
pop ecx
mov eax, dword [ebp - 0x14]
cmp eax, 0xfffffffe
jne 0x411767
mov eax, dword [ebp - 0xc]
jmp 0x42214b
mov eax, dword [ebp - 0xc]
mov edx, dword [edi]
xor ecx, ecx
cmp eax, ebx
setne cl
add eax, eax
mov dword [ebp - 0xc], eax
mov dword [esi + edx + 0x30], ecx
jmp 0x4115c1
pop edi
pop ebx
pop esi
leave