Function at 0x40f780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
push 0x43acd0
push dword [ebp + 8]
call fcn.0041e056
add esp, 8
test eax, eax
je 0x40fa33
mov esi, eax
push 2
push 0
push eax
call fcn.0041a29b
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x40fa54
push esi
call fcn.0041aff6
add esp, 4
test eax, eax
jle 0x40fa54
mov edi, eax
inc eax
push eax
call fcn.004120db
add esp, 4
mov dword [ebp - 0x1c], eax
xor eax, eax
push eax
push eax
push esi
call fcn.0041a29b
add esp, 0xc
test eax, eax
jne 0x40fa48
push esi
push edi
push 1
push dword [ebp - 0x1c]
call fcn.0041fa36
add esp, 0x10
cmp eax, edi
mov eax, dword [ebp - 0x1c]
jne 0x40fa4b
mov byte [eax + edi], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov edi, eax
mov dword [ebp - 0x14], esi
mov eax, edi
movzx ecx, byte [edi]
cmp ecx, 0xa
je 0x40f859
cmp ecx, 0xd
je 0x40f859
test ecx, ecx
je 0x40fa3a
lea esi, [eax + 1]
mov edi, esi
mov edx, ecx
cmp dl, 0xa
je 0x40f85e
movzx edx, dl
cmp edx, 0xd
je 0x40f85e
mov dl, byte [edi]
inc edi
test dl, dl
jne 0x40f841
xor edi, edi
jmp 0x40f864
inc eax
mov edi, eax
jmp 0x40f823
mov byte [edi - 1], 0
mov cl, byte [eax]
cmp cl, 0x23
je 0x40f9cf
movzx edx, cl
cmp edx, 0x3b
je 0x40f9cf
lea edx, [eax + 2]
add eax, 3
movzx ebx, cl
cmp ebx, 0x1f
jg 0x40f88e
cmp ebx, 9
je 0x40f893
jmp 0x40f89a
cmp ebx, 0x20
jne 0x40f8a4
mov cl, byte [esi]
inc esi
inc edx
inc eax
jmp 0x40f87f
test ebx, ebx
je 0x40f9cf
jmp 0x40f8b8
cmp ebx, 0x5b
jne 0x40f8b8
mov ecx, esi
movzx ebx, byte [ecx]
cmp ebx, 0x5d
jne 0x40f8d4
inc ecx
inc edx
inc eax
jmp 0x40f8ab
cmp byte [ebp - 0x10], 0
je 0x40f9cf
lea eax, [esi - 1]
mov dword [ebp - 0x20], eax
cmp cl, 0x3d
jne 0x40f8f5
mov cl, byte [eax + 1]
inc eax
inc esi
jmp 0x40f8c8
test ebx, ebx
jne 0x40f8e4
mov dword [ebp - 0x10], 0
jmp 0x40f991
cmp bl, 0x5d
je 0x40f910
mov bl, byte [ecx + 1]
inc ecx
inc edx
inc eax
test bl, bl
jne 0x40f8e4
jmp 0x40f928
movzx eax, cl
test eax, eax
je 0x40f9cf
cmp cl, 0x3d
je 0x40f932
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x40f900
xor esi, esi
jmp 0x40f936
mov byte [ecx], 0
movzx ecx, byte [edx]
cmp ecx, 9
je 0x40f920
cmp ecx, 0x20
jne 0x40f924
inc edx
inc eax
jmp 0x40f913
test ecx, ecx
jne 0x40f9a1
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40f97b
push eax
jmp 0x40f980
mov byte [esi - 1], 0
cmp dword [ebp + 0xc], 0
je 0x40f9cf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x40f9cf
xor eax, eax
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0x20]
call fcn.00420340
add esp, 8
test eax, eax
je 0x40f9c7
push ebx
call fcn.00420710
add esp, 4
add ebx, eax
inc ebx
mov eax, dword [ebp - 0x18]
inc eax
cmp byte [ebx], 0
jne 0x40f951
jmp 0x40f9cf
push str.Strings
push esi
call fcn.00420340
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x10], eax
mov esi, dword [ebp - 0x14]
test edi, edi
jne 0x40f823
jmp 0x40fa3a
mov esi, dword [ebp - 0x14]
cmp cl, 9
je 0x40f9ba
movzx ecx, cl
cmp ecx, 0x20
je 0x40f9ba
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f9a4
jmp 0x40f9be
mov byte [eax - 1], 0
mov dword [ebp - 0x10], 0
jmp 0x40f994
mov ebx, dword [ebp - 0x18]
cmp ebx, dword [ebp + 0x10]
jb 0x40f9dc
test edi, edi
mov esi, dword [ebp - 0x14]
jne 0x40f823
jmp 0x40fa3a
push esi
call fcn.00420710
add esp, 4
inc eax
mov dword [ebp - 0x20], eax
push eax
call fcn.004120db
add esp, 4
mov ebx, eax
push dword [ebp - 0x20]
push 0
push eax
call fcn.00414cd0
add esp, 0xc
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + edx*4]
mov dword [ecx + edx*4], ebx
test eax, eax
je 0x40fa24
push eax
call fcn.00412343
add esp, 4
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov ebx, dword [eax + ecx*4]
push esi
push ebx
call fcn.004203d0
add esp, 8
inc dword [ebp - 0x24]
jmp 0x40f9cf
mov ebx, 6
jmp 0x40fa5d
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp + 0x10]
setne al
lea ebx, [eax + eax*4]
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00412343
add esp, 4
push esi
call fcn.0041f2e7
add esp, 4
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret