Function at 0x439b20
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbd30
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x5256a8]
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 eax, dword [ebp + 0x10]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x888], ebx
mov byte [ebp - 0x881], bl
cmp eax, ebx
je 0x439b6d
mov dword [ebp - 0x888], eax
jmp 0x439b8f
lea eax, [ebp - 0x8a0]
push eax
call fcn.00438e50
mov byte [ebp - 0x881], al
test al, al
je 0x439b8f
lea ecx, [ebp - 0x8a0]
mov dword [ebp - 0x888], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x890], eax
mov dword [ebp - 0x88c], ebx
call fcn.00438c90
mov edi, dword [ebp + 8]
test al, al
je 0x439bdd
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x439bba
cmp eax, 3
jne 0x439bdd
push 0x4e798c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439bd7
push str.GetNamedPipeServerProcessId
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov dword [ebp - 0x88c], edi
mov eax, dword [esi + 0x14]
cmp eax, 3
ja case.default.0x439be9
jmp dword [eax*4 + 0x43a054]
push 0x439060
push 1
mov ecx, esi
call fcn.00439530
push 0x439060
push 2
mov ecx, esi
call fcn.00439530
mov bl, byte [ebp + 0xc]
push 0
push 0
push 1
push 0
mov byte [esi + 0x11], bl
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xc], eax
test eax, eax
je 0x439cfa
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00438f60
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 0
call fcn.00406690
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x439c61
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x888]
push edx
push 0x3e8
push 0
push 0
push 1
push 6
push 0x80003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp byte [ebp - 0x881], 0
mov dword [esi + 0x30], eax
je 0x439c9a
mov eax, dword [ebp - 0x89c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x30], 0xffffffff
jne 0x439cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
cmp eax, 5
jne 0x439cf5
call fcn.00409fe0
mov eax, 3
jmp 0x43a036
mov ecx, dword [esi + 0xc]
push ecx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x439d04
lea edx, [ebp - 0x890]
push edx
push 0
push esi
push fcn.00439640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x43a017
call fcn.00409fe0
mov eax, 2
jmp 0x43a036
push esi
call fcn.00439640
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00409fe0
mov eax, esi
jmp 0x43a036
add esi, 0x4c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00438f60
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x439d42
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x439d61
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
mov eax, 4
jmp 0x43a036
cmp dword [ebp - 0x88c], 0
je 0x439dce
test ebx, ebx
je 0x439dce
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x439d79
lea eax, [ebp - 0x2c]
call fcn.00438d20
mov esi, eax
mov dword [ebp - 0x888], 0
cmp esi, 0xffffffff
je 0x439dce
lea ecx, [ebp - 0x888]
push ecx
push esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x439dce
mov eax, dword [ebp - 0x888]
cmp dword [ebp - 0x88c], eax
jne 0x439dbc
cmp dword [ebp - 0x890], eax
je 0x439dce
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
mov eax, 0xb
jmp 0x43a036
lea ecx, [ebp - 0x2c]
call fcn.00409fe0
xor eax, eax
jmp 0x43a036
cmp dword [esi + 0x78], 0
jne 0x439ded
mov eax, 9
jmp 0x43a036
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00438f60
add esp, 8
mov eax, dword [ebp - 0x48]
mov edi, 8
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jae 0x439e14
lea eax, [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x43a000
cmp dword [ebp - 0x88c], 0
je 0x439e92
test ebx, ebx
je 0x439e92
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x439e3d
lea eax, [ebp - 0x48]
call fcn.00438d20
mov edi, eax
mov dword [ebp - 0x894], 0
cmp edi, 0xffffffff
je 0x439e92
lea ecx, [ebp - 0x894]
push ecx
push edi
call ebx
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x439e92
mov eax, dword [ebp - 0x894]
cmp dword [ebp - 0x88c], eax
jne 0x439e80
cmp dword [ebp - 0x890], eax
je 0x439e92
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov eax, 0xb
jmp 0x43a036
lea edi, [esi + 0x68]
lea edx, [ebp - 0x64]
push edi
push edx
call fcn.00438fe0
add esp, 8
mov eax, dword [ebp - 0x64]
mov ebx, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], ebx
jae 0x439eb6
lea eax, [ebp - 0x64]
call fcn.00438d20
cmp eax, 0xffffffff
je 0x439ee1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov eax, 3
jmp 0x43a036
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x439eec
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0x888]
push ecx
push 0x3e8
xor ebx, ebx
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 0x439f21
mov edx, dword [ebp - 0x89c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x439f41
lea ecx, [ebp - 0x64]
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov eax, 2
jmp 0x43a036
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [ebp - 0x8a4]
push ecx
push ebx
push esi
push fcn.00439640
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x439f27
lea ecx, [ebp - 0x880]
call fcn.00438e20
push 0x400
lea edx, [ebp - 0x464]
push ebx
push edx
mov dword [ebp - 0x470], ebx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x468], ebx
call fcn.004b7120
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x84]
call fcn.00406690
cmp dword [edi + 0x14], 8
mov ecx, dword [esi + 0x78]
jb 0x439fb9
mov eax, dword [edi]
jmp 0x439fbb
mov eax, edi
add ecx, ecx
push ecx
push eax
push 1
push 1
lea edx, [ebp - 0x880]
push 1
push edx
call fcn.00438d40
add esp, 0x18
push ebx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x880]
push ecx
mov ecx, esi
call fcn.004392f0
mov esi, eax
lea ecx, [ebp - 0x64]
cmp esi, ebx
jne 0x43a020
cmp dword [ebp - 0x46c], ebx
je 0x43a00f
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov eax, 4
jmp 0x43a036
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
xor eax, eax
jmp 0x43a036
call fcn.00409fe0
lea ecx, [ebp - 0x48]
call fcn.00409fe0
mov eax, esi
jmp 0x43a036
mov eax, 8
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.00401306
mov esp, ebp
pop ebp
ret 0xc