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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001edab
mov eax, dword fs:[0]
push eax
mov eax, 0xa038
call fcn.1001bdb0
mov eax, dword [0x1004b200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xa014], 0
xor esi, esi
mov eax, 1
mov ecx, 0x1004bb4c
xchg dword [ecx], eax
mov eax, dword [0x1004bb4c]
nop
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x1001a71c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
lea eax, [ebp - 0xa018]
push eax
push 1
push str.S:_ML__NW___LW_D:_A__0x12019f___WD_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
mov eax, dword [ebp - 0xa018]
mov dword [ebp - 0xa020], eax
lea eax, [ebp - 0xa024]
push eax
push 0
push 0x200c
push 0x200c
push 0xff
push 6
push 3
push str..pipeAppMonD_DataWindow
mov dword [ebp - 0xa024], 0xc
mov dword [ebp - 0xa01c], 1
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001a823
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1001a6d9
call ebx
cmp eax, 0x217
je 0x1001a6d9
push esi
call edi
xor esi, esi
jmp 0x1001a708
mov eax, dword [0x1004bb4c]
nop
cmp eax, 1
jne 0x1001a80b
lea eax, [ebp - 0xa014]
push eax
push 0
push esi
push 0x1001a8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001a74d
push eax
call edi
mov eax, dword [0x1004bb4c]
nop
cmp eax, 1
je 0x1001a655
mov ecx, 0x1004bb4c
mov eax, 3
xchg dword [ecx], eax
test esi, esi
je 0x1001a72f
cmp esi, 0xffffffff
je 0x1001a72f
push esi
call edi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001b6e8
mov esp, ebp
pop ebp
ret
call ebx
push eax
lea eax, [ebp - 0xa044]
push eax
call fcn.1001ac00
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1001a767
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x5010]
push str.CreateThread_failed:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xa030]
add esp, 0xc
cmp ecx, 7
jbe 0x1001a7bf
mov edx, dword [ebp - 0xa044]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001a7b5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001a7b5
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b5fa
add esp, 8
push esi
call edi
call fcn.1001a310
mov esi, eax
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0xa028], esi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], 1
test eax, eax
je 0x1001a7fc
lea ecx, [ebp - 0x5010]
push ecx
push 0xfffffffffffffff4
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x1001a731
test esi, esi
je 0x1001a812
push esi
call edi
mov eax, 3
mov ecx, 0x1004bb4c
xchg dword [ecx], eax
jmp 0x1001a72f
call ebx
push eax
lea eax, [ebp - 0xa044]
push eax
call fcn.1001ac00
add esp, 8
cmp dword [eax + 0x14], 7
jbe 0x1001a83d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xa010]
push str.CreateNamedPipe_failed:__s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 0xa030]
add esp, 0xc
cmp ecx, 7
jbe 0x1001a895
mov edx, dword [ebp - 0xa044]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001a88b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1001a88b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1001b5fa
add esp, 8
call fcn.1001a310
mov esi, eax
mov dword [ebp - method.AutoLock.virtual_0], vtable.AutoLock.0
mov dword [ebp - 0xa028], esi
lea edi, [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x20]
mov dword [ebp - 4], 0
test eax, eax
je 0x1001a8cf
lea ecx, [ebp - 0xa010]
push ecx
push 0xfffffffffffffff5
call eax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
jmp 0x1001a731