Function at 0x4080b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
push dword [ebp + 0xc]
call sym.ProcessHacker.exe_PhGetStringSetting
push eax
mov dword [esp + 0x1c], eax
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov ebx, eax
or esi, 0xffffffff
mov eax, dword [esp + 0x18]
mov edi, ebx
test eax, eax
je 0x4080ef
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4080ef
call fcn.004a2a20
push 0
push 0x3a
push ebx
call sym.ProcessHacker.exe_PhFindCharInStringRef
cmp eax, 0xffffffff
jne 0x408332
lea eax, [esp + 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4082df
cmp dword [esp + 0x20], 2
jne 0x4082df
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0xc], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408132
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x14], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [esp + 0x10]
mov edi, eax
lea ecx, [edi + 8]
xor eax, eax
mov dword [edi], edx
mov dword [edi + 4], ecx
mov word [ecx + edx], ax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x408180
push edx
push eax
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, eax
mov dword [esp + 0x24], eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408190
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x10], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], eax
lea ecx, [eax + 8]
mov dword [eax], edx
mov dword [eax + 4], ecx
xor eax, eax
mov word [ecx + edx], ax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x4081e4
push edx
push ecx
push dword [eax + 4]
call fcn.004dd620
add esp, 0xc
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov ecx, dword [edi + 4]
push 0x523054
push ecx
cmp eax, 5
jne 0x408220
mov eax, dword [0x5491d0]
push dword [eax + 4]
push 0x523054
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
mov dword [esp + 0xc], eax
mov ecx, esi
lock xadd dword [edi - 4], ecx
dec ecx
jmp 0x40823b
push 0x523054
push 3
call sym.ProcessHacker.exe_PhConcatStrings
mov dword [esp + 0x1c], eax
add esp, 0x10
mov eax, esi
lock xadd dword [edi - 4], eax
dec eax
jne 0x408245
lea ecx, [edi - 8]
call fcn.004a2a20
mov edi, dword [esp + 0x10]
push 0x523054
push dword [edi + 4]
push 0x523054
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov dword [esp + 0x10], eax
lea ecx, [edi - 8]
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jne 0x40827a
call fcn.004a2a20
mov eax, dword [esp + 0x10]
push dword [eax + 4]
mov eax, dword [esp + 0x10]
push 0x523058
push dword [eax + 4]
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
lea ecx, [ebx - 8]
mov edi, eax
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4082a7
call fcn.004a2a20
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4082bd
call fcn.004a2a20
mov ecx, dword [esp + 0xc]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4082d3
call fcn.004a2a20
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x408332
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov ecx, dword [ebx + 4]
push 0x523054
push ecx
cmp eax, 5
jne 0x40830f
mov eax, dword [0x5491d0]
push dword [eax + 4]
push 0x523054
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
jmp 0x40831e
push 0x523054
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov edi, eax
mov eax, esi
lock xadd dword [ebx - 4], eax
dec eax
jne 0x408332
lea ecx, [ebx - 8]
call fcn.004a2a20
mov eax, dword [edi + 4]
mov ebx, dword [edi]
push 0
push 0x546108
push edi
mov dword [esp + 0x30], eax
call sym.ProcessHacker.exe_PhFindStringInStringRef
cmp eax, 0xffffffff
je 0x40842d
mov ecx, dword [esp + 0x24]
lea edx, [eax + eax]
mov dword [esp + 0x14], ecx
sub ebx, edx
mov dword [esp + 0x10], edx
lea eax, [edx + ecx]
mov ecx, dword [ebp + 0x10]
add eax, dword [0x546108]
sub ebx, dword [0x546108]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408380
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x28], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor edx, edx
mov eax, dword [esp + 0x24]
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov word [ecx + eax], dx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4083d1
push eax
push ecx
push dword [ebx + 4]
call fcn.004dd620
add esp, 0xc
push ebx
call sym.ProcessHacker.exe_PhGetFileName
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], eax
push ecx
push eax
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhConcatStringRef3
mov ecx, edi
mov edi, eax
test ecx, ecx
je 0x408405
add ecx, 0xfffffff8
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x408405
call fcn.004a2a20
mov ecx, dword [esp + 0x24]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40841b
call fcn.004a2a20
lea ecx, [ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40842d
call fcn.004a2a20
cmp byte [ebp + 0x14], 0
mov eax, dword [edi + 4]
push 0
je 0x408443
push eax
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShellExecute
jmp 0x4084b3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
test eax, eax
jns 0x4084b3
cmp dword [ebp + 0x18], 0
je 0x4084a3
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
mov ebx, eax
test ebx, ebx
je 0x408474
mov eax, dword [ebx + 4]
jmp 0x408479
mov eax, 0x52305c
push dword [ebp + 0x18]
push eax
push str.Unable_to_execute_the_command:__s_n_s
push 0x10
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x14
lea ecx, [ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4084b3
call fcn.004a2a20
jmp 0x4084b3
push 0
push eax
push str.Unable_to_execute_the_command
push dword [ebp + 8]
call sym.ProcessHacker.exe_PhShowStatus
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4084c3
call fcn.004a2a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14