Function at 0x1400a9b30
Capabilities:
Create pipe

Disassembly:
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0xa8
mov rax, qword [0x14016b140]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov rsi, rdx
mov dword [rsp + 0x48], reloc.ODBC32.dll_SQLAllocHandle
mov r14, rcx
xor edi, edi
mov edx, 0x90
mov dword [rsp + 0x58], edi
mov rcx, r9
mov qword [rsp + 0x50], rdi
mov r15, r9
mov r13d, r8d
call fcn.1400a0a70
xor edx, edx
mov r8d, 0x90
mov rcx, rax
mov rbx, rax
call fcn.1400c0ac0
mov qword [r14], rbx
mov edx, 0x90
mov qword [rbx], r15
mov rcx, r15
mov rax, qword [r14]
mov qword [rax + 0x38], rdi
mov rax, qword [r14]
mov byte [rax + 0x10], 1
mov rax, qword [r14]
mov qword [rax + 0x20], 0xffffffffffffffff
mov rax, qword [r14]
mov dword [rax + 0x4c], 0xffffffff
mov rax, qword [r14]
mov dword [rax + 0x44], edi
mov rax, qword [r14]
mov qword [rax + 0x80], rdi
mov rax, qword [r14]
mov qword [rax + 0x60], rdi
mov rax, qword [r14]
mov qword [rax + 0x70], rdi
mov rax, qword [r14]
mov dword [rax + 0x78], edi
mov rax, qword [r14]
mov qword [rax + 0x18], rdi
call fcn.1400a0a70
xor edx, edx
mov r8d, 0x90
mov rcx, rax
mov rbx, rax
call fcn.1400c0ac0
mov qword [rsi], rbx
mov qword [rbx], r15
mov rax, qword [rsi]
mov qword [rax + 0x38], rdi
mov rax, qword [rsi]
mov byte [rax + 0x10], 1
mov rax, qword [rsi]
mov qword [rax + 0x20], 0xffffffffffffffff
mov rax, qword [rsi]
mov dword [rax + 0x4c], 0xffffffff
mov rax, qword [rsi]
mov dword [rax + 0x44], edi
mov rax, qword [rsi]
mov qword [rax + 0x80], rdi
mov rax, qword [rsi]
mov qword [rax + 0x60], rdi
mov rax, qword [rsi]
mov qword [rax + 0x70], rdi
mov rax, qword [rsi]
mov dword [rax + 0x78], edi
mov rax, qword [rsi]
mov qword [rax + 0x18], rdi
cmp dword [0x140175f00], 0x1e
jl 0x1400a9e2d
lea eax, [r13 - 2]
mov qword [rsp + 0xa0], rbp
lea ebp, [rdi + 1]
test eax, 0xfffffffd
jne 0x1400a9ccd
lea edx, [rdi + 0x20]
mov rcx, r15
mov ebp, 0x40000001
call fcn.1400a0a70
mov rcx, rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
xor edx, edx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov rax, qword [r14]
mov qword [rax + 0x18], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rdx, rax
mov rax, qword [r14]
mov rcx, qword [rax + 0x18]
mov qword [rcx + 0x18], rdx
mov rax, qword [r14]
mov qword [rax + 0x20], rdi
mov eax, dword [0x14017600c]
mov ebx, eax
inc eax
mov dword [0x14017600c], eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov r8d, eax
lea rdx, str..pipe_apr_pipe__u._lu
mov r9d, ebx
lea rcx, [rsp + 0x60]
call fcn.140014510
lea rax, [rsp + 0x48]
mov r9d, 1
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x30], 1
xor r8d, r8d
mov dword [rsp + 0x28], 0x10000
mov edx, ebp
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov rbp, qword [rsp + 0xa0]
mov ebx, 0x80
mov r8, rax
mov rax, qword [r14]
mov qword [rax + 8], r8
lea eax, [r13 - 2]
cmp eax, 1
ja 0x1400a9d9f
mov edx, 0x20
mov rcx, r15
mov ebx, 0x40000080
call fcn.1400a0a70
mov rcx, rax
xor r9d, r9d
xor eax, eax
xor r8d, r8d
xor edx, edx
mov qword [rcx], rax
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], rax
mov qword [rcx + 0x18], rax
mov rax, qword [rsi]
mov qword [rax + 0x18], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov rdx, rax
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
mov qword [rcx + 0x18], rdx
mov rax, qword [rsi]
mov qword [rax + 0x20], rdi
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], ebx
lea rcx, [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rcx, qword [r14]
lea r9, [fcn.140009ef0]
mov rdx, rcx
lea r8, [fcn.14009fcc0]
mov rcx, qword [rcx]
call fcn.1400a0c60
mov rcx, qword [rsi]
lea r9, [fcn.140009ef0]
mov rdx, rcx
lea r8, [fcn.14009fcc0]
mov rcx, qword [rcx]
call fcn.1400a0c60
xor eax, eax
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140027790
add rsp, 0xa8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret
mov rdx, qword [rsi]
lea r8, [rsp + 0x48]
mov rcx, qword [r14]
add rdx, 8
add rcx, 8
mov r9d, 0x10000
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x1400a9dd2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400a9e66
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea edi, [rax + 0xafc80]
mov eax, edi
jmp 0x1400a9e0c