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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005b873
mov eax, dword fs:[0]
push eax
mov eax, 0xa07c
call fcn.10035a30
mov eax, dword [0x10095054]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0xa038], 0
and dword [ebp - 0xa014], 0
and dword [ebp - 0xa028], 0
and dword [ebp - 0xa02c], 0
mov dword [ebp - 0xa03c], 0x1008d564
push 1
mov ecx, 0x10097604
call fcn.10032774
mov ecx, 0x10097604
call fcn.10032763
cmp eax, 1
jne 0x100321f3
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 eax, dword [ebp - 0xa018]
mov dword [ebp - 0xa020], eax
mov dword [ebp - 0xa01c], 1
lea eax, [ebp - 0xa024]
push eax
push 0
push 0x200c
push 0x200c
push 0xff
push 6
push 3
push dword [ebp - 0xa03c]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [ebp - 0xa028], eax
cmp dword [ebp - 0xa028], 0xffffffff
jne 0x10032069
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa070]
push eax
call fcn.100324f0
pop ecx
pop ecx
mov dword [ebp - 0xa040], eax
mov eax, dword [ebp - 0xa040]
mov dword [ebp - 0xa044], eax
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0xa044]
call fcn.10018a53
push eax
push str.CreateNamedPipe_failed:__s
lea eax, [ebp - 0x5010]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa070]
call fcn.10018a7d
call fcn.1002e1dd
mov dword [ebp - 0xa048], eax
lea eax, [ebp - 0x5010]
push eax
push 0xfffffffffffffff5
mov ecx, dword [ebp - 0xa048]
call fcn.10028a65
or eax, 0xffffffff
jmp 0x1003221f
push 0
push dword [ebp - 0xa028]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x10032087
mov dword [ebp - 0xa034], 1
jmp 0x100320b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x100320a0
mov dword [ebp - 0xa030], 1
jmp 0x100320a7
and dword [ebp - 0xa030], 0
mov eax, dword [ebp - 0xa030]
mov dword [ebp - 0xa034], eax
mov eax, dword [ebp - 0xa034]
mov dword [ebp - 0xa038], eax
cmp dword [ebp - 0xa038], 0
je 0x100321db
mov ecx, 0x10097604
call fcn.10032763
cmp eax, 1
je 0x10032105
cmp dword [ebp - 0xa028], 0
je 0x100320f9
cmp dword [ebp - 0xa028], 0xffffffff
je 0x100320f9
push dword [ebp - 0xa028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xa028], 0
jmp 0x100321f3
lea eax, [ebp - 0xa014]
push eax
push 0
push dword [ebp - 0xa028]
push 0x10032236
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0xa02c], eax
cmp dword [ebp - 0xa02c], 0
jne 0x100321cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xa088]
push eax
call fcn.100324f0
pop ecx
pop ecx
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.10018a53
push eax
push str.CreateThread_failed:__s
lea eax, [ebp - 0xa010]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa088]
call fcn.10018a7d
push dword [ebp - 0xa028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xa028], 0
call fcn.1002e1dd
mov dword [ebp - 0xa054], eax
lea eax, [ebp - 0xa010]
push eax
push 0xfffffffffffffff4
mov ecx, dword [ebp - 0xa054]
call fcn.10028a65
or eax, 0xffffffff
jmp 0x1003221f
push dword [ebp - 0xa02c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100321ee
push dword [ebp - 0xa028]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xa028], 0
jmp 0x10031f5d
push 3
mov ecx, 0x10097604
call fcn.10032774
cmp dword [ebp - 0xa028], 0
je 0x1003221d
cmp dword [ebp - 0xa028], 0xffffffff
je 0x1003221d
push dword [ebp - 0xa028]
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.10034635
leave
ret