Function at 0x100138f0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039d95
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x10049100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, 0x2d
test esi, esi
jns 0x10013940
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.10004a50
add esp, 8
mov word [eax - 2], di
sub eax, 2
jmp 0x1001394d
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.10004a50
add esp, 8
lea ecx, [ebp - 0x6d]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f600
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push str..pipeLUNA_HOOK
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.100035c0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x54]
call fcn.10011080
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmova eax, dword [ebp - 0x54]
push 0x1004b550
push 0xffffffffffffffff
push 0xc350
push 0
push 0xff
push 6
push 1
push eax
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x80], eax
cmp ecx, 7
jbe 0x10013a08
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x100139fe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f17
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov byte [ebp - 4], al
cmp ecx, 7
jbe 0x10013a59
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013a4f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f17
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10013a9a
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013a90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f17
push ecx
push edx
call fcn.1001de4b
add esp, 8
test esi, esi
jns 0x10013abc
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.10004a50
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x10013ac9
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.10004a50
add esp, 8
lea ecx, [ebp - 0x6d]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f600
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 4], 2
push str..pipeLUNA_HOST
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.100035c0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x54]
call fcn.10011080
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
push 0x1004b550
cmova eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push 0
push 0xc350
push 0xff
push 6
push 2
push eax
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x74], eax
cmp ecx, 7
jbe 0x10013b7e
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013b74
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f1c
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x10013bd0
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013bc6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f1c
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10013c11
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013c07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f1c
push ecx
push edx
call fcn.1001de4b
add esp, 8
test esi, esi
jns 0x10013c33
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.10004a50
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x10013c40
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.10004a50
add esp, 8
lea ecx, [ebp - 0x6d]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f600
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 4], 4
push str.LUNA_PIPE_AVAILABLE
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.100035c0
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x74]
lea ecx, [ebp - 0x54]
call fcn.10011080
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
cmova eax, dword [ebp - 0x54]
push eax
push 0
push 0
push 0x1004b550
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x40]
mov edi, eax
cmp ecx, 7
jbe 0x10013cea
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013ce0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f21
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 7
mov word [ebp - 0x54], ax
mov byte [ebp - 4], 4
cmp ecx, 7
jbe 0x10013d3c
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013d32
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f21
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10013d7d
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013d73
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f21
push ecx
push edx
call fcn.1001de4b
add esp, 8
lea eax, [ebp - 0x12]
test esi, esi
jns 0x10013d9d
neg esi
push esi
push eax
call fcn.10004a50
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x10013da7
push esi
push eax
call fcn.10004a50
add esp, 8
lea ecx, [ebp - 0x6d]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.1000f600
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 4], 6
push str.LUNA_PIPE_AVAILABLE
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
call fcn.100035c0
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x7c], ecx
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x7c]
call fcn.10011080
call fcn.10013740
mov ecx, dword [ebp - 0x18]
add esp, 0x18
mov byte [ebp - 4], 6
cmp ecx, 7
jbe 0x10013e45
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013e3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f26
push ecx
push edx
call fcn.1001de4b
add esp, 8
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x10013e86
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10013e7c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10013f26
push ecx
push edx
call fcn.1001de4b
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x74]
push 0xc
mov dword [ebp - 0x44], eax
call fcn.1001de1b
add esp, 4
test eax, eax
je 0x10013eb5
movq xmm0, qword [ebp - 0x48]
movq qword [eax], xmm0
mov dword [eax + 8], edi
jmp 0x10013eb7
xor eax, eax
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 8
push ecx
push 0
push eax
push 0x100106d0
push 0
push 0
call fcn.10026a5f
add esp, 0x18
mov dword [ebp - 0x78], eax
test eax, eax
je 0x10013f32
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 4], 9
test ecx, ecx
je 0x10013f2b
push ecx
push eax
call fcn.1001c7fb
add esp, 8
test eax, eax
jne 0x10013f2b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001e173
mov esp, ebp
pop ebp
ret
call fcn.10022e7f
call fcn.10022e7f
call fcn.10022e7f
call fcn.10022e7f
push 1
call fcn.1001cf05
push 6
mov dword [ebp - 0x74], 0
call fcn.1001cf05
int3