Function at 0x40a100
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], eax
call sym.ProcessHacker.exe_PhGetApplicationDirectory
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x40a1a3
push 0xc0000225
call sym.ProcessHacker.exe_PhGetNtMessage
mov esi, eax
test esi, esi
je 0x40a17a
push dword [esi + 4]
push 0x54ace8
push str.Unable_to_locate_the_application_directory.
push 0xfffe
push 0x20
push ebx
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jmp 0x40a532
push str.Unable_to_locate_the_application_directory.
push 0x57e1d4
push 0x10
push ebx
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14
push esi
call sym.ProcessHacker.exe_PhGetStringSetting
push eax
mov dword [esp + 0x30], eax
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov ebx, eax
or esi, 0xffffffff
mov eax, dword [esp + 0x2c]
mov edi, ebx
test eax, eax
je 0x40a1d6
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a1d6
call fcn.004b3960
push 0
push 0x3a
push ebx
call sym.ProcessHacker.exe_PhFindCharInStringRef
cmp eax, 0xffffffff
jne 0x40a38d
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x40a336
cmp dword [esp + 0x38], 2
jne 0x40a336
push dword [eax]
call sym.ProcessHacker.exe_PhCreateString
mov edi, eax
mov eax, dword [esp + 0x2c]
push dword [eax + 4]
call sym.ProcessHacker.exe_PhCreateString
push dword [edi + 4]
mov dword [esp + 0x28], eax
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov ecx, dword ds:[edi + 4]
push 0x56afa0
push ecx
cmp eax, 5
jne 0x40a271
mov eax, dword [esp + 0x24]
push dword [eax + 4]
push 0x56afa0
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
mov dword [esp + 0x14], eax
test edi, edi
je 0x40a29a
lea ecx, [edi - 8]
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jmp 0x40a293
push 0x56afa0
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov dword [esp + 0x14], eax
test edi, edi
je 0x40a29a
lea ecx, [edi - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a29a
call fcn.004b3960
mov eax, dword [esp + 0x24]
push 0x56afa0
push dword [eax + 4]
push 0x56afa0
push 3
call sym.ProcessHacker.exe_PhConcatStrings
mov ecx, dword [esp + 0x34]
mov edi, eax
add esp, 0x10
mov dword [esp + 0x10], edi
add ecx, 0xfffffff8
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jne 0x40a2d1
call fcn.004b3960
push dword [edi + 4]
mov eax, dword [esp + 0x18]
push 0x56afa4
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 0x40a2fe
call fcn.004b3960
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a314
call fcn.004b3960
mov ecx, dword [esp + 0x14]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a32a
call fcn.004b3960
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40a38d
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov ecx, dword [ebx + 4]
push 0x56afa0
push ecx
cmp eax, 5
jne 0x40a36a
mov eax, dword ds:[esp + 0x24]
push dword [eax + 4]
push 0x56afa0
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
jmp 0x40a379
push 0x56afa0
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 0x40a38d
lea ecx, [ebx - 8]
call fcn.004b3960
lea eax, ds:[esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x5ae1a8
push edi
call sym.ProcessHacker.exe_PhSplitStringRefAtString
test al, al
je 0x40a468
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a3b4
push dword [0x5b1d70]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [esp + 0x14], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor edx, edx
mov eax, dword [esp + 0x10]
lea ecx, [ebx + 8]
mov dword [ebx + 4], ecx
mov dword [ebx], eax
mov word [ecx + eax], dx
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40a408
push eax
push ecx
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
push ebx
call sym.ProcessHacker.exe_PhGetFileName
lea ecx, ds:[esp + 0x2c]
mov dword [esp + 0x10], eax
push ecx
push eax
lea eax, [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhConcatStringRef3
mov ecx, edi
mov edi, eax
test ecx, ecx
je 0x40a43f
add ecx, 0xfffffff8
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a43f
call fcn.004b3960
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a455
call fcn.004b3960
lea ecx, ds:[ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a468
call fcn.004b3960
cmp byte [ebp + 0x14], 0
mov eax, dword [edi + 4]
push 0
je 0x40a485
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShellExecute
lea ecx, [ecx]
jmp 0x40a510
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 0x40a510
cmp dword [esp + 0x34], 0
lfence
je 0x40a4ff
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
mov ebx, eax
test ebx, ebx
je 0x40a4bd
lfence
mov eax, dword [ebx + 4]
jmp 0x40a4c2
mov eax, 0x56afa8
push dword ds:[esp + 0x34]
push eax
push str._s_n_s
push str.Unable_to_execute_the_command.
push 0xfffe
push 0x20
push dword [esp + 0x30]
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x1c
lea ecx, [ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a510
lfence
call fcn.004b3960
jmp 0x40a510
push 0
push eax
push str.Unable_to_execute_the_command.
push dword [esp + 0x24]
call sym.ProcessHacker.exe_PhShowStatus
lea ecx, [edi - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40a525
lea ecx, [ecx]
call fcn.004b3960
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x40a539
call fcn.004b3960
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 0x14