Function at 0x603e80
Capabilities:
Get common file path
Patch process command line

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x68c
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [esp], str.ntdll.dll
call esi
sub esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.NtQueryInformationProcess
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
je 0x603fb5
mov edi, eax
mov dword [esp], str.ntdll.dll
call esi
sub esp, 4
mov dword [esp + 4], str.RtlEnterCriticalSection
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov ebp, eax
je 0x603fb5
mov dword [esp], str.ntdll.dll
call esi
sub esp, 4
mov dword [esp + 4], str.RtlLeaveCriticalSection
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [esp + 0x20], eax
je 0x603fb5
mov dword [esp], str.ntdll.dll
call esi
sub esp, 4
mov dword [esp + 4], str.RtlInitUnicodeString
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [esp + 0x24], eax
je 0x603fb5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov dword [esp], 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x603fb5
lea eax, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x18
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 8], eax
call edi
sub esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x603fc2
xor eax, eax
add esp, 0x68c
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x40]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
add eax, 0xc
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x603fb5
lea eax, [esp + 0x476]
mov dword [esp + 4], 0x104
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
sub esp, 8
lea eax, [esp + 0x476]
mov dword [esp + 8], str.explorer.exe
mov dword [esp + 4], 0x105
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_wcscat_s]
mov dword [esp], 0x104
call sub.msvcrt.dll_malloc
mov edi, eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x476]
mov dword [esp], edi
mov dword [esp + 4], 0x104
mov dword [esp + 8], eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
call ebp
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov ebp, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
add eax, 0x38
mov dword [esp], eax
call ebp
sub esp, 8
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov eax, dword [eax + 0x10]
add eax, 0x40
mov dword [esp], eax
call ebp
sub esp, 8
lea ebp, [esp + 0x26e]
mov dword [esp + 8], 0x104
mov dword [esp], 0
mov dword [esp + 4], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov eax, dword [esp + 0x3c]
lea edi, [esp + 0x66]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], eax
jmp 0x604130
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], 0
movzx edx, word [eax + 0x26]
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov eax, dword [eax + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
je 0x603fb5
mov dword [esp + 4], edi
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x604161
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x48], eax
je 0x60418f
lea eax, [esp + 0x44]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 4
mov dword [esp], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x48]
mov dword [esp + 4], eax
call esi
sub esp, 0x14
test eax, eax
jne 0x6040e0
jmp 0x603fb5
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
add eax, 0x24
mov dword [esp + 4], esi
mov dword [esp], eax
call ebp
sub esp, 8
mov eax, dword [esp + 0x44]
mov dword [esp + 4], esi
add eax, 0x2c
mov dword [esp], eax
call ebp
sub esp, 8
mov eax, dword [esp + 0x3c]
mov eax, dword [eax + 0x1c]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
call eax
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [esp + 0x476]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
setne al
movzx eax, al
jmp 0x603fb7