Function at 0x180016c00
Capabilities:
Create pipe

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rbp + 8], 0xfffffffffffffffe
mov qword [rsp + 0x208], rbx
mov rax, qword [0x1800a5088]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov qword [rbp - 0x48], r9
mov qword [rbp - 0x68], r8
mov dword [rsp + 0x74], edx
mov qword [rbp - 0x10], rcx
mov rdi, qword [rbp + 0x120]
mov qword [rbp - 0x60], rdi
mov rax, qword [rbp + 0x128]
mov qword [rbp - 0x38], rax
mov rax, qword [rbp + 0x130]
mov qword [rbp - 0x50], rax
movdqa xmm0, xmmword [0x18009b600]
movdqu xmmword [rbp + 0x50], xmm0
mov byte [rbp + 0x40], 0
mov ecx, edx
lea eax, [rdx + 6]
mov dword [rsp + 0x78], eax
mov edx, 0x100
mov r12d, 3
mov r10d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x60]
mov r15, qword [rbp - 0x78]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x58], r11d
movzx esi, word [rsp + 0x40]
cmp ecx, eax
mov rax, qword [rbp - 0x78]
jae 0x180016e0d
lea ebx, [rcx - 0x2c]
lea edi, [r12 + 3]
mov r14d, 0x7453
lea r13d, [r12 + 0x71]
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x58], rax
nop word [rax + rax]
cmp ebx, 0x10
ja case.0x180016cfb.2
lea r9, [0x180000000]
mov ecx, dword [r9 + rbx*4 + 0x17550]
add rcx, r9
jmp rcx
mov word [rbp + 0x78], r14w
mov byte [rbp + 0x7a], 0
mov r8d, 4
lea rdx, [0x1800944a2]
lea rcx, [rbp + 0x78]
call fcn.180062ed0
xor eax, eax
mov qword [rbp - 0x80], rax
mov r10d, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x58]
mov r8, qword [rbp - 0x68]
mov edx, 0x100
jmp case.0x180016cfb.2
movzx eax, word [0x1800944a8]
mov word [rbp + 0x65], ax
movzx eax, byte [0x1800944aa]
mov byte [rbp + 0x67], al
mov r8, r12
lea rdx, [0x1800944ac]
lea rcx, [rbp + 0x60]
call fcn.180062ed0
mov word [rbp + 0x6a], r13w
mov dword [rbp + 0x98], 0x77
jmp 0x180016d22
mov byte [rbp + 0x60], 0
mov r8, r12
lea rdx, [0x1800944b0]
lea rcx, [rbp + 0x60]
call fcn.180062ed0
movzx eax, word [0x1800944b4]
mov word [rbp + 0x63], ax
movzx eax, byte [0x1800944b6]
mov byte [rbp + 0x65], al
jmp 0x180016d22
mov dword [rbp + 0x9a], 0x73
jmp case.0x180016cfb.2
xor eax, eax
mov r10d, eax
mov dword [rsp + 0x40], eax
mov r11d, eax
mov dword [rsp + 0x58], eax
mov r15, r8
mov esi, eax
mov rax, r8
nop word [rax + rax]
mov byte [rax], sil
inc si
lea rax, [rax + 1]
cmp si, dx
jb 0x180016dd0
jmp case.0x180016cfb.2
xor ecx, ecx
mov dword [rsp + 0x70], ecx
mov dword [rsp + 0x60], ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x18], rcx
inc ebx
sub rdi, 1
jne 0x180016ce0
mov rdi, qword [rbp - 0x60]
mov r9, qword [rbp - 0x48]
mov ecx, dword [rsp + 0x74]
jmp 0x180016e19
mov qword [rbp - 0x80], rax
mov rax, qword [rbp - 0x78]
mov qword [rbp - 0x58], rax
mov dword [rsp + 0x5c], ecx
lea eax, [rcx - 7]
mov dword [rsp + 0x48], eax
mov ebx, 1
movzx r14d, byte [rsp + 0x40]
cmp ecx, eax
jbe 0x18001719c
lea edx, [rcx - 0x2a]
mov dword [rbp - 0x70], edx
movzx eax, byte [rsp + 0x40]
mov dword [rsp + 0x4c], eax
mov r8d, dword [rsp + 0x78]
mov qword [rsp + 0x68], r8
mov r13d, dword [rbp - 0x6c]
mov dword [rsp + 0x50], r13d
mov eax, ecx
mov ecx, dword [rsp + 0x48]
nop
cmp edx, 0x10
ja case.default.0x180016e7c
mov eax, edx
lea rdx, [0x180000000]
mov ecx, dword [rdx + rax*4 + 0x17594]
add rcx, rdx
jmp rcx
mov r8d, 9
lea rdx, str.2_32.dll
lea rcx, [rbp + 0x9c]
call fcn.18005c2b0
mov eax, dword [str.sock]
mov dword [rbp + 0x70], eax
movzx eax, byte [0x1800944d8]
mov byte [rbp + 0x74], al
jmp 0x18001713b
xor dl, dl
mov dword [rsp + 0x4c], edx
xor eax, eax
mov qword [rbp - 0x40], rax
jmp 0x18001714e
lea rax, [rbp + 0x78]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x180016ed0
mov qword [rsp + 0x68], r8
mov rax, qword [rbp - 0x68]
mov word [rax + 0x100], 0
xor ecx, ecx
mov dword [rbp - 0x6c], ecx
jmp case.0x180016e7c.3
mov dword [rsp + 0x50], r12d
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x18]
mov rdx, qword [0x1800af360]
mov ecx, 0xb0
call fcn.1800282c0
test eax, eax
jne 0x180017194
xor eax, eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8, [rsp + 0x70]
mov rdx, qword [0x1800af360]
mov ecx, 0xae
call fcn.1800298d0
mov r13d, eax
mov dword [rsp + 0x50], eax
jmp 0x18001713b
xor r14b, r14b
xor eax, eax
movzx esi, ax
mov dword [rsp + 0x38], eax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp - 0x6c]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r9, [rbp + 0x78]
mov r8d, r11d
mov edx, r10d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.USER32.dll_TabbedTextOutA]
jmp 0x18001713b
movzx eax, word [0x1800944dc]
mov word [rbp + 0x74], ax
movzx eax, byte [0x1800944de]
mov byte [rbp + 0x76], al
mov r8d, 2
lea rdx, [0x18008f8f8]
lea rcx, [rbp + 0x80]
call fcn.18005c2b0
lea rax, [rbp + 0x80]
sub rax, 2
nop dword [rax]
lea rax, [rax + 2]
cmp word [rax], 0
jne 0x180016fc0
movsd xmm0, qword [0x180091138]
movsd qword [rax], xmm0
movsd xmm1, qword [str.32.dl]
movsd qword [rbp + 0x88], xmm1
mov eax, dword [0x1800944e8]
mov dword [rbp + 0x90], eax
jmp 0x18001713b
test r13d, r13d
jne 0x180017191
mov eax, dword [rsp + 0x70]
cmp eax, dword [r9]
ja 0x18001739d
mov r8, qword [0x1800a9db8]
lea rdx, [rsp + 0x60]
lea ecx, [r13 + 0x20]
call fcn.180010640
mov rdx, rax
mov qword [rbp - 0x58], rax
test rax, rax
je 0x180017179
mov ecx, dword [rsp + 0x60]
test ecx, ecx
je 0x180017179
cmp dword [rdi], ecx
jae 0x180017179
xor eax, eax
mov r12d, eax
cmp dword [rsp + 0x70], eax
jbe 0x180017135
nop word [rax + rax]
mov edi, 0x6a
mov eax, edi
sub eax, 0x6a
je 0x180017095
cmp eax, 0x2b
jne 0x180017118
test r13d, r13d
je 0x180017118
mov r13, qword [rbp - 0x80]
mov qword [rsp + 0x68], r13
mov r12, qword [rbp - 0x80]
movzx edi, byte [rsp + 0x40]
jmp 0x180017209
mov dword [rsp + 0x50], r12d
lea rax, [rbp + 0x10]
mov qword [rsp + 0x20], rax
mov r9, qword [0x1800af360]
mov r8d, 0xe
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1800a9db8]
call fcn.1800219d0
mov r13d, eax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x180017109
mov dword [rsp + 0x50], r12d
mov r8d, 0x88
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.180039cf0
mov r13d, eax
mov dword [rsp + 0x50], eax
test eax, eax
jne 0x180017109
mov rax, qword [rbp - 0x60]
mov ecx, dword [rax]
mov edx, r12d
mov rax, qword [rbp + 0x38]
mov rcx, qword [rax + rcx*8]
mov rax, qword [rbp - 0x38]
mov qword [rax + rdx*8], rcx
xor edx, edx
lea r8d, [rdx + 0x16]
lea rcx, [rbp + 0x10]
call fcn.18000d760
add edi, 0x2b
cmp edi, 0xc0
jb 0x180017065
inc r12d
cmp r12d, dword [rsp + 0x70]
jb 0x180017060
mov r12d, 3
mov r11d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x40]
mov r8, qword [rsp + 0x68]
mov edx, dword [rsp + 0x4c]
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x48]
dec eax
mov dword [rsp + 0x5c], eax
dec dword [rbp - 0x70]
cmp eax, ecx
jbe 0x1800171b0
mov rdi, qword [rbp - 0x60]
mov edx, dword [rbp - 0x70]
mov r9, qword [rbp - 0x48]
jmp 0x180016e60
mov edx, dword [rsp + 0x4c]
jmp 0x180017156
mov dword [rsp + 0x50], ebx
mov r13, qword [rbp - 0x80]
mov qword [rsp + 0x68], r13
mov r12, qword [rbp - 0x80]
movzx edi, byte [rsp + 0x40]
jmp 0x18001720d
mov r12d, r13d
mov ebx, r12d
jmp 0x18001739d
movzx edx, byte [rsp + 0x40]
mov dword [rsp + 0x4c], edx
mov r8d, dword [rbp - 0x6c]
mov dword [rsp + 0x50], r8d
jmp 0x1800171b9
mov r8d, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x74]
mov r13d, ecx
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x68], rax
mov r12, qword [rbp - 0x80]
movzx edi, byte [rsp + 0x40]
mov dword [rsp + 0x60], r13d
cmp r13d, dword [rsp + 0x78]
jae 0x180017404
lea eax, [r13 - 0x2c]
cmp eax, 0xf
ja case.0x1800171fd.45
lea r9, [0x180000000]
mov ecx, dword [r9 + rax*4 + 0x175d8]
add rcx, r9
jmp rcx
mov eax, dword [rsp + 0x70]
mov rcx, qword [rbp - 0x68]
mov dword [rcx], eax
mov rdx, qword [rbp - 0x58]
mov r13d, 0x33
test rdx, rdx
je case.0x1800171fd.45
mov rcx, rdx
call fcn.180062c04
inc r13d
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x50]
jmp 0x1800171ce
mov dword [rbp + 0x92], 0x6c
lea r8, [rbp + 0x60]
mov edx, 0x95
lea rcx, [rbp + 0x98]
call fcn.1800269e0
mov qword [rsp + 0x68], rax
lea r8, [rbp + 0x70]
mov edx, 0x95
lea rcx, [rbp + 0x80]
call fcn.1800269e0
xor r8d, r8d
mov edx, ebx
lea ecx, [r8 + 2]
call rax
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x180017394
inc r13d
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x50]
jmp 0x1800171ce
mov dword [rsp + 0x48], r8d
inc r13d
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x50]
jmp 0x1800171ce
mov r9d, 0x100
cmp si, r9w
jae case.0x1800171fd.45
mov rbx, qword [rbp - 0x60]
mov r13, qword [rbp - 0x48]
mov r8d, 0x7f
mov eax, r8d
sub eax, 0x7f
je 0x180017303
sub eax, 0x38
je 0x1800172f1
cmp eax, 0x38
jne 0x180017318
movzx eax, r14b
mov byte [rax + r15], dil
movzx eax, dl
inc eax
cdq
idiv dword [r13]
inc si
jmp 0x180017318
movzx eax, r14b
movzx ecx, si
movzx eax, byte [rax + r15]
mov byte [rcx + r15], al
jmp 0x180017318
movzx eax, si
movzx edi, byte [rax + r15]
movzx eax, dl
movzx ecx, byte [rax + rbx]
add cl, dil
add r14b, cl
add r8d, 0x38
cmp r8d, 0x127
jb 0x1800172c8
mov dword [rsp + 0x4c], edx
cmp si, r9w
jb 0x1800172c2
mov ebx, 1
mov r13d, dword [rsp + 0x60]
inc r13d
mov r8d, dword [rsp + 0x50]
jmp 0x1800171ce
mov qword [rbp - 0x40], r12
mov rax, qword [rbp - 0x48]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x40]
lea r8, [rsp + 0x40]
mov edx, 0xb9
mov rcx, qword [rbp - 0x60]
call fcn.180041160
test al, al
je 0x180017389
inc r13d
mov edx, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x50]
jmp 0x1800171ce
mov r13, qword [rsp + 0x68]
mov rcx, r12
call r13
mov byte [rsp + 0x48], 0
mov ebx, dword [rsp + 0x48]
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x1800173d8
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800173d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18001754a
call fcn.180051f84
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.180051f60
mov rbx, qword [rsp + 0x208]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x74]
lea edi, [rcx - 6]
cmp ecx, edi
jbe case.0x18001743e.0
lea ebx, [rcx - 0x35]
movzx esi, byte [rsp + 0x40]
mov r13, qword [rsp + 0x68]
mov r14, qword [rbp - 0x10]
mov r15, qword [rbp - 0x50]
cmp ebx, 5
ja case.default.0x18001743e
lea rdx, [0x180000000]
mov ecx, dword [rdx + rbx*4 + 0x17618]
add rcx, rdx
jmp rcx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rbp - 0x78]
mov edx, 0x3f
lea rcx, [rbp]
call fcn.18000ce60
mov rcx, r12
call r13
jmp case.default.0x18001743e
mov byte [rsp + 0x48], sil
jmp case.default.0x18001743e
mov rcx, qword [rbp - 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp case.default.0x18001743e
mov rax, qword [rbp - 0x38]
mov eax, dword [rax]
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x69
mov r9, qword [rbp - 0x60]
lea r8, [rbp + 0x40]
mov rdx, r15
mov rcx, qword [rbp - 0x68]
call fcn.180004ff0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
jmp case.default.0x18001743e
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x24]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
mov qword [rbp - 0x50], r12
xor eax, eax
mov qword [rsp + 0x20], rax
lea r9, [rbp]
lea r8, [rbp - 0x78]
lea rdx, [rbp - 0x50]
lea ecx, [rax + 0x2a]
call fcn.18002af30
test al, al
je 0x18001738e
mov qword [rbp - 0x50], r12
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x78]
mov r8d, 0xb7
lea rdx, [rbp + 0x40]
mov rcx, r14
call fcn.18003d770
movzx esi, al
dec ebx
lea ecx, [rbx + 0x35]
cmp ecx, edi
jbe case.0x18001743e.0
jmp 0x180017424
call fcn.180063ba4
int3