Function at 0x14004f100
Capabilities:
Create pipe
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x1400d0400]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14d, ecx
xor r12d, r12d
mov edx, ecx
lea rcx, [rbp - 0x19]
call fcn.140053c60
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, 0x12
lea rdx, str..pipeLUNA_HOOK
lea rcx, [rbp - 0x59]
call fcn.140014920
nop
mov r9, rbx
lea r8, [rbp - 0x59]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x39]
call fcn.140023dd0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
lea rdi, [0x1400d6290]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], 0xc350
mov dword [rsp + 0x20], r12d
mov edx, 1
mov r9d, 0xff
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov r15, rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14004f204
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f1ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6e8
call fcn.140074cc4
movdqa xmm0, xmmword [0x1400a7d20]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r12w
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14004f257
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f251
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6ee
call fcn.140074cc4
nop
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14004f297
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f292
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6f4
call fcn.140074cc4
mov edx, r14d
lea rcx, [rbp - 0x19]
call fcn.140053c60
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, 0x12
lea rdx, str..pipeLUNA_HOST
lea rcx, [rbp - 0x59]
call fcn.140014920
nop
mov r9, rbx
lea r8, [rbp - 0x59]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x39]
call fcn.140023dd0
lea rcx, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova rcx, qword [rbp - 0x39]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 0xc350
mov edx, 2
mov r9d, 0xff
mov r8d, 6
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14004f363
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f35e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f6fa
call fcn.140074cc4
movdqa xmm0, xmmword [0x1400a7d20]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r12w
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14004f3b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f3b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f700
call fcn.140074cc4
nop
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14004f3f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f3f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f706
call fcn.140074cc4
mov edx, r14d
lea rcx, [rbp - 0x19]
call fcn.140053c60
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, 0x13
lea rdx, str.LUNA_PIPE_AVAILABLE
lea rcx, [rbp - 0x59]
call fcn.140014920
nop
mov r9, rbx
lea r8, [rbp - 0x59]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp - 0x39]
call fcn.140023dd0
lea r9, [rbp - 0x39]
cmp qword [rbp - 0x21], 7
cmova r9, qword [rbp - 0x39]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
mov rdx, qword [rbp - 0x21]
cmp rdx, 7
jbe 0x14004f49f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f49a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f70c
call fcn.140074cc4
movdqa xmm0, xmmword [0x1400a7d20]
movdqu xmmword [rbp - 0x29], xmm0
mov word [rbp - 0x39], r12w
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14004f4f9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f4ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f712
call fcn.140074cc4
movdqa xmm0, xmmword [0x1400a7d20]
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x14004f541
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f534
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f718
call fcn.140074cc4
movdqa xmm0, xmmword [0x1400a7d20]
movdqu xmmword [rbp - 9], xmm0
mov word [rbp - 0x19], r12w
mov edx, r14d
lea rcx, [rbp + 7]
call fcn.140053c60
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x59], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x49], xmm1
mov r8d, 0x13
lea rdx, str.LUNA_PIPE_AVAILABLE
lea rcx, [rbp - 0x59]
call fcn.140014920
nop
mov r9, rbx
lea r8, [rbp - 0x59]
movzx edx, byte [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140023dd0
lea rcx, [rsp + 0x48]
call fcn.14004ed10
nop
mov rdx, qword [rbp - 0x41]
cmp rdx, 7
jbe 0x14004f5e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x59]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f5dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f71e
call fcn.140074cc4
nop
mov rdx, qword [rbp + 0x1f]
cmp rdx, 7
jbe 0x14004f622
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004f61d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004f724
call fcn.140074cc4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], rsi
mov qword [rbp - 0x49], rdi
mov ecx, 0x18
call fcn.140074c88
test rax, rax
je 0x14004f659
movups xmm0, xmmword [rbp - 0x59]
movups xmmword [rax], xmm0
movsd xmm1, qword [rbp - 0x49]
movsd qword [rax + 0x10], xmm1
jmp 0x14004f65c
mov rax, r12
mov qword [rbp - 0x59], rax
lea rcx, [rbp - 0x31]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r12d
mov r9, rax
lea r8, [0x14004ba70]
xor edx, edx
xor ecx, ecx
call fcn.140087e94
mov qword [rbp - 0x39], rax
test rax, rax
je 0x14004f6d9
cmp dword [rbp - 0x31], 0
je 0x14004f6ce
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x59], xmm0
lea rcx, [rbp - 0x59]
call fcn.140056794
test eax, eax
jne 0x14004f6ce
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140074de0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov ecx, 1
call fcn.1400564cc
nop
mov dword [rbp - 0x31], r12d
mov ecx, 6
call fcn.1400564cc
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
nop
call fcn.14007b508
int3