Function at 0x4064d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411be6
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 1
push 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x1c], 0
movdqu xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ecx + 8]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
jne 0x4065be
push 0
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x70]
call fcn.0040e865
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], vtable.RSException.0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x54]
call fcn.0040eeba
push 0x415fd4
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x58], vtable.CMessageException.0
call sub.MSVCR120.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4066ea
call edi
cmp eax, 0x3e5
jne 0x406694
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0x38]
sub eax, 0
je 0x406621
dec eax
jne 0x4065c4
lea ecx, [ebp - 0x58]
call fcn.00405d50
push 0x415fe4
lea eax, [ebp - 0x58]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x4066ea
call edi
cmp eax, 0x6d
jne 0x40665f
lea ecx, [ebp - 0xa8]
call fcn.00405d50
push 0x415fe4
lea eax, [ebp - 0xa8]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.unexpected_error
lea ecx, [ebp - 0x70]
call fcn.0040e865
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405cc0
push 0x415fd4
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCR120.dll__CxxThrowException
cmp eax, 0x6d
jne 0x4066b5
lea ecx, [ebp - 0x8c]
call fcn.00405d50
push 0x415fe4
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCR120.dll__CxxThrowException
push 0
push 0xffffffffffffffff
push str.Read_Error
lea ecx, [ebp - 0x70]
call fcn.0040e865
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x8c]
call fcn.00405cc0
push 0x415fd4
lea eax, [ebp - 0x8c]
push eax
call sub.MSVCR120.dll__CxxThrowException
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410663
mov esp, ebp
pop ebp
ret 8