Function at 0x475620
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x664
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.NtQueryInformationProcess
push str.ntdll.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebx, eax
test ebx, ebx
je 0x4758a4
push str.RtlEnterCriticalSection
push str.ntdll.dll
call esi
push eax
call edi
mov dword [ebp - 0x65c], eax
test eax, eax
je 0x4758a4
push str.RtlLeaveCriticalSection
push str.ntdll.dll
call esi
push eax
call edi
mov dword [ebp - 0x660], eax
test eax, eax
je 0x4758a4
push str.RtlInitUnicodeString
push str.ntdll.dll
call esi
push eax
call edi
mov dword [ebp - 0x658], eax
test eax, eax
je 0x4758a4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0
mov esi, eax
lea eax, [ebp - 0x640]
push 0x18
push eax
push 0
push esi
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x644]
push 0
push 4
push eax
lea eax, [ebp - 0x63c]
push eax
push esi
call edi
test eax, eax
je 0x4758a4
push 0
push 4
lea eax, [ebp - 0x650]
push eax
mov eax, dword [ebp - 0x644]
add eax, 0xc
push eax
push esi
call edi
test eax, eax
je 0x4758a4
push 0x104
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
push str.explorer.exe
lea eax, [ebp - 0x420]
push 0x105
push eax
call fcn.00550780
push 0x208
call fcn.0055016a
mov ebx, eax
lea eax, [ebp - 0x420]
push eax
push 0x104
push ebx
mov dword [ebp - 0x654], ebx
call fcn.00550106
mov ecx, dword [ebp - 0x644]
add esp, 0x1c
push dword [ecx + 0x1c]
call dword [ebp - 0x65c]
mov eax, dword [ebp - 0x644]
push ebx
mov ebx, dword [ebp - 0x658]
mov eax, dword [eax + 0x10]
add eax, 0x38
push eax
call ebx
mov eax, dword [ebp - 0x644]
push dword [ebp - 0x654]
mov eax, dword [eax + 0x10]
add eax, 0x40
push eax
call ebx
mov ecx, 0x208
lea eax, [ebp - 0x210]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4757a1
push 0x104
lea eax, [ebp - 0x628]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x644]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0xc]
mov eax, dword [ebp - 0x650]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x64c], eax
nop word [eax + eax]
push 0
push 4
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x64c]
push eax
push esi
call edi
test eax, eax
je 0x475865
mov ecx, dword [ebp - 0x648]
push 0
movzx eax, word [ecx + 0x26]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ecx + 0x28]
push esi
call edi
test eax, eax
je 0x475865
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.00550807
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x648]
je 0x475845
mov eax, dword [eax]
mov dword [ebp - 0x64c], eax
cmp eax, ebx
jne 0x4757e0
jmp 0x475865
mov esi, dword [ebp - 0x654]
add eax, 0x24
mov ebx, dword [ebp - 0x658]
push esi
push eax
call ebx
mov eax, dword [ebp - 0x648]
push esi
add eax, 0x2c
push eax
call ebx
mov eax, dword [ebp - 0x644]
push dword [eax + 0x1c]
call dword [ebp - 0x660]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00550807
add esp, 8
test eax, eax
je 0x4758a4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052c886
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c886
mov esp, ebp
pop ebp
ret