Function at 0x140006390
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
sub rsp, 0x150
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
xor r12d, r12d
mov dword [r11 + 8], r12d
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [r11 - 0xe8], rax
mov qword [r11 - 0xe0], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rbx, rax
mov qword [rsp + 0x188], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rsp + 0x98], rcx
cmp rbx, 0xffffffffffffffff
jne 0x1400064a5
xor r9d, r9d
or r8, rbx
lea rdx, str.Failed_to_create_connection
lea rcx, [rsp + 0xa8]
call fcn.14000e3c0
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
or r8, rbx
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.14000ea70
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001f370]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x170]
mov r8d, esi
mov rdx, rbp
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400066a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1400065fb
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140006524
cmp eax, 1
jne 0x1400064a5
lea rcx, [rsp + 0x110]
call fcn.140005bd0
lea rdx, [0x14001f3d8]
lea rcx, [rsp + 0x110]
call sub.MSVCR90.dll__CxxThrowException
int3
mov r9d, 1
lea r8, [rsp + 0x170]
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400066a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140006576
lea rcx, [rsp + 0xd8]
call fcn.140005bd0
lea rdx, [0x14001f3d8]
lea rcx, [rsp + 0xd8]
call sub.MSVCR90.dll__CxxThrowException
int3
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.unexpected_error
lea rcx, [rsp + 0xa8]
call fcn.14000e3c0
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.14000ea70
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001f370]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
nop
cmp eax, 0x6d
jne 0x140006622
lea rcx, [rsp + 0xd8]
call fcn.140005bd0
lea rdx, [0x14001f3d8]
lea rcx, [rsp + 0xd8]
call sub.MSVCR90.dll__CxxThrowException
int3
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.Read_Error
lea rcx, [rsp + 0xa8]
call fcn.14000e3c0
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
or r8, 0xffffffffffffffff
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x38]
call fcn.14000ea70
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001f370]
lea rcx, [rsp + 0x30]
call sub.MSVCR90.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret