Function at 0x40b3af
Capabilities:
Read file on windows

Disassembly:
add byte [eax], al
add byte [ebx + 0x708b0c40], cl
sbb al, 0xad
cmp byte [eax + 0x1c], 0x18
je 0x40b392
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.004091ce
and edx, dword [ecx + 0xf]
les ecx, [ebx + 0x3c478bf8]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.004091ce
sar ch, 0x58
aam 0x49
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x40b3bb
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x40b3bb
call fcn.004091ce
push 0xfffffffffffffff0
and cl, byte [ebx - 0x20fcdba6]
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.004091ce
clc
dec esp
xor esp, dword [edi + edi*8 + 0x75]
or bh, bh
jne 0x40b404
push dword [ebp]
call fcn.004099ce
add dh, byte [ebp + 0x62]
test dl, 0x48
je 0x40b42d
invalid
mov al, byte [eax + 5]
cmp al, 0xa
je 0x40b42d
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
lea eax, [ebp - 0xc]
push 0
push eax
mov eax, dword [ebx]
push dword [ebp + 0x10]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b480
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40b468
mov dword [0x410bd8], 9
mov dword [0x410bdc], ecx
jmp 0x40b5a6
cmp eax, 0x6d
jne 0x40b474
xor eax, eax
jmp 0x40b5a9
push eax
call fcn.00408918
pop ecx
jmp 0x40b5a6
mov eax, dword [ebx]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [eax + esi + 4]
test al, 0x80
je 0x40b590
test edx, edx
je 0x40b4a5
cmp byte [edi], 0xa
jne 0x40b4a5
or al, 4
jmp 0x40b4a7
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x10], eax
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], ecx
jae 0x40b58a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40b57a
cmp al, 0xd
je 0x40b4db
mov byte [edi], al
inc edi
inc dword [ebp + 0x10]
jmp 0x40b56c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40b4f9
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40b4f0
add dword [ebp + 0x10], 2
jmp 0x40b54e
mov byte [edi], 0xd
inc edi
mov dword [ebp + 0x10], eax
jmp 0x40b56c
lea eax, [ebp - 0xc]
push 0
push eax
inc dword [ebp + 0x10]
lea eax, [ebp - 1]
push 1
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40b521
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40b568
cmp dword [ebp - 0xc], 0
je 0x40b568
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x40b543
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40b54e
mov byte [edi], 0xd
mov ecx, dword [ebx]
inc edi
mov byte [ecx + esi + 5], al
jmp 0x40b56c
cmp edi, dword [ebp + 0xc]
jne 0x40b553
cmp byte [ebp - 1], 0xa
jne 0x40b553
mov byte [edi], 0xa
jmp 0x40b56b
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040bd25
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40b56c
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40b4bf
jmp 0x40b58a
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x40b58a
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 8], edi
mov eax, dword [ebp - 8]
jmp 0x40b5a9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret