Function at 0x418800
Capabilities:
Create pipe
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49bbd2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x4cc3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x1c], eax
cmp eax, 0xffffffff
je 0x418a88
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00471ea9
mov ebx, dword [esi + 0x18]
add esp, 4
xor edi, edi
mov dword [esi + 0x20], eax
test ebx, ebx
jle 0x4188a8
lea esp, [esp]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x418b20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x20]
mov dword [ecx + edi*4], eax
mov eax, dword [esi + 0x20]
cmp dword [eax + edi*4], 0
je 0x418a88
mov ebx, dword [esi + 0x18]
inc edi
cmp edi, ebx
jl 0x418870
xor ecx, ecx
mov dword [ebp - 0x18], ebx
mov eax, ebx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00471ea9
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4188fa
push 0x417fb0
push 0x417d30
push ebx
lea edi, [eax + 4]
mov dword [eax], ebx
push 8
push edi
call fcn.004723fa
jmp 0x4188fc
xor edi, edi
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov edx, 0x1c
mov dword [ebp - 4], 0xffffffff
mul edx
mov dword [esi + 0x28], edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00471ea9
xor ebx, ebx
mov dword [esi + 0x24], eax
add esp, 4
cmp dword [esi + 0x18], ebx
jle 0x418a71
mov dword [ebp - 0x10], ebx
push 0xa0
call fcn.00471e6b
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
je 0x418999
push 0x90
push 0
push edi
call fcn.00473e20
add esp, 0xc
mov dword [edi + 0x88], 0xbadbeef
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [edi + 0x84], eax
mov dword [edi + 0x90], vtable.wh::MemBuffer.0
mov dword [edi + 0x94], 0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
jmp 0x41899b
xor edi, edi
mov eax, dword [esi + 0x24]
mov ecx, dword [ebp - 0x10]
push 1
mov dword [ecx + eax + 0x18], edi
mov eax, dword [esi + 0x28]
lea edi, [eax + ebx*8]
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
push eax
mov dword [edi + 4], esi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
test ebx, ebx
mov eax, 0x40000003
mov dword [ebp - 0x24], 0xc
mov ecx, 0x40080003
cmovne ecx, eax
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x418a1f
mov eax, dword [esi]
lea edx, [ebp - 0x24]
push edx
push 0
push 0x400
push 0x400
push 0xff
push 6
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x418a88
push 0
push edi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, dword [ebp - 0x14]
jne 0x418a88
push 0
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00418220
add dword [ebp - 0x10], 0x1c
inc ebx
cmp ebx, dword [esi + 0x18]
jl 0x418933
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret