Function at 0x140009180
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rsp + 0x118], rbx
mov esi, r8d
mov r12, rdx
mov rdi, rcx
cmp qword [rcx + 8], 0xffffffffffffffff
jne 0x1400091ce
lea rcx, [rbp - 0x79]
call fcn.1400086a0
lea rdx, [0x14001c740]
lea rcx, [rbp - 0x79]
call sub.MSVCR100.dll__CxxThrowException
int3
xor r13d, r13d
mov dword [rbp + 0x67], r13d
xor eax, eax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], 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 + 0x7f], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov rax, qword [rdi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rbp - 0x11], rcx
cmp rbx, 0xffffffffffffffff
jne 0x140009290
xor r9d, r9d
or r8, rbx
lea rdx, str.Failed_to_create_connection
lea rcx, [rbp - 1]
call fcn.140010f30
nop
lea rax, vtable.RSException.0
mov qword [rbp - 0x79], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x71], r13d
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
mov qword [rbp - 0x49], r13
or r8, rbx
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x71]
call fcn.1400108c0
nop
lea rax, vtable.CMessageException.0
mov qword [rbp - 0x79], rax
lea rdx, [0x14001c6d8]
lea rcx, [rbp - 0x79]
call sub.MSVCR100.dll__CxxThrowException
nop
nop dword [rax + rax]
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x67]
mov r8d, esi
mov rdx, r12
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400093bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x140009316
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rbp - 0x19]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x1400092f9
dec eax
jne 0x140009290
lea rcx, [rbp - 0x79]
call fcn.1400086a0
lea rdx, [0x14001c740]
lea rcx, [rbp - 0x79]
call sub.MSVCR100.dll__CxxThrowException
int3
mov r9d, 1
lea r8, [rbp + 0x67]
lea rdx, [rbp - 0x39]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x1400093bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
je 0x1400093a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
je 0x1400093a1
xor r9d, r9d
or r8, 0xffffffffffffffff
lea rdx, str.Connection_Closed
lea rcx, [rbp - 1]
call fcn.140010f30
nop
lea rax, vtable.RSException.0
mov qword [rbp - 0x79], rax
lea rax, [rbp - 0x71]
mov qword [rbp - 0x41], rax
mov dword [rbp - 0x71], r13d
mov qword [rbp - 0x69], r13
mov qword [rbp - 0x61], r13
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
mov qword [rbp - 0x49], r13
or r8, 0xffffffffffffffff
lea rdx, [rbp - 1]
lea rcx, [rbp - 0x71]
call fcn.1400108c0
nop
lea rax, vtable.CMessageException.0
mov qword [rbp - 0x79], rax
lea rdx, [0x14001c6d8]
lea rcx, [rbp - 0x79]
call sub.MSVCR100.dll__CxxThrowException
nop
lea rcx, [rbp - 0x79]
call fcn.1400086a0
lea rdx, [0x14001c740]
lea rcx, [rbp - 0x79]
call sub.MSVCR100.dll__CxxThrowException
nop
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x118]
add rsp, 0xe0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret