Function at 0x40ee10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b53b8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4fa008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 3
push 0
push dword [esi + 0x18]
lea ecx, [ebp - 0x6c]
call fcn.0044aef0
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 4], 0
push eax
push 8
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push dword [ebp - 0x68]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ee99
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x40f050
jmp 0x40f03a
cmp dword [ebp - 0x44], 0
je 0x40f083
xor eax, eax
mov cl, byte [ebp + eax - 0x1c]
cmp cl, 0xd
je 0x40eeb3
cmp cl, 0xa
jne 0x40eec1
cmp eax, 9
jae 0x40f035
mov byte [ebp + eax - 0x1c], 0
inc eax
cmp eax, 8
jl 0x40eea5
mov dword [ebp - 0x40], vtable.AnsiStringStorage.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40eef0
sub ecx, edx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ecx + 1]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00429460
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
sub eax, ecx
push eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0049a3f0
add esp, 0xc
mov dword [ebp - 0x54], vtable.StringStorage.0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 4
push eax
push 1
mov ecx, eax
call fcn.00403cc0
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push 0x4cb34c
push ecx
call fcn.0049a3f0
add esp, 0xc
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x40]
call fcn.0044e020
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
push dword [esi + 8]
call fcn.0040f4d0
mov byte [ebp - 4], 6
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0xc]
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], vtable.StringStorage.0
call fcn.00403b90
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], vtable.AnsiStringStorage.0
test edx, edx
je 0x40efef
mov ecx, dword [ebp - 0x34]
mov eax, edx
sub ecx, edx
cmp ecx, 0x1000
jb 0x40efd0
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f099
push ecx
push edx
call fcn.004971f4
add esp, 8
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x6c], vtable.WinFile.0
cmp eax, 0xffffffff
je 0x40f00c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x68], 0xffffffff
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x64], vtable.StringStorage.0
call fcn.00403b90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496cab
mov esp, ebp
pop ebp
ret
call fcn.00497323
lea ecx, [ebp - 0x30]
call fcn.0044bdd0
push 0x4f7c7c
lea eax, [ebp - 0x30]
push eax
call fcn.00498928
lea ecx, [ebp - 0x2c]
call fcn.00403170
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0041c9b0
lea ecx, [ebp - 0x2c]
call fcn.00403320
push eax
lea ecx, [ebp - 0x80]
call fcn.004503b0
push 0x4f7b30
lea eax, [ebp - 0x80]
push eax
call fcn.00498928
lea ecx, [ebp - 0x80]
call fcn.0044bdd0
push 0x4f7c7c
lea eax, [ebp - 0x80]
push eax
call fcn.00498928
call fcn.0049df39
int3