Function at 0x44b240
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529548
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edi
push str.GetProcessCmdLine:__d_
push str.kupdate::KProcessUtils::GetProcessCmdLine
push 0x439
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], eax
call fcn.0041a9b0
xor ebx, ebx
add esp, 0x18
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
push edi
push ebx
push 0x410
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x44b3ca
mov dword [ebp - 0x38], esi
cmp esi, 0xffffffff
je 0x44b3ca
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push ebx
push 0x18
lea ecx, [ebp - 0x28]
push ecx
push ebx
push esi
call eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x44b3ca
push ebx
push 4
lea edx, [ebp - 0x3c]
push edx
add eax, 0x10
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x44b3ca
mov ecx, dword [ebp - 0x3c]
push ebx
push 8
lea eax, [ebp - 0x4c]
push eax
add ecx, 0x40
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x44b3ca
mov ax, word [ebp - 0x4c]
cmp ax, 2
jb 0x44b3ca
movzx edi, ax
shr edi, 1
xor ecx, ecx
lea ebx, [edi + 1]
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b7ad5
add esp, 4
push eax
lea ecx, [ebp - 0x40]
call fcn.00449de0
push ebx
mov ebx, dword [ebp - 0x40]
push 0
push ebx
call fcn.004ba010
movzx ecx, word [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ecx
push ebx
push edx
push esi
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x44b3c7
movzx eax, word [ebp - 0x4c]
cmp dword [ebp - 0x44], eax
jne 0x44b3c7
lea ecx, [ebx + edi*2]
push ecx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00449ff0
mov ecx, dword [ebp - 0x34]
push eax
mov byte [ebp - 4], 2
call fcn.00402630
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0051c7a0
mov edi, dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x14], 8
jb 0x44b3dd
mov eax, dword [eax]
push eax
push edi
push str.PID:__d__cmdline_is:__s_
push str.kupdate::KProcessUtils::GetProcessCmdLine
push 0x467
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 4
call fcn.0041a9b0
push ebx
call fcn.004b9ded
mov eax, dword [ebp - 0x38]
add esp, 0x20
test eax, eax
je 0x44b416
cmp eax, 0xffffffff
je 0x44b416
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret