Function at 0x180083ce0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push r15
sub rsp, 0xf8
lea rax, [rcx + 0x1000]
mov esi, r8d
mov r15, rdx
cmp rax, 0x2000
jb 0x1800840a6
movabs rdx, 0xffff800000000000
test rdx, rcx
jne 0x1800840a6
lea rax, [r15 + 0x1000]
cmp rax, 0x2000
jb 0x1800840a6
test rdx, r15
jne 0x1800840a6
test r8d, 0xfffffffc
je 0x180083d50
mov eax, 0xfffffffe
add rsp, 0xf8
pop r15
pop rsi
ret
mov qword [rsp + 0x118], rbx
mov qword [rsp + 0x120], rbp
mov qword [rsp + 0x128], rdi
mov qword [rsp + 0xf0], r12
mov ebp, r8d
mov qword [rsp + 0xe8], r13
and ebp, 1
xor r12d, r12d
mov qword [rsp + 0xe0], r14
nop dword [rax]
mov ebx, 1
lock xadd dword [0x1803d9780], ebx
inc ebx
call sym.VBoxRT.dll_RTProcSelf
lea r8, str..pipeiprt_pipe__u__u
lea rcx, [rsp + 0x60]
mov edx, 0x80
mov r9d, eax
mov dword [rsp + 0x20], ebx
call sym.VBoxRT.dll_RTStrPrintf
mov rbx, r12
test ebp, ebp
je 0x180083de2
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 1
lea rbx, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
mov edi, 8
mov dword [rsp + 0x30], r12d
lea rcx, [rsp + 0x60]
lea r9d, [rdi - 7]
mov edx, 0x40080001
mov r8d, edi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x180083ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180083e6d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
lea r9d, [r13 + 2]
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x40080001
mov dword [rsp + 0x28], 0x10000
mov edi, r12d
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x180083ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x180083eb2
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r12d
lea r9d, [rax - 0x56]
lea rcx, [rsp + 0x60]
mov r8d, edi
mov edx, 0x40000001
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x180083ebc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180083f21
mov r9, r12
test sil, 2
je 0x180083edf
mov dword [rsp + 0x40], 0x18
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r12
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov edx, 0x40000080
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x180083f78
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r13
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xe7
je 0x180083d90
cmp ebx, 5
je 0x180083d90
mov ecx, ebx
call sym.VBoxRT.dll_RTErrConvertFromWin32
mov r14, qword [rsp + 0xe0]
mov r12, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0x128]
mov rbp, qword [rsp + 0x120]
mov rbx, qword [rsp + 0x118]
mov r13, qword [rsp + 0xe8]
add rsp, 0xf8
pop r15
pop rsi
ret
lea rdx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winpipe_win.cpp
mov ecx, 0x98
call sym.VBoxRT.dll_RTMemAllocZTag
mov rbx, rax
test rax, rax
je 0x180084088
lea rdx, str.D:_tinderboxwin_4.2_srcVBoxRuntime_r3winpipe_win.cpp
mov ecx, 0x98
call sym.VBoxRT.dll_RTMemAllocZTag
mov rsi, rax
test rax, rax
je 0x180084079
lea rcx, [rbx + 0x60]
call sym.VBoxRT.dll_RTCritSectInit
mov edi, eax
test eax, eax
js 0x180084067
lea rcx, [rsi + 0x60]
call sym.VBoxRT.dll_RTCritSectInit
mov edi, eax
test eax, eax
js 0x18008405e
mov edx, 1
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], rax
test rax, rax
je 0x180084055
mov edx, 1
xor r9d, r9d
xor ecx, ecx
mov r8d, edx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rsi + 0x38], rax
test rax, rax
je 0x18008404b
mov dword [rbx], 0x19570528
mov dword [rsi], 0x19570528
mov qword [rbx + 8], r13
mov qword [rsi + 8], r14
xor eax, eax
mov byte [rbx + 0x10], 1
mov byte [rsi + 0x10], r12b
mov qword [rbx + 0x58], rax
mov qword [rsi + 0x58], rax
mov rax, qword [rsp + 0x110]
mov qword [rax], rbx
mov qword [r15], rsi
xor eax, eax
jmp 0x180083f3d
mov rcx, qword [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsi + 0x60]
call sym.VBoxRT.dll_RTCritSectDelete
lea rcx, [rbx + 0x60]
call sym.VBoxRT.dll_RTCritSectDelete
mov rcx, rsi
call sym.VBoxRT.dll_RTMemFree
mov rcx, rbx
call sym.VBoxRT.dll_RTMemFree
jmp 0x18008408d
mov rcx, rbx
mov edi, 0xfffffff8
call sym.VBoxRT.dll_RTMemFree
jmp 0x18008408d
mov edi, 0xfffffff8
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x180083f3d
mov eax, 0xfffffffa
add rsp, 0xf8
pop r15
pop rsi
ret