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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062d2b
mov eax, dword fs:[0]
push eax
mov eax, 0xa07c
call fcn.1003c9f0
mov eax, dword [0x1009c054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa038], 0
mov dword [ebp - 0xa014], 0
mov dword [ebp - 0xa028], 0
mov dword [ebp - 0xa02c], 0
mov dword [ebp - 0xa03c], 0x10094564
push 1
mov ecx, 0x1009e604
call fcn.10039640
mov ecx, 0x1009e604
call fcn.10039620
cmp eax, 1
jne 0x10039031
push 0
lea eax, [ebp - 0xa018]
push eax
push 1
push str.S:_ML__NW___LW_D:_A__0x12019f___WD_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
mov dword [ebp - 0xa058], eax
mov dword [ebp - 0xa024], 0xc
mov ecx, dword [ebp - 0xa018]
mov dword [ebp - 0xa020], ecx
mov dword [ebp - 0xa01c], 1
lea edx, [ebp - 0xa024]
push edx
push 0
push 0x200c
push 0x200c
push 0xff
push 6
push 3
mov eax, dword [ebp - 0xa03c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0xa028], eax
cmp dword [ebp - 0xa028], 0xffffffff
jne 0x10038e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa070]
push ecx
call fcn.10039370
add esp, 8
mov dword [ebp - 0xa040], eax
mov edx, dword [ebp - 0xa040]
mov dword [ebp - 0xa044], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa044]
call fcn.1001c1a0
push eax
push str.CreateNamedPipe_failed:__s
lea eax, [ebp - 0x5010]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa070]
call fcn.1001c1e0
call fcn.10034960
mov dword [ebp - 0xa048], eax
lea ecx, [ebp - 0x5010]
push ecx
push 0xfffffffffffffff5
mov ecx, dword [ebp - 0xa048]
call fcn.1002e530
or eax, 0xffffffff
jmp 0x1003905e
push 0
mov edx, dword [ebp - 0xa028]
push edx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10038eb0
mov dword [ebp - 0xa034], 1
jmp 0x10038edf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x10038ec9
mov dword [ebp - 0xa030], 1
jmp 0x10038ed3
mov dword [ebp - 0xa030], 0
mov eax, dword [ebp - 0xa030]
mov dword [ebp - 0xa034], eax
mov ecx, dword [ebp - 0xa034]
mov dword [ebp - 0xa038], ecx
cmp dword [ebp - 0xa038], 0
je 0x10039015
mov ecx, 0x1009e604
call fcn.10039620
cmp eax, 1
je 0x10038f35
cmp dword [ebp - 0xa028], 0
je 0x10038f26
cmp dword [ebp - 0xa028], 0xffffffff
je 0x10038f26
mov edx, dword [ebp - 0xa028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa028], 0
jmp 0x10039031
lea eax, [ebp - 0xa014]
push eax
push 0
mov ecx, dword [ebp - 0xa028]
push ecx
push 0x10039080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jne 0x10039006
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0xa088]
push edx
call fcn.10039370
add esp, 8
mov dword [ebp - 0xa04c], eax
mov eax, dword [ebp - 0xa04c]
mov dword [ebp - 0xa050], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xa050]
call fcn.1001c1a0
push eax
push str.CreateThread_failed:__s
lea ecx, [ebp - 0xa010]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa088]
call fcn.1001c1e0
mov edx, dword [ebp - 0xa028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa028], 0
call fcn.10034960
mov dword [ebp - 0xa054], eax
lea eax, [ebp - 0xa010]
push eax
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0xa054]
call fcn.1002e530
or eax, 0xffffffff
jmp 0x1003905e
mov ecx, dword [ebp - 0xa02c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1003902c
mov edx, dword [ebp - 0xa028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0xa028], 0
jmp 0x10038d7d
push 3
mov ecx, 0x1009e604
call fcn.10039640
cmp dword [ebp - 0xa028], 0
je 0x1003905c
cmp dword [ebp - 0xa028], 0xffffffff
je 0x1003905c
mov eax, dword [ebp - 0xa028]
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 - 0x10]
xor ecx, ebp
call fcn.1003b5fd
mov esp, ebp
pop ebp
ret