Function at 0x418f36
Capabilities:
Accept command line arguments
Connect to wmi namespace via wbemlocator
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f720b
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x52ec00]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], 3
cmp eax, ebx
je 0x419006
mov dword [esp + 0x64], ebx
xor eax, eax
lea edi, [esp + 0x68]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [esp + 0x34], ebx
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], ebx
cmp eax, ebx
je 0x419000
push eax
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x419000
lea eax, [esp + 0x34]
push eax
push 0x18
lea eax, [esp + 0x6c]
push eax
push ebx
push edi
call dword [esp + 0x44]
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], ebx
jne 0x419006
mov eax, dword [esp + 0x78]
cmp eax, ebx
je 0x41900d
inc dword [esp + 0x24]
mov dword [esi], eax
add esi, 0xc
cmp dword [esp + 0x24], 2
jl 0x418fae
cmp dword [esp + 0x20], ebx
je 0x41900d
xor eax, eax
jmp 0x419350
push ebx
push ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jge 0x419035
cmp eax, 0x80010119
jne 0x41934d
mov dword [esp + 0x28], ebx
lea eax, [esp + 0x28]
push eax
push 0x507390
push 1
push ebx
push 0x507460
mov dword [esp + 0x9c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x419337
mov dword [esp + 0x24], ebx
mov byte [esp + 0x88], 1
mov esi, dword [esp + 0x28]
push 0x514040
lea edi, [esp + 0x38]
call fcn.00414806
mov byte [esp + 0x88], 2
mov eax, dword [eax]
cmp eax, ebx
je 0x419090
mov eax, dword [eax]
jmp 0x419092
xor eax, eax
mov ecx, dword [esi]
lea edx, [esp + 0x24]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
lea edi, [esp + 0x34]
mov esi, eax
mov byte [esp + 0x88], 1
call fcn.0041493c
cmp esi, ebx
jl 0x419322
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [esp + 0x40]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, ebx
jl 0x419322
mov esi, dword [ebp + 8]
add esi, 8
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], 2
cmp dword [esi - 8], ebx
je 0x41930d
mov eax, dword [0x545cc4]
mov ecx, 0x545cc4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x88], 3
push dword [esi - 8]
lea eax, [esp + 0x24]
push str.SELECT_Name_CommandLine_FROM_Win32_Process_where_ProcessId_d
call fcn.00405e6e
pop ecx
pop ecx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x24]
push dword [esp + 0x20]
lea edi, [esp + 0x44]
mov dword [esp + 0x3c], eax
call fcn.00414806
mov esi, eax
push 0x5146c4
lea edi, [esp + 0x40]
mov byte [esp + 0x8c], 5
call fcn.00414806
mov byte [esp + 0x88], 6
mov ecx, dword [esi]
cmp ecx, ebx
je 0x419170
mov ecx, dword [ecx]
jmp 0x419172
xor ecx, ecx
mov eax, dword [eax]
cmp eax, ebx
je 0x41917c
mov edx, dword [eax]
jmp 0x41917e
xor edx, edx
mov eax, dword [esp + 0x38]
mov esi, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ebx
push 0x30
push ecx
push edx
push eax
call dword [esi + 0x50]
lea edi, [esp + 0x3c]
mov esi, eax
call fcn.0041493c
lea edi, [esp + 0x40]
call fcn.0041493c
cmp esi, ebx
jl 0x4192e3
mov dword [esp + 0x14], ebx
mov byte [esp + 0x88], 7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
cmp eax, ebx
je 0x4192cd
mov ecx, dword [eax]
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x4192cd
cmp dword [esp + 0x14], ebx
je 0x4192cd
cmp dword [esp + 0x2c], ebx
je 0x4192cd
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esp + 0x44]
push eax
call esi
push ebx
push ebx
lea edx, [esp + 0x4c]
push edx
push ebx
mov byte [esp + 0x98], 8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push str.Name
push eax
call dword [ecx + 0x10]
lea eax, [esp + 0x54]
push eax
call esi
push ebx
push ebx
lea edx, [esp + 0x5c]
push edx
push ebx
mov byte [esp + 0x98], 9
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push str.CommandLine
push eax
call dword [ecx + 0x10]
cmp word [esp + 0x44], 8
jne 0x4192b9
cmp word [esp + 0x54], 8
jne 0x4192b9
cmp dword [esp + 0x4c], ebx
je 0x419281
mov esi, dword [esp + 0x18]
push dword [esp + 0x4c]
add esi, 0xfffffffc
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push esi
call fcn.00406723
mov eax, esi
call fcn.00419657
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x60]
mov dword [esp + 0x38], ebx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [esp + 0x30], 1
mov esi, eax
jle 0x4192b2
push dword [esi + 4]
push dword [esp + 0x1c]
call fcn.00406723
mov eax, dword [esp + 0x18]
call fcn.00419657
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [esp + 0x54]
push eax
call esi
lea eax, [esp + 0x44]
push eax
call esi
mov byte [esp + 0x88], 4
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4192e3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x88], 3
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4192f9
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x88], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.00406ace
mov esi, dword [esp + 0x18]
add esi, 0xc
dec dword [esp + 0x34]
mov dword [esp + 0x18], esi
jne 0x4190ed
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x419337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x88], 0xffffffff
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x41934d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret