Function at 0x4493d0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x529288
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jne 0x44940a
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
push ecx
push 0x20008
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x44944d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x449438
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_open_process_token:_0x08x.
push str.kupdate::KProcessUtils::IsSystemProcess
push 0x1d4
jmp 0x449595
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea edx, [ebp - 0x20]
push edx
push ebx
push ebx
push 1
push eax
mov dword [ebp - 0x20], ebx
call edi
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004b7ad5
mov ecx, dword [ebp - 0x1c]
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
push edx
push eax
push esi
push 1
push ecx
call edi
test eax, eax
jne 0x4494b9
push esi
call fcn.004b9ded
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x4494a4
and eax, 0xffff
or eax, 0x80070000
push eax
push str.failed_get_token_infomation:
push str.kupdate::KProcessUtils::IsSystemProcess
push 0x1de
jmp 0x449595
mov edi, dword [esi]
cmp edi, ebx
je 0x449568
push edi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x449568
lea edx, [ebp - 0x24]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x14], 0x500
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x44952e
push esi
call fcn.004b9ded
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x44951c
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_allocate_sid:_0x08x.
push str.kupdate::KProcessUtils::IsSystemProcess
push 0x1f0
jmp 0x449595
mov ecx, dword [ebp - 0x24]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov edx, dword [ebp - 0x24]
test eax, eax
push edx
setne bl
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call fcn.004b9ded
mov eax, dword [ebp - 0x1c]
add esp, 4
test eax, eax
je 0x449564
cmp eax, 0xffffffff
je 0x449564
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
jmp 0x4495b8
push esi
call fcn.004b9ded
add esp, 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, ebx
jle 0x449585
and eax, 0xffff
or eax, 0x80070000
push eax
push str.Failed_get_sid:_0x08x.
push str.kupdate::KProcessUtils::IsSystemProcess
push 0x1e5
push str.S:_rc_v11_edu_20191101_branchCoding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push ebx
call fcn.0041a9b0
mov eax, dword [ebp - 0x1c]
add esp, 0x18
cmp eax, ebx
je 0x4495b6
cmp eax, 0xffffffff
je 0x4495b6
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
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