Function at 0x44b250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1f52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
movzx eax, byte [0x51f4ac]
test eax, eax
je 0x44b2b8
call fcn.0041b360
cmp dword [ebp + 8], eax
jne 0x44b2b8
cmp dword [ebp + 0xc], 0
je 0x44b291
mov eax, dword [ebp + 0xc]
mov cl, byte [0x51f4ad]
mov byte [eax], cl
cmp dword [ebp + 0x10], 0
je 0x44b2a2
mov eax, dword [ebp + 0x10]
mov cl, byte [0x51f4ae]
mov byte [eax], cl
cmp dword [ebp + 0x14], 0
je 0x44b2b3
mov eax, dword [ebp + 0x14]
mov cl, byte [0x51f4af]
mov byte [eax], cl
jmp 0x44b62e
call fcn.0041b360
cmp dword [ebp + 8], eax
jne 0x44b2c9
mov byte [0x51f4ac], 1
cmp dword [ebp + 0xc], 0
je 0x44b2d5
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
je 0x44b2e1
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0x14], 0
je 0x44b2ed
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov byte [ebp - 0x40], 0
mov byte [ebp - 0x3f], 0
mov byte [ebp - 0x3e], 0
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x3c], 0
mov byte [ebp - 0x3b], 5
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x44b367
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404f48
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x44b362
push str.AllocateAndInitializeSid__
push dword [ebp - 0x28]
push str.GPERMISSION
push 0x56
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.004048de
add esp, 0x14
jmp 0x44b62e
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push 0
push 2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44b3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x44b3ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404f48
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x44b3c0
push str.GetTokenInformation__
push dword [ebp - 0x2c]
push str.GPERMISSION
push 0x5c
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.004048de
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x44b62e
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.0044b19c
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push 2
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44b448
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404f48
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x44b42e
push str.GetTokenInformation__
push dword [ebp - 0x30]
push str.GPERMISSION
push 0x64
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.004048de
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044b1f3
jmp 0x44b62e
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
and dword [ebp - 0x18], 0
jmp 0x44b45d
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jae 0x44b4aa
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*8 + 4]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x44b480
jmp 0x44b456
mov byte [ebp - 0xd], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 8]
and eax, 0x10
jne 0x44b4a6
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 8]
and eax, 4
je 0x44b4a6
mov byte [ebp - 0xe], 1
jmp 0x44b4aa
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x44b55c
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x44b55c
push 1
call fcn.0044a945
pop ecx
movzx eax, al
test eax, eax
je 0x44b558
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push 0x12
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x44b537
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404f48
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x44b530
push str.GetTokenInformation__
push dword [ebp - 0x34]
push str.GPERMISSION
push 0x81
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.004048de
add esp, 0x14
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 2
je 0x44b549
cmp dword [ebp - 0x24], 1
je 0x44b549
and dword [ebp - 0x38], 0
jmp 0x44b550
mov dword [ebp - 0x38], 1
mov al, byte [ebp - 0x38]
mov byte [ebp - 0xf], al
jmp 0x44b55c
mov byte [ebp - 0xf], 1
cmp dword [ebp + 0xc], 0
je 0x44b56a
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
cmp dword [ebp + 0x10], 0
je 0x44b578
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0xe]
mov byte [eax], cl
cmp dword [ebp + 0x14], 0
je 0x44b586
mov eax, dword [ebp + 0x14]
mov cl, byte [ebp - 0xf]
mov byte [eax], cl
call fcn.0041b360
cmp dword [ebp + 8], eax
jne 0x44b622
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x44b5ec
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x44b5cc
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x44b5cc
push 0
push str.Running_with_full_admin_permissions
push str.GPERMISSION
push 0x90
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.00404405
add esp, 0x14
jmp 0x44b5ea
push 0
push str.Running_with_restricted_admin_permissions
push str.GPERMISSION
push 0x93
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.00404405
add esp, 0x14
jmp 0x44b60a
push 0
push str.Running_with_user_permissions
push str.GPERMISSION
push 0x97
push str.D:projectsUTIL_srcgpermission.cpp
call fcn.00404405
add esp, 0x14
mov al, byte [ebp - 0xd]
mov byte [0x51f4ad], al
mov al, byte [ebp - 0xe]
mov byte [0x51f4ae], al
mov al, byte [ebp - 0xf]
mov byte [0x51f4af], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0044b1f3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret