Function at 0x406190
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411b86
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 - 0x54], ecx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push 0
push 0
push 1
push 0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], 0
movdqu xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
mov dword [ebp - 0x3c], esi
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 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 0x40627e
push 0
push esi
push str.Failed_to_create_connection
lea ecx, [ebp - 0x70]
call fcn.0040e865
lea eax, [ebp - 0x34]
mov dword [ebp - 0x38], vtable.RSException.0
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push esi
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x34]
call fcn.0040eeba
push 0x415fd4
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x38], vtable.CMessageException.0
call sub.MSVCR120.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x58]
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406418
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4063c2
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call edi
test eax, eax
je 0x406316
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call edi
cmp eax, 1
je 0x406316
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x406306
cmp eax, 0xffffffff
je 0x406418
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call edi
test eax, eax
jne 0x4062c4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x18]
push eax
push 2
call edi
sub eax, 0
je 0x406348
dec eax
je 0x406332
mov ecx, dword [ebp - 0x54]
jmp 0x406284
lea ecx, [ebp - 0x38]
call fcn.00405d50
push 0x415fe4
lea eax, [ebp - 0x38]
push eax
call sub.MSVCR120.dll__CxxThrowException
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x1c]
push 1
push eax
lea eax, [ebp - 0x50]
push eax
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x406418
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x40638d
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 0x4063e3
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