Function at 0x40aaf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
push 0x42beda
push dword [ebp + 8]
call fcn.00413f5c
add esp, 8
test eax, eax
je 0x40ad7a
mov esi, eax
push 2
push 0
push eax
call fcn.00414881
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x40ad8c
push esi
call fcn.00414b5e
add esp, 4
test eax, eax
jle 0x40ad8c
mov edi, eax
inc eax
push eax
call fcn.0040c661
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push esi
call fcn.00414881
add esp, 0xc
test eax, eax
jne 0x40ad81
push esi
push edi
push 1
push dword [ebp - 0x10]
call fcn.0041466e
add esp, 0x10
cmp eax, edi
jne 0x40ad81
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov esi, eax
mov byte [eax + edi], 0
lea edi, [esi + 1]
lea ecx, [esi + 2]
lea eax, [esi + 3]
mov ebx, esi
jmp 0x40aba4
inc ebx
inc edi
inc ecx
inc eax
movzx edx, byte [ebx]
cmp dl, 0xa
je 0x40aba0
cmp dl, 0xd
je 0x40aba0
test dl, dl
mov esi, edi
mov dh, dl
je 0x40ad9f
nop
nop
nop
cmp dh, 0xd
je 0x40abdd
cmp dh, 0xa
je 0x40abdd
mov dh, byte [esi]
inc esi
test dh, dh
jne 0x40abc0
xor esi, esi
cmp dl, 0x23
jne 0x40abec
jmp 0x40ace8
mov byte [esi - 1], 0
mov dl, byte [ebx]
cmp dl, 0x23
je 0x40ace8
cmp dl, 0x3b
je 0x40ace8
jmp 0x40ac06
movzx edx, byte [edi]
inc edi
inc ecx
inc eax
cmp dl, 0x1f
jg 0x40ac12
cmp dl, 9
je 0x40ac00
jmp 0x40ac4d
cmp dl, 0x20
je 0x40ac00
cmp dl, 0x5b
jne 0x40ac55
mov edx, edi
jmp 0x40ac23
inc edx
inc ecx
inc eax
movzx ebx, byte [edx]
cmp bl, 0x5d
je 0x40ac20
test bl, bl
jne 0x40ac3b
mov dword [ebp - 0x14], 0
jmp 0x40ace8
cmp bl, 0x5d
je 0x40ac91
movzx ebx, byte [edx + 1]
inc edx
inc ecx
inc eax
test bl, bl
jne 0x40ac3b
jmp 0x40aca9
test dl, dl
je 0x40ace8
test byte [ebp - 0x14], 1
je 0x40ace8
mov ecx, dword [ebp + 0xc]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dl, 0x3d
jne 0x40ac78
movzx edx, byte [eax + 1]
inc eax
inc edi
cmp dl, 0x3d
je 0x40ac6d
test dl, dl
je 0x40ace8
cmp dl, 0x3d
je 0x40acf8
movzx edx, byte [edi]
inc edi
test dl, dl
jne 0x40ac7c
xor edi, edi
test ecx, ecx
jne 0x40ad00
jmp 0x40ace8
mov byte [edx], 0
jmp 0x40ac98
inc ecx
inc eax
movzx edx, byte [ecx]
cmp dl, 9
je 0x40ac96
cmp dl, 0x20
je 0x40ac96
test dl, dl
jne 0x40acb3
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40acd2
push eax
jmp 0x40acd7
cmp dl, 0x20
je 0x40ad48
cmp dl, 9
je 0x40ad48
movzx edx, byte [eax]
inc eax
test dl, dl
jne 0x40acb3
jmp 0x40ac2f
push str.Strings
push edi
call fcn.00415440
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
test esi, esi
jne 0x40ab93
jmp 0x40ada2
mov byte [edi - 1], 0
test ecx, ecx
je 0x40ace8
cmp byte [ecx], 0
je 0x40ace8
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x18], 0
mov edx, eax
mov dword [ebp - 0x1c], edx
push ebx
push dword [ebp - 0x24]
call fcn.00415440
add esp, 8
test eax, eax
je 0x40ad51
push ebx
call fcn.004154d0
add esp, 4
mov edx, dword [ebp - 0x1c]
inc dword [ebp - 0x18]
add edx, 0x258
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x40ad13
jmp 0x40ace8
mov byte [eax - 1], 0
jmp 0x40ac2f
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jae 0x40ace8
push 0x257
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.004155e0
add esp, 0xc
inc dword [ebp - 0x20]
mov byte [edi + 0x257], 0
jmp 0x40ace8
mov ebx, 6
jmp 0x40ad95
push dword [ebp - 0x10]
call fcn.0040c66a
add esp, 4
push esi
call fcn.0041401f
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
xor eax, eax
cmp edx, dword [ebp + 0x10]
setne al
lea ebx, [eax + eax*4]
sub esp, 4
mov dword [esp], ecx
call fcn.0040c66a
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x40ad8c