Function at 0x447690
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478e87
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x495240]
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 0x4476e3
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.004151a0
add esp, 8
mov word [eax - 2], di
sub eax, 2
jmp 0x4476f0
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.004151a0
add esp, 8
lea ecx, [ebp - 0x85]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00443f50
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 4], 0
push str..pipeLUNA_HOOK
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
call fcn.00414510
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x54]
call fcn.00421320
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
mov edi, dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmova eax, dword [ebp - 0x54]
push 0x4995d4
push 0xffffffffffffffff
push 0xc350
push 0
push 0xff
push 6
push 1
push eax
call edi
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x98], eax
cmp ecx, 7
jbe 0x4477ba
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4477b0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d11
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x58]
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 0x44780b
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447801
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d11
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x44784f
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447845
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d11
push ecx
push edx
call fcn.0046707f
add esp, 8
test esi, esi
jns 0x447871
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.004151a0
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x44787e
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.004151a0
add esp, 8
lea ecx, [ebp - 0x85]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00443f50
push 0x12
xorps xmm0, xmm0
mov dword [ebp - 4], 2
push str..pipeLUNA_HOST
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
call fcn.00414510
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x54]
call fcn.00421320
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
push 0x4995d4
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 - 0x8c], eax
cmp ecx, 7
jbe 0x447942
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447938
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d16
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x58]
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 0x447994
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x44798a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d16
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x4479d8
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4479ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d16
push ecx
push edx
call fcn.0046707f
add esp, 8
test esi, esi
jns 0x4479fa
mov eax, esi
neg eax
push eax
lea eax, [ebp - 0x12]
push eax
call fcn.004151a0
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x447a07
lea eax, [ebp - 0x12]
push esi
push eax
call fcn.004151a0
add esp, 8
lea ecx, [ebp - 0x85]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00443f50
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 4], 4
push str.LUNA_PIPE_AVAILABLE
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
call fcn.00414510
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x8c]
lea ecx, [ebp - 0x54]
call fcn.00421320
cmp dword [ebp - 0x40], 7
lea eax, [ebp - 0x54]
cmova eax, dword [ebp - 0x54]
push eax
push 0
push 0
push 0x4995d4
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0x40]
mov edi, eax
cmp ecx, 7
jbe 0x447abd
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447ab3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d1b
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x58]
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 0x447b0f
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447b05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d1b
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x447b53
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447b49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d1b
push ecx
push edx
call fcn.0046707f
add esp, 8
lea eax, [ebp - 0x12]
test esi, esi
jns 0x447b73
neg esi
push esi
push eax
call fcn.004151a0
add esp, 8
mov ecx, 0x2d
sub eax, 2
mov word [eax], cx
jmp 0x447b7d
push esi
push eax
call fcn.004151a0
add esp, 8
lea ecx, [ebp - 0x85]
push ecx
lea ecx, [ebp - 0x12]
push ecx
push eax
lea ecx, [ebp - 0x84]
call fcn.00443f50
push 0x13
xorps xmm0, xmm0
mov dword [ebp - 4], 6
push str.LUNA_PIPE_AVAILABLE
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
movups xmmword [ebp - 0x6c], xmm0
mov dword [ebp - 0x58], 0
call fcn.00414510
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
lea eax, [ebp - 0x84]
mov dword [ebp - 0x94], ecx
push eax
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x94]
call fcn.00421320
call fcn.004475a0
mov ecx, dword [ebp - 0x58]
add esp, 0x18
mov byte [ebp - 4], 6
cmp ecx, 7
jbe 0x447c2a
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447c20
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d20
push ecx
push edx
call fcn.0046707f
add esp, 8
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x447c6e
mov edx, dword [ebp - 0x84]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x447c64
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x447d20
push ecx
push edx
call fcn.0046707f
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x8c]
push 0xc
mov dword [ebp - 0x44], eax
call fcn.0046704f
add esp, 4
test eax, eax
je 0x447ca3
movq xmm0, qword [ebp - 0x48]
movq qword [eax], xmm0
mov dword [eax + 8], edi
jmp 0x447ca5
xor eax, eax
mov dword [ebp - 0x94], eax
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 8
push ecx
push 0
push eax
push 0x444aa0
push 0
push 0
call sub.msvcrt.dll__beginthreadex
add esp, 0x18
mov dword [ebp - 0x90], eax
test eax, eax
je 0x447d2c
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 4], 9
test ecx, ecx
je 0x447d25
push ecx
push eax
call fcn.0044f54c
add esp, 8
test eax, eax
jne 0x447d25
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.0046708d
mov esp, ebp
pop ebp
ret
call fcn.004688f0
call fcn.004688f0
call fcn.004688f0
call fcn.004688f0
push 1
call fcn.0044f286
push 6
mov dword [ebp - 0x8c], 0
call fcn.0044f286
int3