Function at 0x1800168f0
Capabilities:
Connect pipe
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x480]
sub rsp, 0x580
mov rax, qword [0x18009da48]
xor rax, rsp
mov qword [rbp + 0x470], rax
lea ebx, [r9 + 0x12]
mov qword [rsp + 0x70], r8
mov dword [rsp + 0x40], ebx
mov r13d, r9d
mov rsi, r8
mov r14, rdx
mov rdi, rcx
cmp r9d, ebx
jae case.0x180016c6c.0
mov r15, qword [rsp + 0x60]
lea ebx, [r9 - 0x83]
mov r12, qword [rsp + 0x60]
lea r8, [0x180000000]
mov eax, dword [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x48], ebx
cmp ebx, 0x38
ja case.default.0x180016981
movzx eax, byte [r8 + rbx + 0x16f84]
mov ecx, dword [r8 + rax*4 + 0x16f38]
add rcx, r8
jmp rcx
mov qword [rsp + 0x20], rdx
mov r9, rdi
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 0x3b]
call fcn.180071540
xor esi, esi
nop word [rax + rax]
mov ebx, 0x33
cmp ebx, 0x33
je 0x1800169ba
cmp ebx, 0xde
jne 0x1800169eb
shl dword [r14], 4
inc dword [rdi]
jmp 0x1800169eb
mov r9, rdi
mov dword [rsp + 0x50], 4
mov r8, rdi
lea rcx, [rsp + 0x50]
mov edx, ILAppendID
call fcn.18006ab90
test eax, eax
jne 0x180016f0e
mov eax, dword [r14]
mov rcx, qword [rdi + 0x10]
shr eax, 0x1c
or dword [rcx], eax
add ebx, 0xab
cmp ebx, 0x189
jb 0x1800169a5
inc esi
cmp esi, 8
jb 0x1800169a0
xor edx, edx
mov qword [rsp + 0x20], 0
mov r9, rdi
xor r8d, r8d
lea ecx, [rdx + 3]
call fcn.18003f700
mov ebx, dword [rsp + 0x48]
lea r8, [0x180000000]
mov rsi, qword [rsp + 0x70]
xor edx, edx
jmp case.0x180016981.18
mov eax, dword [0x180094bbc]
mov dword [rbp - 0x52], eax
movzx eax, word [0x180094bc0]
mov word [rbp - 0x4e], ax
mov word [rbp - 0x4c], dx
jmp case.0x180016981.18
lea rax, [rbp - 0x68]
xor r9d, r9d
lea r8, [rbp + 0x10]
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, SHSetFolderPathA
call fcn.180043060
mov qword [rbp - 0x80], rax
lea r8, [rbp - 0x60]
lea rax, str.htons
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, SHSetFolderPathA
call fcn.180043060
mov qword [rsp + 0x78], rax
lea r8, [0x180000000]
xor edx, edx
jmp case.0x180016981.18
mov dword [rbp - 0x60], 0x730077
jmp case.0x180016981.18
mov ecx, 0x6f
mov eax, ecx
sub eax, 0x6c
je 0x180016acf
sub eax, 1
je case.0x180016981.18
cmp eax, 2
jne 0x180016ad8
test rdi, rdi
je 0x180016ad8
and byte [rdi], 0xfd
jmp 0x180016ad8
test rdi, rdi
je case.0x180016981.18
inc ecx
cmp ecx, 0x72
jb 0x180016ab0
jmp case.0x180016981.18
mov eax, dword [0x180094c12]
mov dword [rbp - 0x5c], eax
movzx eax, word [0x180094c16]
mov word [rbp - 0x58], ax
mov word [rbp - 0x56], dx
jmp case.0x180016981.18
mov eax, 0x123
nop word [rax + rax]
cmp eax, 0x123
je 0x180016ee6
add eax, 0x2b32
cmp eax, 0x2b32
jbe 0x180016b10
movsd xmm0, qword [0x180094c5e]
movzx eax, word [0x180094c66]
movsd qword [rbp + 0x10], xmm0
mov word [rbp + 0x18], ax
mov dword [rbp + 0x1a], 0x2e0032
jmp case.0x180016981.18
lea rdx, [0x180093cb4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x180016ef7
mov r9, rax
mov r8d, 0xff
mov rdx, r14
mov rcx, rsi
call fcn.1800421d0
mov dword [rsp + 0x58], eax
lea r8, [0x180000000]
xor edx, edx
jmp case.0x180016981.18
mov dword [rsp + 0x44], edx
jmp case.0x180016981.18
lea rcx, [rbp - 0x68]
dec rcx
nop
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x180016ba0
mov eax, dword [str.nnect]
mov dword [rcx], eax
movzx eax, word [0x180094c84]
mov word [rcx + 4], ax
jmp case.0x180016981.18
movzx ecx, word [rsi]
call qword [rsp + 0x78]
mov rcx, qword [rdi]
lea rdx, [rbp - 0x78]
mov r8d, reloc.SHELL32.dll_ILFindLastID
mov word [rbp - 0x76], ax
call qword [rbp - 0x80]
cmp eax, 0xffffffff
je 0x180016efe
xor edx, edx
lea r8, [0x180000000]
jmp case.0x180016981.18
mov eax, dword [0x180094ca2]
mov dword [rbp + 0x1e], eax
movzx eax, word [0x180094ca6]
mov word [rbp + 0x22], ax
mov word [rbp + 0x24], dx
jmp case.0x180016981.18
movzx eax, word [0x180094cb8]
mov word [rbp - 0x68], ax
movzx eax, byte [0x180094cba]
mov byte [rbp - 0x66], al
jmp case.0x180016981.18
mov qword [rsp + 0x20], rdx
mov r9d, 0xbe
xor edx, edx
xor r8d, r8d
mov rcx, rdi
call fcn.180017930
test al, al
jne 0x180016ead
mov ebx, 0x15
cmp ebx, 0x15
ja case.default.0x180016c6c
lea rdx, [0x180000000]
mov eax, ebx
mov ecx, dword [rdx + rax*4 + 0x16fc0]
add rcx, rdx
jmp rcx
movsd xmm0, qword [0x180094ce0]
movzx eax, word [0x180094ce8]
movsd qword [rbp + 0x52], xmm0
mov word [rbp + 0x5a], ax
mov dword [rbp + 0x5c], 0x610072
jmp case.default.0x180016c6c
mov eax, 0x72
mov word [rbp], ax
jmp case.default.0x180016c6c
xor eax, eax
mov word [rbp + 0x4a], ax
jmp case.default.0x180016c6c
xor eax, eax
lea r15, [rbp + 0x28]
mov word [rbp + 2], ax
lea r12, [rbp - 0x40]
jmp case.default.0x180016c6c
xor eax, eax
mov word [rbp - 0x2a], ax
jmp case.default.0x180016c6c
movabs rax, 0x310064006c0075
mov qword [rbp + 0x3e], rax
jmp case.default.0x180016c6c
xor eax, eax
mov dword [rbp - 0x10], 0x4c0073
mov word [rbp - 0xc], ax
jmp case.default.0x180016c6c
mov eax, dword [0x180094d6c]
mov dword [rbp - 0x2a], eax
movzx eax, word [0x180094d70]
mov word [rbp - 0x26], ax
xor eax, eax
mov word [rbp - 0x24], ax
jmp case.default.0x180016c6c
mov r8d, 5
lea rdx, [0x180094dc2]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
mov eax, 0x61
mov word [rbp - 0x12], ax
jmp case.default.0x180016c6c
mov r8d, 2
lea rdx, [0x180094e04]
lea rcx, [rbp - 0x2e]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp case.default.0x180016c6c
mov r8d, 4
lea rdx, [0x180095002]
lea rcx, [rbp - 0x24]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
mov word [rbp - 0x1c], ax
jmp case.default.0x180016c6c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [rsp + 0x30], 0x4e20
lea r9, [rbp + 0x70]
mov rdx, r15
mov rcx, r12
lea r8d, [rax*2 + 2]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x400
call qword [sym.imp.KERNEL32.dll_CallNamedPipeW]
mov byte [rsp + 0x44], 0
jmp case.default.0x180016c6c
mov r8d, 5
lea rdx, str.NVPTXISD::Suld1DArrayV4I16Clamp
lea rcx, [rbp + 0x28]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp case.default.0x180016c6c
mov r8d, 5
mov dword [rbp - 0xc], 0x69
lea rdx, [0x18009510a]
lea rcx, [rbp - 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp case.default.0x180016c6c
movzx eax, word [0x180095130]
movsd xmm0, qword [0x180095128]
mov word [rbp - 0x30], ax
xor eax, eax
mov word [rbp - 0x2e], ax
movsd qword [rbp - 0x38], xmm0
jmp case.default.0x180016c6c
xor eax, eax
mov word [rbp - 0x38], ax
jmp case.default.0x180016c6c
xor eax, eax
lea rdx, str.ISDCOMProxy
lea rcx, [rbp + 0x28]
mov word [rbp + 0x32], ax
lea r8d, [rax + 3]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp case.default.0x180016c6c
movabs rax, 0x79006100720072
mov qword [rbp + 0x4a], rax
xor eax, eax
mov word [rbp + 0x52], ax
jmp case.default.0x180016c6c
mov eax, 0x53
mov dword [rbp + 0x38], 0x3a003a
mov word [rbp + 0x3c], ax
jmp case.default.0x180016c6c
mov dword [rbp + 0x46], 0x410044
jmp case.default.0x180016c6c
xor eax, eax
lea rdx, [0x180095170]
lea rcx, [rbp + 0x28]
mov word [rbp + 0x60], ax
lea r8d, [rax + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
movabs rax, 0x5c002e005c005c
mov qword [rbp - 0x40], rax
dec ebx
lea eax, [rbx + 0x10b]
cmp eax, 0x10a
ja 0x180016c50
mov ebx, dword [rsp + 0x48]
mov eax, 2
lea r8, [0x180000000]
mov word [rbp - 0x78], ax
xor edx, edx
mov eax, dword [r14]
mov dword [rbp - 0x74], eax
jmp case.0x180016981.18
mov dword [rbp - 0x56], 0x2e0032
mov eax, dword [rsp + 0x40]
inc ebx
inc r13d
mov dword [rsp + 0x48], ebx
cmp r13d, eax
jb 0x180016964
jmp case.0x180016c6c.0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [rsp + 0x58]
jmp 0x180016f0e
mov eax, 0xffffffff
jmp 0x180016f0e
mov byte [rsp + 0x44], 0
jmp case.0x180016c6c.0
mov byte [rsp + 0x44], 1
mov eax, dword [rsp + 0x44]
mov rcx, qword [rbp + 0x470]
xor rcx, rsp
call fcn.180083f10
mov rbx, qword [rsp + 0x5d8]
add rsp, 0x580
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret