Function at 0x40fd50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
push 0x438464
push dword [ebp + 8]
call fcn.0041db22
add esp, 8
test eax, eax
je 0x40ffd0
mov esi, eax
push 2
push 0
push eax
call fcn.0041a69f
add esp, 0xc
mov ebx, 6
test eax, eax
jne 0x40ffe2
push esi
call fcn.0041b376
add esp, 4
test eax, eax
jle 0x40ffe2
mov edi, eax
inc eax
push eax
call fcn.00412763
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
push esi
call fcn.0041a69f
add esp, 0xc
test eax, eax
jne 0x40ffd7
push esi
push edi
push 1
push dword [ebp - 0x10]
call fcn.0041f44b
add esp, 0x10
cmp eax, edi
jne 0x40ffd7
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov esi, ecx
mov byte [ecx + edi], 0
lea edi, [esi + 1]
lea ecx, [esi + 2]
lea eax, [esi + 3]
mov ebx, esi
jmp 0x40fe04
inc ebx
inc edi
inc ecx
inc eax
movzx edx, byte [ebx]
cmp dl, 0xa
je 0x40fe00
cmp dl, 0xd
je 0x40fe00
test dl, dl
mov esi, edi
mov dh, dl
je 0x40fff5
nop dword [eax]
cmp dh, 0xd
je 0x40fe3d
cmp dh, 0xa
je 0x40fe3d
mov dh, byte [esi]
inc esi
test dh, dh
jne 0x40fe20
xor esi, esi
cmp dl, 0x23
jne 0x40fe4c
jmp 0x40ff41
mov byte [esi - 1], 0
mov dl, byte [ebx]
cmp dl, 0x23
je 0x40ff41
cmp dl, 0x3b
je 0x40ff41
jmp 0x40fe62
cmp dl, 0x20
jne 0x40fe76
movzx edx, byte [edi]
inc edi
inc ecx
inc eax
cmp dl, 0x1f
jg 0x40fe57
cmp dl, 9
je 0x40fe5c
test dl, dl
je 0x40ff41
jmp 0x40fe8a
cmp dl, 0x5b
jne 0x40fe8a
mov edx, edi
movzx ebx, byte [edx]
cmp bl, 0x5d
jne 0x40fed2
inc edx
inc ecx
inc eax
jmp 0x40fe7d
test byte [ebp - 0x14], 1
je 0x40ff41
mov ebx, dword [ebp + 0xc]
lea eax, [edi - 1]
mov dword [ebp - 0x24], eax
cmp dl, 0x3d
jne 0x40fead
movzx edx, byte [eax + 1]
inc eax
inc edi
cmp dl, 0x3d
je 0x40fea2
test dl, dl
je 0x40ff41
cmp dl, 0x3d
je 0x40ff51
movzx edx, byte [edi]
inc edi
test dl, dl
jne 0x40feb5
xor edi, edi
test ebx, ebx
jne 0x40ff59
jmp 0x40ff41
test bl, bl
jne 0x40fedf
mov dword [ebp - 0x14], 0
jmp 0x40ff41
cmp bl, 0x5d
je 0x40fef1
movzx ebx, byte [edx + 1]
inc edx
inc ecx
inc eax
test bl, bl
jne 0x40fedf
jmp 0x40ff09
mov byte [edx], 0
jmp 0x40fef8
inc ecx
inc eax
movzx edx, byte [ecx]
cmp dl, 9
je 0x40fef6
cmp dl, 0x20
je 0x40fef6
test dl, dl
jne 0x40ff13
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x40ff2b
push eax
jmp 0x40ff30
cmp dl, 0x20
je 0x40ff9e
cmp dl, 9
je 0x40ff9e
movzx edx, byte [eax]
inc eax
test dl, dl
jne 0x40ff13
jmp 0x40fed6
push str.Strings
push edi
call fcn.0041fba0
add esp, 8
test eax, eax
sete al
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
test esi, esi
jne 0x40fdf3
jmp 0x40fff8
mov byte [edi - 1], 0
test ebx, ebx
je 0x40ff41
cmp byte [ebx], 0
je 0x40ff41
mov eax, dword [ebp + 0x14]
xor edx, edx
mov ecx, eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
push ebx
push dword [ebp - 0x24]
call fcn.0041fba0
add esp, 8
test eax, eax
je 0x40ffa7
push ebx
call fcn.0041fc30
add esp, 4
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
inc edx
add ecx, 0x258
cmp byte [eax + ebx + 1], 0
lea ebx, [eax + ebx + 1]
jne 0x40ff65
jmp 0x40ff41
mov byte [eax - 1], 0
jmp 0x40fed6
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
jae 0x40ff41
inc dword [ebp - 0x20]
push 0x257
push edi
mov edi, dword [ebp - 0x18]
push edi
call fcn.0041fd40
add esp, 0xc
mov byte [edi + 0x257], 0
jmp 0x40ff41
mov ebx, 6
jmp 0x40ffeb
push dword [ebp - 0x10]
call fcn.0041276c
add esp, 4
push esi
call fcn.0041ee50
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]
push ecx
call fcn.0041276c
add esp, 4
mov esi, dword [ebp - 0x28]
jmp 0x40ffe2