Function at 0x10038bf0
Capabilities:
Connect pipe
Create pipe
Create thread

Disassembly:
push ebp
lea ebp, [esp - 0xa034]
mov eax, 0xa034
call fcn.1003c8c0
push 0xffffffffffffffff
push 0x100643e5
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x100a0054]
xor eax, ebp
mov dword [ebp + 0xa030], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], str..pipeAppMonD_DataWindow
push 1
mov ecx, 0x100a2604
call fcn.10039410
mov ecx, 0x100a2604
call fcn.100393f0
cmp eax, 1
jne 0x10038e6f
push 0
lea eax, [ebp - 0x24]
push eax
push 1
push str.S:_ML__NW___LW_D:_A__0x12019f___WD_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], 0xc
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], 1
lea edx, [ebp - 0x50]
push edx
push 0
push 0x200c
push 0x200c
push 0xff
push 6
push 3
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x10038d33
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x18]
push ecx
call fcn.10039160
add esp, 8
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
call fcn.1001c3a0
push eax
push str.CreateNamedPipe_failed:__s
lea eax, [ebp + 0x5030]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.1001c3e0
call fcn.10034970
mov dword [ebp - 0x34], eax
lea ecx, [ebp + 0x5030]
push ecx
push 0xfffffffffffffff5
mov ecx, dword [ebp - 0x34]
call fcn.1002e680
or eax, 0xffffffff
jmp 0x10038e93
push 0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10038d4c
mov dword [ebp - 0x1c], 1
jmp 0x10038d6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x10038d62
mov dword [ebp - 0x18], 1
jmp 0x10038d69
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 0
je 0x10038e59
mov ecx, 0x100a2604
call fcn.100393f0
cmp eax, 1
je 0x10038db0
cmp dword [ebp - 0x10], 0
je 0x10038da4
cmp dword [ebp - 0x10], 0xffffffff
je 0x10038da4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
jmp 0x10038e6f
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x10038ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10038e4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp]
push edx
call fcn.10039160
add esp, 8
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.1001c3a0
push eax
push str.CreateThread_failed:__s
lea ecx, [ebp + 0x30]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.1001c3e0
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
call fcn.10034970
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x30]
push eax
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0x44]
call fcn.1002e680
or eax, 0xffffffff
jmp 0x10038e93
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10038e6a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
jmp 0x10038c59
push 3
mov ecx, 0x100a2604
call fcn.10039410
cmp dword [ebp - 0x10], 0
je 0x10038e91
cmp dword [ebp - 0x10], 0xffffffff
je 0x10038e91
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp + 0xa030]
xor ecx, ebp
call fcn.1003b4c9
add ebp, 0xa034
mov esp, ebp
pop ebp
ret