Function at 0x10002874
Capabilities:
Create pipe
Create thread

Disassembly:
push 0x8a0
mov eax, 0x1000c7e2
call fcn.1000b995
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x88c], ebx
mov byte [ebp - 0x881], bl
cmp eax, ebx
jne 0x100028b6
lea eax, [ebp - 0x8a8]
push eax
call fcn.10001fa7
mov byte [ebp - 0x881], al
cmp al, bl
je 0x100028bc
lea eax, [ebp - 0x8a8]
mov dword [ebp - 0x88c], eax
mov dword [ebp - 0x888], ebx
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0x89c], eax
mov dword [ebp - 0x890], ebx
call fcn.1000a248
test al, al
je 0x10002914
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x100028ea
cmp eax, 3
jne 0x10002914
push 0x1000f53c
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x1000290b
push str.GetNamedPipeServerProcessId
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [ebp - 0x888], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x890], eax
mov eax, dword [esi + 0x14]
sub eax, ebx
je 0x10002b78
dec eax
je 0x10002b9c
dec eax
je 0x10002b5f
dec eax
je 0x10002937
push 8
jmp 0x10002b96
cmp dword [esi + 0x78], ebx
jne 0x10002943
push 9
jmp 0x10002b96
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.100020dd
pop ecx
pop ecx
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
mov dword [ebp - 4], 2
jae 0x10002965
lea eax, [ebp - 0x64]
push ebx
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10002980
push 4
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
jmp 0x10002d14
mov edi, dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x890], ebx
je 0x100029fb
cmp dword [ebp - 0x888], ebx
je 0x100029fb
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x100029a2
lea eax, [ebp - 0x64]
push eax
call fcn.1000a248
pop ecx
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x898], ebx
cmp eax, 0xffffffff
je 0x100029fb
lea ecx, [ebp - 0x898]
push ecx
push eax
call dword [ebp - 0x888]
push dword [ebp - 0x894]
mov dword [ebp - 0x888], eax
call edi
cmp dword [ebp - 0x888], ebx
je 0x100029fb
mov eax, dword [ebp - 0x898]
cmp dword [ebp - 0x890], eax
jne 0x100029f4
cmp dword [ebp - 0x89c], eax
je 0x100029fb
push 0xb
jmp 0x10002973
lea eax, [esi + 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.10002121
pop ecx
pop ecx
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 3
jae 0x10002a1a
lea eax, [ebp - 0x48]
push eax
call fcn.1000a248
pop ecx
cmp eax, 0xffffffff
je 0x10002a3f
push eax
call edi
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.1000a248
push 3
jmp 0x10002973
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x10002a4b
lea eax, [ebp - 0x48]
push dword [ebp - 0x88c]
xor edi, edi
push 0x3e8
push ebx
push ebx
inc edi
push edi
push 6
push 3
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x34], eax
cmp byte [ebp - 0x881], bl
je 0x10002a7e
push dword [ebp - 0x8a4]
call dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x10002a99
push ebx
push edi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.1000a248
push 2
jmp 0x10002973
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_ResetEvent]
lea eax, [ebp - 0x8ac]
push eax
push ebx
push esi
push fcn.100024bf
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x10002a84
lea ecx, [ebp - 0x880]
call fcn.10001032
lea ecx, [ebp - 0x470]
call fcn.10001052
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x84]
call fcn.1000a248
mov eax, dword [esi + 0x78]
lea ecx, [esi + 0x68]
cmp dword [ecx + 0x14], 8
jb 0x10002af5
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push edi
push edi
lea eax, [ebp - 0x880]
push edi
push eax
call fcn.1000a248
add esp, 0x18
push ebx
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x880]
push eax
mov ecx, esi
call fcn.100022b4
mov esi, eax
push ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push edi
cmp esi, ebx
jne 0x10002b55
cmp dword [ebp - 0x46c], ebx
je 0x10002b42
call fcn.1000a248
jmp 0x10002971
call fcn.1000a248
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x64]
jmp 0x10002cfd
call fcn.1000a248
jmp 0x10002974
mov edi, 0x10002165
push edi
push 1
mov ecx, esi
call fcn.100023f8
push edi
push 2
mov ecx, esi
call fcn.100023f8
mov al, byte [ebp + 0xc]
push ebx
push ebx
push 1
push ebx
mov byte [esi + 0x11], al
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x10002c44
push 2
pop eax
jmp 0x10002d1e
add esi, 0x4c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.100020dd
pop ecx
pop ecx
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 1
jae 0x10002bbe
lea eax, [ebp - 0x2c]
push ebx
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeW]
test eax, eax
jne 0x10002bd6
push 4
or dword [ebp - 4], 0xffffffff
pop esi
jmp 0x10002d11
cmp dword [ebp - 0x890], ebx
je 0x10002c3b
cmp dword [ebp - 0x888], ebx
je 0x10002c3b
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10002bf2
lea eax, [ebp - 0x2c]
push eax
call fcn.1000a248
mov esi, eax
pop ecx
mov dword [ebp - 0x88c], ebx
cmp esi, 0xffffffff
je 0x10002c3b
lea eax, [ebp - 0x88c]
push eax
push esi
call dword [ebp - 0x888]
push esi
mov edi, eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp edi, ebx
je 0x10002c3b
mov eax, dword [ebp - 0x88c]
cmp dword [ebp - 0x890], eax
jne 0x10002c37
cmp dword [ebp - 0x89c], eax
je 0x10002c3b
push 0xb
jmp 0x10002bcc
or dword [ebp - 4], 0xffffffff
jmp 0x10002cf7
lea eax, [esi + 0x4c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.100020dd
pop ecx
pop ecx
or edi, 0xffffffff
push edi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x84]
mov dword [ebp - 4], ebx
call fcn.1000a248
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x10002c76
lea eax, [ebp - 0x2c]
push dword [ebp - 0x88c]
push 0x3e8
push ebx
push ebx
push 1
push 6
push 0x80003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x30], eax
cmp byte [ebp - 0x881], bl
je 0x10002caa
push dword [ebp - 0x8a4]
call dword [sym.imp.kernel32.dll_LocalFree]
cmp dword [esi + 0x30], edi
jne 0x10002cc3
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 5
jne 0x10002cbe
push 3
jmp 0x10002cc0
push 2
pop esi
jmp 0x10002d0e
mov eax, dword [ebp + 8]
push dword [esi + 0xc]
mov dword [esi + 4], eax
call dword [sym.imp.kernel32.dll_ResetEvent]
cmp byte [ebp + 0xc], bl
je 0x10002d06
lea eax, [ebp - 0x894]
push eax
push ebx
push esi
push fcn.100024bf
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x10002cbe
mov dword [ebp - 4], edi
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.1000a248
xor eax, eax
jmp 0x10002d1e
push esi
call fcn.100024bf
mov esi, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.1000a248
mov eax, esi
call fcn.1000ba18
ret 0xc