Function at 0x140008e20
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov esi, r8d
mov r12, rdx
mov rdi, rcx
xor r13d, r13d
mov dword [rbp + 0x80], r13d
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], 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 [rbp + 0x98], rax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x68], rcx
cmp rbx, 0xffffffffffffffff
jne 0x140008f20
xor r9d, r9d
or r8, rbx
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp - 0x58]
call fcn.140010e50
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
or r8, rbx
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x38]
call fcn.1400108c0
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001c6a0]
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll__CxxThrowException
nop
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x80]
mov r8d, esi
mov rdx, r12
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400090f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140009057
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x70]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x140008f91
dec eax
jne 0x140008f20
lea rcx, [rbp + 0x10]
call fcn.1400086a0
lea rdx, [0x14001c708]
lea rcx, [rbp + 0x10]
call sub.MSVCR100.dll__CxxThrowException
int3
mov r9d, 1
lea r8, [rbp + 0x80]
lea rdx, [rsp + 0x70]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1400090f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x140008fda
lea rcx, [rbp - 0x28]
call fcn.1400086a0
lea rdx, [0x14001c708]
lea rcx, [rbp - 0x28]
call sub.MSVCR100.dll__CxxThrowException
int3
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.unexpected_error
lea rcx, [rbp - 0x58]
call fcn.140010e50
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
or r8, 0xffffffffffffffff
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x38]
call fcn.1400108c0
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001c6a0]
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll__CxxThrowException
nop
cmp eax, 0x6d
jne 0x140009076
lea rcx, [rbp - 0x28]
call fcn.1400086a0
lea rdx, [0x14001c708]
lea rcx, [rbp - 0x28]
call sub.MSVCR100.dll__CxxThrowException
int3
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.Read_Error
lea rcx, [rbp - 0x58]
call fcn.140010e50
nop
lea rax, vtable.RSException.0
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x60], r13
or r8, 0xffffffffffffffff
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x38]
call fcn.1400108c0
nop
lea rax, vtable.CMessageException.0
mov qword [rsp + 0x30], rax
lea rdx, [0x14001c6a0]
lea rcx, [rsp + 0x30]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x188]
add rsp, 0x150
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret