Function at 0x40c300
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x5c7004]
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 0x40c3a3
push 0xc0000225
call sym.ProcessHacker.exe_PhGetNtMessage
mov esi, eax
test esi, esi
je 0x40c37a
push dword [esi + 4]
push 0x5634d8
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 0x40c732
push str.Unable_to_locate_the_application_directory.
push 0x5981b0
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.00534c91
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 0x40c3d6
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c3d6
call fcn.004c1f60
push 0
push 0x3a
push ebx
call sym.ProcessHacker.exe_PhFindCharInStringRef
cmp eax, 0xffffffff
jne 0x40c58d
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 0x40c536
cmp dword [esp + 0x38], 2
jne 0x40c536
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 0x5838c0
push ecx
cmp eax, 5
jne 0x40c471
mov eax, dword [esp + 0x24]
push dword [eax + 4]
push 0x5838c0
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
mov dword [esp + 0x14], eax
test edi, edi
je 0x40c49a
lea ecx, [edi - 8]
mov edx, esi
lock xadd dword [ecx + 4], edx
dec edx
jmp 0x40c493
push 0x5838c0
push 3
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x10
mov dword [esp + 0x14], eax
test edi, edi
je 0x40c49a
lea ecx, [edi - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c49a
call fcn.004c1f60
mov eax, dword [esp + 0x24]
push 0x5838c0
push dword [eax + 4]
push 0x5838c0
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 0x40c4d1
call fcn.004c1f60
push dword [edi + 4]
mov eax, dword [esp + 0x18]
push 0x5838c4
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 0x40c4fe
call fcn.004c1f60
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c514
call fcn.004c1f60
mov ecx, dword [esp + 0x14]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c52a
call fcn.004c1f60
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40c58d
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDetermineDosPathNameType_U]
mov ecx, dword [ebx + 4]
push 0x5838c0
push ecx
cmp eax, 5
jne 0x40c56a
mov eax, dword ds:[esp + 0x24]
push dword [eax + 4]
push 0x5838c0
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
jmp 0x40c579
push 0x5838c0
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 0x40c58d
lea ecx, [ebx - 8]
call fcn.004c1f60
lea eax, ds:[esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push 0x5c9568
push edi
call sym.ProcessHacker.exe_PhSplitStringRefAtString
test al, al
je 0x40c668
mov ecx, dword [esp + 0x20]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c5b4
push dword [0x5cd4f8]
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 0x40c608
push eax
push ecx
push dword [ebx + 4]
call fcn.00537fe0
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 0x40c63f
add ecx, 0xfffffff8
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c63f
call fcn.004c1f60
mov ecx, dword [esp + 0x10]
mov eax, esi
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c655
call fcn.004c1f60
lea ecx, ds:[ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x40c668
call fcn.004c1f60
cmp byte [ebp + 0x14], 0
mov eax, dword [edi + 4]
push 0
je 0x40c685
push eax
push dword [esp + 0x20]
call sym.ProcessHacker.exe_PhShellExecute
lea ecx, [ecx]
jmp 0x40c710
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 0x40c710
cmp dword [esp + 0x34], 0
lfence
je 0x40c6ff
push eax
call sym.ProcessHacker.exe_PhGetNtMessage
mov ebx, eax
test ebx, ebx
je 0x40c6bd
lfence
mov eax, dword [ebx + 4]
jmp 0x40c6c2
mov eax, 0x5838c8
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 0x40c710
lfence
call fcn.004c1f60
jmp 0x40c710
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 0x40c725
lea ecx, [ecx]
call fcn.004c1f60
mov ecx, dword [esp + 0x1c]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], esi
dec esi
jne 0x40c739
call fcn.004c1f60
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0x14