Function at 0x4032ea
Capabilities:
Create pipe
Create thread

Disassembly:
push 0x89c
mov eax, 0x4c5f70
call fcn.0048f02b
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 0x40332c
lea eax, [ebp - 0x8a4]
push eax
call fcn.00402a09
mov byte [ebp - 0x881], al
cmp al, bl
je 0x403332
lea eax, [ebp - 0x8a4]
mov dword [ebp - 0x88c], eax
mov dword [ebp - 0x888], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x894], eax
mov dword [ebp - 0x890], ebx
call fcn.0040cbf3
test al, al
je 0x403386
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x403360
cmp eax, 3
jne 0x403386
push str.GetNamedPipeServerProcessId
push 0x4cec18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
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 0x4035e5
dec eax
je 0x403609
dec eax
je 0x4035cc
dec eax
je 0x4033a9
push 8
jmp 0x403603
cmp dword [esi + 0x78], ebx
jne 0x4033b5
push 9
jmp 0x403603
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00402a87
pop ecx
pop ecx
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 2
jae 0x4033d7
lea eax, [ebp - 0x60]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4033f2
push 4
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
jmp 0x403791
cmp dword [ebp - 0x890], ebx
je 0x40345f
cmp dword [ebp - 0x888], ebx
je 0x40345f
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40340e
lea eax, [ebp - 0x60]
push eax
call fcn.004025c7
mov edi, eax
pop ecx
mov dword [ebp - 0x898], ebx
cmp edi, 0xffffffff
je 0x40345f
lea eax, [ebp - 0x898]
push eax
push edi
call dword [ebp - 0x888]
push edi
mov dword [ebp - 0x888], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x888], ebx
je 0x40345f
mov eax, dword [ebp - 0x898]
cmp dword [ebp - 0x890], eax
jne 0x40345b
cmp dword [ebp - 0x894], eax
je 0x40345f
push 0xb
jmp 0x4033e5
lea edi, [esi + 0x64]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00402acf
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 3
jae 0x40347e
lea eax, [ebp - 0x44]
push eax
call fcn.004025c7
pop ecx
cmp eax, 0xffffffff
je 0x4034a7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401634
push 3
jmp 0x4033e5
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x4034b3
lea eax, [ebp - 0x44]
push dword [ebp - 0x88c]
push 0x3e8
push ebx
push ebx
push 1
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x34], eax
cmp byte [ebp - 0x881], bl
je 0x4034e4
push dword [ebp - 0x8a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x403500
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401634
push 2
jmp 0x4033e5
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x8a8]
push eax
push ebx
push esi
push fcn.00402fb4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x4034ea
lea ecx, [ebp - 0x474]
call fcn.00402581
lea ecx, [ebp - 0x880]
call fcn.004025a1
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
call fcn.00401c51
cmp dword [edi + 0x18], 8
mov eax, dword [esi + 0x78]
jb 0x40355c
mov edi, dword [edi + 4]
jmp 0x40355f
add edi, 4
add eax, eax
push eax
push edi
xor edi, edi
inc edi
push edi
push edi
lea eax, [ebp - 0x474]
push edi
push eax
call fcn.00402610
add esp, 0x18
push ebx
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x474]
push eax
mov ecx, esi
call fcn.00402c73
mov esi, eax
push ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push edi
cmp esi, ebx
jne 0x4035c2
cmp dword [ebp - 0x87c], ebx
je 0x4035af
call fcn.00401634
jmp 0x4033e3
call fcn.00401634
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x64]
jmp 0x40377a
call fcn.00401634
jmp 0x4033e6
mov edi, 0x402b17
push edi
push 1
mov ecx, esi
call fcn.00402ef4
push edi
push 2
mov ecx, esi
call fcn.00402ef4
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 0x4036b1
push 2
pop eax
jmp 0x40379b
add esi, 0x48
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00402a87
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 1
jae 0x40362b
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x403643
push 4
or dword [ebp - 4], 0xffffffff
pop esi
jmp 0x40378e
cmp dword [ebp - 0x890], ebx
je 0x4036a8
cmp dword [ebp - 0x888], ebx
je 0x4036a8
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40365f
lea eax, [ebp - 0x28]
push eax
call fcn.004025c7
mov esi, eax
pop ecx
mov dword [ebp - 0x88c], ebx
cmp esi, 0xffffffff
je 0x4036a8
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 0x4036a8
mov eax, dword [ebp - 0x88c]
cmp dword [ebp - 0x890], eax
jne 0x4036a4
cmp dword [ebp - 0x894], eax
je 0x4036a8
push 0xb
jmp 0x403639
or dword [ebp - 4], 0xffffffff
jmp 0x403774
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402a87
pop ecx
pop ecx
or edi, 0xffffffff
push edi
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x80]
mov dword [ebp - 4], ebx
call fcn.00401c51
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4036e3
lea eax, [ebp - 0x28]
push eax
call fcn.004025c7
pop ecx
cmp eax, edi
je 0x4036f9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
jmp 0x40373d
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x403705
lea eax, [ebp - 0x28]
push dword [ebp - 0x88c]
push 0x3e8
push ebx
push ebx
push 1
push 6
push 3
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x30], eax
cmp byte [ebp - 0x881], bl
je 0x403736
push dword [ebp - 0x8a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x30], edi
jne 0x403740
push 2
pop esi
jmp 0x40378b
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 0x403783
lea eax, [ebp - 0x894]
push eax
push ebx
push esi
push fcn.00402fb4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x40373b
mov dword [ebp - 4], edi
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401634
xor eax, eax
jmp 0x40379b
push esi
call fcn.00402fb4
mov esi, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00401634
mov eax, esi
call fcn.0048f0ae
ret 0xc