Function at 0x46a308
Capabilities:
Create pipe
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x7c
mov eax, dword [0x4b507c]
mov edi, dword [esp + 0xb0]
xor eax, esp
mov dword [esp + 0x78], eax
push 0xd
push edi
call fcn.00403081
add esp, 8
xor esi, esi
cmp eax, 5
jne 0x46a52d
mov ebx, dword [esp + 0xac]
mov ebp, dword [esp + 0x90]
push edi
push dword [esp + 0x9c]
push ebp
call fcn.00419396
add esp, 0xc
mov esi, eax
push ebp
call fcn.0046830a
add esp, 4
push esi
push str.Starting_local_proxy_command:__s
call fcn.004558cb
add esp, 8
mov edi, eax
mov eax, dword [ebx]
xor ebp, ebp
push ebp
push edi
push ebp
push ebp
push 2
push ebx
call dword [eax]
add esp, 0x18
push edi
call fcn.00410bcd
add esp, 4
lea edi, [esp + 0x54]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x6c]
mov dword [edi], 0xc
mov dword [edi + 4], ebp
mov dword [edi + 8], 1
push ebp
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x46a4c0
lea eax, [esp + 0x74]
lea ecx, [esp + 0x70]
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x46a4cb
lea eax, [esp + 0x60]
lea ecx, [esp + 0x64]
push 0
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x46a4e6
mov ebx, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor edi, edi
xor ebp, ebp
inc ebp
push edi
push ebp
push dword [esp + 0x7c]
call ebx
push edi
push ebp
push dword [esp + 0x74]
call ebx
mov eax, dword [esp + 0x64]
test eax, eax
je 0x46a41c
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x10]
mov dword [eax], 0x44
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x2c], 0x100
mov word [eax + 0x32], 0
mov dword [eax + 0x34], edi
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ebx
mov ebx, esp
mov dword [eax + 0x40], edx
push ebx
push eax
push edi
push edi
push 0x8000020
push 1
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebx]
call edi
push dword [ebx + 4]
call edi
push esi
call fcn.00410bcd
add esp, 4
push dword [esp + 0x70]
call edi
push dword [esp + 0x68]
call edi
mov eax, dword [esp + 0x60]
test eax, eax
je 0x46a49e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [esp + 0xb0]
push dword [esp + 0x6c]
push dword [esp + 0x78]
push dword [esp + 0x84]
call fcn.00465f74
add esp, 0x14
jmp 0x46a52b
push esi
call fcn.00410bcd
add esp, 4
jmp 0x46a50d
push esi
call fcn.00410bcd
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
jmp 0x46a50b
push esi
call fcn.00410bcd
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x6c]
call esi
push dword [esp + 0x68]
call esi
push dword [esp + 0x74]
call esi
push dword [esp + 0x70]
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00466ec1
add esp, 4
push eax
push str.Unable_to_create_pipes_for_proxy_command:__s
push ebx
call fcn.0040e52c
add esp, 0xc
mov esi, eax
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0046f0c8
mov eax, esi
add esp, 0x7c
pop esi
pop edi
pop ebx
pop ebp
ret