Function at 0x439ae0
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbce0
mov eax, dword fs:[0]
push eax
sub esp, 0x898
mov eax, dword [0x5246a8]
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 0x439b2d
mov dword [ebp - 0x888], eax
jmp 0x439b4f
lea eax, [ebp - 0x8a0]
push eax
call fcn.00438e10
mov byte [ebp - 0x881], al
test al, al
je 0x439b4f
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.00438c30
mov edi, dword [ebp + 8]
test al, al
je 0x439b9d
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x439b7a
cmp eax, 3
jne 0x439b9d
push 0x4e698c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x439b97
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.0x439ba9
jmp dword [eax*4 + 0x43a014]
push 0x439020
push 1
mov ecx, esi
call fcn.004394f0
push 0x439020
push 2
mov ecx, esi
call fcn.004394f0
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 0x439cba
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00438f20
add esp, 8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 0
call fcn.004066a0
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x439c21
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 0x439c5a
mov eax, dword [ebp - 0x89c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x30], 0xffffffff
jne 0x439c7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x2c]
cmp eax, 5
jne 0x439cb5
call fcn.00409ff0
mov eax, 3
jmp 0x439ff6
mov ecx, dword [esi + 0xc]
push ecx
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test bl, bl
je 0x439cc4
lea edx, [ebp - 0x890]
push edx
push 0
push esi
push fcn.00439600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
lea ecx, [ebp - 0x2c]
test eax, eax
jne 0x439fd7
call fcn.00409ff0
mov eax, 2
jmp 0x439ff6
push esi
call fcn.00439600
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00409ff0
mov eax, esi
jmp 0x439ff6
add esi, 0x4c
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.00438f20
add esp, 8
mov eax, dword [ebp - 0x2c]
mov esi, 8
mov dword [ebp - 4], 1
cmp dword [ebp - 0x18], esi
jae 0x439d02
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x439d21
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
mov eax, 4
jmp 0x439ff6
cmp dword [ebp - 0x88c], 0
je 0x439d8e
test ebx, ebx
je 0x439d8e
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x439d39
lea eax, [ebp - 0x2c]
call fcn.00438cc0
mov esi, eax
mov dword [ebp - 0x888], 0
cmp esi, 0xffffffff
je 0x439d8e
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 0x439d8e
mov eax, dword [ebp - 0x888]
cmp dword [ebp - 0x88c], eax
jne 0x439d7c
cmp dword [ebp - 0x890], eax
je 0x439d8e
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
mov eax, 0xb
jmp 0x439ff6
lea ecx, [ebp - 0x2c]
call fcn.00409ff0
xor eax, eax
jmp 0x439ff6
cmp dword [esi + 0x78], 0
jne 0x439dad
mov eax, 9
jmp 0x439ff6
lea edx, [esi + 0x4c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.00438f20
add esp, 8
mov eax, dword [ebp - 0x48]
mov edi, 8
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jae 0x439dd4
lea eax, [ebp - 0x48]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x439fc0
cmp dword [ebp - 0x88c], 0
je 0x439e52
test ebx, ebx
je 0x439e52
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], edi
jae 0x439dfd
lea eax, [ebp - 0x48]
call fcn.00438cc0
mov edi, eax
mov dword [ebp - 0x894], 0
cmp edi, 0xffffffff
je 0x439e52
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 0x439e52
mov eax, dword [ebp - 0x894]
cmp dword [ebp - 0x88c], eax
jne 0x439e40
cmp dword [ebp - 0x890], eax
je 0x439e52
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov eax, 0xb
jmp 0x439ff6
lea edi, [esi + 0x68]
lea edx, [ebp - 0x64]
push edi
push edx
call fcn.00438fa0
add esp, 8
mov eax, dword [ebp - 0x64]
mov ebx, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], ebx
jae 0x439e76
lea eax, [ebp - 0x64]
call fcn.00438cc0
cmp eax, 0xffffffff
je 0x439ea1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
call fcn.00409ff0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov eax, 3
jmp 0x439ff6
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0x50], ebx
jae 0x439eac
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 0x439ee1
mov edx, dword [ebp - 0x89c]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esi + 0x34], 0xffffffff
jne 0x439f01
lea ecx, [ebp - 0x64]
call fcn.00409ff0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov eax, 2
jmp 0x439ff6
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.00439600
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x38], eax
cmp eax, ebx
je 0x439ee7
lea ecx, [ebp - 0x880]
call fcn.00438de0
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.004b7180
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x64]
push eax
lea ecx, [esi + 0x84]
call fcn.004066a0
cmp dword [edi + 0x14], 8
mov ecx, dword [esi + 0x78]
jb 0x439f79
mov eax, dword [edi]
jmp 0x439f7b
mov eax, edi
add ecx, ecx
push ecx
push eax
push 1
push 1
lea edx, [ebp - 0x880]
push 1
push edx
call fcn.00438ce0
add esp, 0x18
push ebx
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x880]
push ecx
mov ecx, esi
call fcn.004392b0
mov esi, eax
lea ecx, [ebp - 0x64]
cmp esi, ebx
jne 0x439fe0
cmp dword [ebp - 0x46c], ebx
je 0x439fcf
call fcn.00409ff0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov eax, 4
jmp 0x439ff6
call fcn.00409ff0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
xor eax, eax
jmp 0x439ff6
call fcn.00409ff0
lea ecx, [ebp - 0x48]
call fcn.00409ff0
mov eax, esi
jmp 0x439ff6
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