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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x503c
call fcn.10023400
mov eax, dword [0x1007b054]
xor eax, esp
mov dword [esp + 0x5038], eax
push ebx
push esi
push edi
mov dword [esp + 0x18], 0
xor esi, esi
mov eax, 1
mov ecx, 0x1007d614
xchg dword [ecx], eax
mov eax, dword [0x1007d614]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x1001ffa9
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [esp + 0x18]
push eax
push 1
push str.S:_ML__NW___LW_D:_A__0x12019f___WD_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x200c
push 0x200c
push 0xff
push 6
push 3
push str..pipeAppMonD_DataWindow
mov dword [esp + 0x3c], 0xc
mov dword [esp + 0x44], 1
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10020109
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1001ff6a
call ebx
cmp eax, 0x217
je 0x1001ff6a
push esi
call edi
xor esi, esi
jmp 0x1001ff96
mov eax, dword [0x1007d614]
cmp eax, 1
jne 0x100200df
lea eax, [esp + 0x18]
push eax
push 0
push esi
push 0x10020220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001ffd3
push eax
call edi
mov eax, dword [0x1007d614]
cmp eax, 1
je 0x1001fef1
mov ecx, 0x1007d614
mov eax, 3
xchg dword [ecx], eax
test esi, esi
je 0x1001ffbc
cmp esi, 0xffffffff
je 0x1001ffbc
push esi
call edi
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5038]
xor ecx, esp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
call ebx
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0x7f
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov ebx, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, 7
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
test ebx, ebx
je 0x10020042
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020016
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [esp + 0x30]
call fcn.10010480
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp edx, 8
lea eax, [esp + 0x28]
cmovae eax, ecx
push eax
lea eax, [esp + 0x44]
push str.CreateThread_failed:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp edx, 8
jb 0x1002009c
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10020092
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020212
push edx
push ecx
call fcn.10022487
add esp, 8
push esi
call edi
call fcn.1001cc80
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100200c0
lea ecx, [esp + 0x40]
push ecx
push 0xfffffffffffffff4
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5038]
xor ecx, esp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100200e6
push esi
call edi
mov eax, 3
mov ecx, 0x1007d614
xchg dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5038]
xor ecx, esp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
call ebx
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push 0x7f
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov edx, 7
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
test esi, esi
je 0x1002017c
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020150
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.10010480
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp edx, 8
lea eax, [esp + 0x28]
cmovae eax, ecx
push eax
lea eax, [esp + 0x44]
push str.CreateNamedPipe_failed:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x48]
add esp, 0xc
cmp edx, 8
jb 0x100201d2
mov ecx, dword [esp + 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x100201c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10020217
push edx
push ecx
call fcn.10022487
add esp, 8
call fcn.1001cc80
mov esi, eax
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
test eax, eax
je 0x100201f3
lea ecx, [esp + 0x40]
push ecx
push 0xfffffffffffffff5
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x5044]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1002225a
mov esp, ebp
pop ebp
ret
call fcn.1002b828
call fcn.1002b828
int3