Function at 0x41f56e
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454e8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
movzx eax, byte [0x47955c]
test eax, eax
je 0x41f5d6
call fcn.004061d8
cmp dword [ebp + 8], eax
jne 0x41f5d6
cmp dword [ebp + 0xc], 0
je 0x41f5af
mov eax, dword [ebp + 0xc]
mov cl, byte [0x47955d]
mov byte [eax], cl
cmp dword [ebp + 0x10], 0
je 0x41f5c0
mov eax, dword [ebp + 0x10]
mov cl, byte [0x47955e]
mov byte [eax], cl
cmp dword [ebp + 0x14], 0
je 0x41f5d1
mov eax, dword [ebp + 0x14]
mov cl, byte [0x47955f]
mov byte [eax], cl
jmp 0x41f94c
call fcn.004061d8
cmp dword [ebp + 8], eax
jne 0x41f5e7
mov byte [0x47955c], 1
cmp dword [ebp + 0xc], 0
je 0x41f5f3
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
je 0x41f5ff
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
cmp dword [ebp + 0x14], 0
je 0x41f60b
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 0x41f685
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405ba3
pop ecx
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jge 0x41f680
push str.AllocateAndInitializeSid__
push dword [ebp - 0x28]
push str.GPERMISSION
push 0x56
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405539
add esp, 0x14
jmp 0x41f94c
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 0x41f6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x41f6ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405ba3
pop ecx
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x41f6de
push str.GetTokenInformation__
push dword [ebp - 0x2c]
push str.GPERMISSION
push 0x5c
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405539
add esp, 0x14
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x41f94c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.004172ba
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 0x41f766
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405ba3
pop ecx
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jge 0x41f74c
push str.GetTokenInformation__
push dword [ebp - 0x30]
push str.GPERMISSION
push 0x64
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405539
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.0041747a
jmp 0x41f94c
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
and dword [ebp - 0x18], 0
jmp 0x41f77b
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 0x41f7c8
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 0x41f79e
jmp 0x41f774
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 0x41f7c4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + eax*8 + 8]
and eax, 4
je 0x41f7c4
mov byte [ebp - 0xe], 1
jmp 0x41f7c8
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 0x41f87a
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x41f87a
push 1
call fcn.0041ed55
pop ecx
movzx eax, al
test eax, eax
je 0x41f876
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 0x41f855
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00405ba3
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jge 0x41f84e
push str.GetTokenInformation__
push dword [ebp - 0x34]
push str.GPERMISSION
push 0x81
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405539
add esp, 0x14
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x24], 2
je 0x41f867
cmp dword [ebp - 0x24], 1
je 0x41f867
and dword [ebp - 0x38], 0
jmp 0x41f86e
mov dword [ebp - 0x38], 1
mov al, byte [ebp - 0x38]
mov byte [ebp - 0xf], al
jmp 0x41f87a
mov byte [ebp - 0xf], 1
cmp dword [ebp + 0xc], 0
je 0x41f888
mov eax, dword [ebp + 0xc]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
cmp dword [ebp + 0x10], 0
je 0x41f896
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 0xe]
mov byte [eax], cl
cmp dword [ebp + 0x14], 0
je 0x41f8a4
mov eax, dword [ebp + 0x14]
mov cl, byte [ebp - 0xf]
mov byte [eax], cl
call fcn.004061d8
cmp dword [ebp + 8], eax
jne 0x41f940
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x41f90a
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x41f8ea
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x41f8ea
push 0
push str.Running_with_full_admin_permissions
push str.GPERMISSION
push 0x90
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405060
add esp, 0x14
jmp 0x41f908
push 0
push str.Running_with_restricted_admin_permissions
push str.GPERMISSION
push 0x93
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405060
add esp, 0x14
jmp 0x41f928
push 0
push str.Running_with_user_permissions
push str.GPERMISSION
push 0x97
push str.D:projectsutil_srcgpermission.cpp
call fcn.00405060
add esp, 0x14
mov al, byte [ebp - 0xd]
mov byte [0x47955d], al
mov al, byte [ebp - 0xe]
mov byte [0x47955e], al
mov al, byte [ebp - 0xf]
mov byte [0x47955f], al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.0041747a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret