Function at 0x46aa00
Capabilities:
Connect pipe
Create pipe
Create thread
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d0b58
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f59b8]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
lea esi, [edi + 4]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x3c]
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
jmp 0x46aa56
mov edi, dword [esp + 0x14]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov esi, 7
push esi
push str.S_1_1_0
lea ecx, [esp + 0x44]
mov dword [esp + 0x90], ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00402f90
push 5
push 0x10000000
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 1
call fcn.0046a950
cmp dword [esp + 0x54], 8
mov byte [esp + 0x88], bl
jb 0x46aace
mov edx, dword [esp + 0x40]
push edx
call fcn.0049f16d
add esp, 4
push esi
push 0x4d816c
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], bx
call fcn.00402f90
push 2
push 0x10000000
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x94], 2
call fcn.0046a950
cmp dword [esp + 0x54], 8
mov byte [esp + 0x88], bl
jb 0x46ab22
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0049f16d
add esp, 4
lea ecx, [esp + 0x58]
call fcn.00469990
mov esi, eax
cmp esi, ebx
jne 0x46aca8
cmp dword [edi + 0x34], 8
jb 0x46ab40
mov eax, dword [edi + 0x20]
jmp 0x46ab43
lea eax, [edi + 0x20]
lea edx, [esp + 0x58]
push edx
push ebx
push 0x1000
push 0x1000
push 0xff
push 6
push 0x40000003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46aca0
push ebx
push 1
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x46acca
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x217
je 0x46abbc
cmp eax, 0x3e5
je 0x46abc7
call edi
push esi
mov edi, eax
call ebp
mov ecx, dword [esp + 0x38]
push ecx
jmp 0x46ad0a
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x28]
push ecx
push 2
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esp + 0x38]
push edx
mov edi, eax
call ebp
cmp edi, 1
je 0x46acdc
cmp edi, ebx
jne 0x46ad01
push 8
call fcn.0049f7e2
add esp, 4
cmp eax, ebx
je 0x46ac1d
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x38]
mov dword [eax], esi
mov dword [eax + 4], ecx
jmp 0x46ac1f
xor eax, eax
lea edx, [esp + 0x1c]
push edx
push ebx
push eax
push 0x469630
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x46ad01
push eax
call ebp
mov eax, dword [esp + 0x74]
cmp eax, ebx
je 0x46ac4d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x46ac5c
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x7c]
cmp eax, ebx
je 0x46ac6d
push eax
call fcn.0049fdaa
add esp, 4
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x46aa52
mov ecx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x70]
lea edx, [esp + 0x68]
push edx
push ecx
push eax
call fcn.00469e20
mov edx, dword [esp + 0x78]
push edx
call fcn.0049f16d
add esp, 0x14
jmp 0x46aa52
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [esp + 0x58]
call fcn.0046a400
mov eax, esi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebp
mov eax, dword [esp + 0x38]
push eax
jmp 0x46ad0a
push esi
call ebp
lea ecx, [esp + 0x58]
call fcn.0046a400
xor eax, eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebp
lea ecx, [esp + 0x58]
call fcn.0046a400
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret