Function at 0x503240
Capabilities:
Acquire debug privileges
Patch process command line

Disassembly:
push ebp
mov eax, 0x810c
push edi
push esi
push ebx
call fcn.0055c0e8
xor edi, edi
sub esp, eax
mov dword [esp], str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 4], str.NtQueryInformationProcess
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
test eax, eax
je 0x5033a0
mov dword [esp + 0x34], 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x34]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 1
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], eax
call fcn.0053d3d0
mov eax, dword [esp + 0x8120]
mov dword [esp + 4], 0
mov dword [esp], 0x410
mov dword [esp + 8], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x5034a0
lea eax, [esp + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x18
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], ebx
call esi
sub esp, 0x14
mov esi, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
test esi, esi
je 0x5033b0
xor edi, edi
lea esi, [esp + 0x100]
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], ebx
call ebp
sub esp, 4
lea eax, [esp + 0x38]
mov dword [esp + 8], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], esi
call dword [method.QString.fromUtf16_unsigned_short_const__int_]
mov eax, dword [esp + 0x8124]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x8124]
mov eax, dword [eax]
mov dword [ecx], edx
mov dword [esp + 0x38], eax
mov edx, dword [eax]
test edx, edx
je 0x503474
cmp edx, 0xffffffff
je 0x5033a0
lock sub dword [eax], 1
je 0x503474
add esp, 0x810c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x54]
lea ebp, [esp + 0x30]
mov dword [esp], ebx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0x1c
mov dword [esp + 4], eax
call edi
sub esp, 0x14
test eax, eax
je 0x503331
lea eax, [esp + 0x70]
mov dword [esp + 0x10], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xc], 0x90
mov dword [esp + 4], eax
mov dword [esp], ebx
call edi
sub esp, 0x14
test eax, eax
je 0x503331
lea esi, [esp + 0x100]
mov dword [esp + 8], 0x8000
mov edx, dword [esp + 0xb4]
mov dword [esp + 4], 0
movzx ecx, word [esp + 0xb0]
mov dword [esp], esi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], ecx
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ecx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call edi
sub esp, 0x14
test eax, eax
setne al
mov edi, eax
jmp 0x50333a
mov eax, dword [esp + 0x38]
mov dword [esp + 8], 4
mov dword [esp + 4], 2
mov dword [esp], eax
call dword [method.QArrayData.deallocate_QArrayData__unsigned_int__unsigned_int_]
add esp, 0x810c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x5033a0