Function at 0x4034a3
Capabilities:
Create pipe
Create thread

Disassembly:
push 0x89c
mov eax, 0x4c5256
call fcn.0048e6bb
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 0x4034e5
lea eax, [ebp - 0x8a4]
push eax
call fcn.00402a16
mov byte [ebp - 0x881], al
cmp al, bl
je 0x4034eb
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.004025b9
test al, al
je 0x40353f
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x403519
cmp eax, 3
jne 0x40353f
push str.GetNamedPipeServerProcessId
push 0x4cdc28
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 0x40379e
dec eax
je 0x4037c2
dec eax
je 0x403785
dec eax
je 0x403562
push 8
jmp 0x4037bc
cmp dword [esi + 0x78], ebx
jne 0x40356e
push 9
jmp 0x4037bc
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00402a94
pop ecx
pop ecx
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 4], 2
jae 0x403590
lea eax, [ebp - 0x60]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4035ab
push 4
pop esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
jmp 0x40394a
cmp dword [ebp - 0x890], ebx
je 0x403618
cmp dword [ebp - 0x888], ebx
je 0x403618
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x4035c7
lea eax, [ebp - 0x60]
push eax
call fcn.0040262e
mov edi, eax
pop ecx
mov dword [ebp - 0x898], ebx
cmp edi, 0xffffffff
je 0x403618
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 0x403618
mov eax, dword [ebp - 0x898]
cmp dword [ebp - 0x890], eax
jne 0x403614
cmp dword [ebp - 0x894], eax
je 0x403618
push 0xb
jmp 0x40359e
lea edi, [esi + 0x64]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00402adc
pop ecx
pop ecx
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 3
jae 0x403637
lea eax, [ebp - 0x44]
push eax
call fcn.0040262e
pop ecx
cmp eax, 0xffffffff
je 0x403660
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401626
push 3
jmp 0x40359e
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x40366c
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 0x40369d
push dword [ebp - 0x8a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x4036b9
push ebx
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00401626
push 2
jmp 0x40359e
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x8a8]
push eax
push ebx
push esi
push fcn.00403172
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x4036a3
lea ecx, [ebp - 0x474]
call fcn.00402573
lea ecx, [ebp - 0x880]
call fcn.00402593
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x48]
push eax
lea ecx, [esi + 0x80]
call fcn.00401c43
cmp dword [edi + 0x18], 8
mov eax, dword [esi + 0x78]
jb 0x403715
mov edi, dword [edi + 4]
jmp 0x403718
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.00402677
add esp, 0x18
push ebx
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0x474]
push eax
mov ecx, esi
call fcn.00402c80
mov esi, eax
push ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push edi
cmp esi, ebx
jne 0x40377b
cmp dword [ebp - 0x87c], ebx
je 0x403768
call fcn.00401626
jmp 0x40359c
call fcn.00401626
or dword [ebp - 4], 0xffffffff
push ebx
push edi
lea ecx, [ebp - 0x64]
jmp 0x403933
call fcn.00401626
jmp 0x40359f
mov edi, 0x402b24
push edi
push 1
mov ecx, esi
call fcn.004030b4
push edi
push 2
mov ecx, esi
call fcn.004030b4
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 0x40386a
push 2
pop eax
jmp 0x403954
add esi, 0x48
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00402a94
pop ecx
pop ecx
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], 1
jae 0x4037e4
lea eax, [ebp - 0x28]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x4037fc
push 4
or dword [ebp - 4], 0xffffffff
pop esi
jmp 0x403947
cmp dword [ebp - 0x890], ebx
je 0x403861
cmp dword [ebp - 0x888], ebx
je 0x403861
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x403818
lea eax, [ebp - 0x28]
push eax
call fcn.0040262e
mov esi, eax
pop ecx
mov dword [ebp - 0x88c], ebx
cmp esi, 0xffffffff
je 0x403861
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 0x403861
mov eax, dword [ebp - 0x88c]
cmp dword [ebp - 0x890], eax
jne 0x40385d
cmp dword [ebp - 0x894], eax
je 0x403861
push 0xb
jmp 0x4037f2
or dword [ebp - 4], 0xffffffff
jmp 0x40392d
lea eax, [esi + 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402a94
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.00401c43
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40389c
lea eax, [ebp - 0x28]
push eax
call fcn.0040262e
pop ecx
cmp eax, edi
je 0x4038b2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 3
jmp 0x4038f6
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4038be
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 0x4038ef
push dword [ebp - 0x8a0]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x30], edi
jne 0x4038f9
push 2
pop esi
jmp 0x403944
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 0x40393c
lea eax, [ebp - 0x894]
push eax
push ebx
push esi
push fcn.00403172
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x4038f4
mov dword [ebp - 4], edi
push ebx
lea ecx, [ebp - 0x2c]
push 1
call fcn.00401626
xor eax, eax
jmp 0x403954
push esi
call fcn.00403172
mov esi, eax
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2c]
push ebx
push 1
call fcn.00401626
mov eax, esi
call fcn.0048e73e
ret 0xc