Function at 0x45b7b0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x22c
mov ebx, dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
mov eax, dword [0x5398d0]
mov dword [esp + 0x21c], eax
xor eax, eax
lea esi, [esp + 0x5c]
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x20
mov dword [esp + 0x40], 0x20
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0x1a
call ebx
sub esp, 0x10
test eax, eax
je 0x45ba80
lea eax, [esp + 0x40]
lea edi, [esp + 0x7c]
mov dword [esp + 4], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], edi
mov dword [esp], 0x16
call ebx
sub esp, 0x10
test eax, eax
je 0x45ba80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [esp + 0x44]
mov dword [esp + 4], 0xf01ff
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
sub esp, 0xc
test eax, eax
je 0x45ba90
lea eax, [esp + 0x48]
mov dword [esp + 0x48], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x9c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
sub esp, 0x14
test eax, eax
je 0x45bac0
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_EqualSid]
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
jne 0x45baa0
mov eax, dword [esp + 0x9c]
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
jne 0x45baa0
lea ebx, [esp + 0x11c]
mov dword [esp + 8], 2
mov dword [esp + 4], 0x100
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_InitializeAcl]
sub esp, 0xc
test eax, eax
je 0x45ba70
mov eax, dword [esp + 0x9c]
mov ebp, dword [sym.imp.ADVAPI32.dll_AddAccessAllowedAce]
mov dword [esp], ebx
mov dword [esp + 8], 0x10000000
mov dword [esp + 0xc], eax
mov dword [esp + 4], 2
call ebp
sub esp, 0x10
test eax, eax
je 0x45ba70
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x10000000
mov dword [esp + 4], 2
mov dword [esp], ebx
call ebp
sub esp, 0x10
test eax, eax
je 0x45ba70
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x10000000
mov dword [esp + 4], 2
mov dword [esp], ebx
call ebp
sub esp, 0x10
test eax, eax
je 0x45ba70
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x54]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x58], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x24
mov esi, eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call edi
sub esp, 4
test esi, esi
je 0x45ba90
lea eax, [esp + 0x50]
mov dword [esp + 0x50], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc], 4
mov dword [esp + 4], 6
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
sub esp, 0x10
mov edx, eax
mov eax, dword [esp + 0x4c]
test edx, edx
jne 0x45ba4a
mov dword [esp], eax
call edi
sub esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 1
lea esi, [esi]
xor eax, eax
mov edx, dword [esp + 0x21c]
sub edx, dword [0x5398d0]
jne 0x45bae1
add esp, 0x22c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0xc
jmp 0x45ba48
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 1
jmp 0x45ba48
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x16
jmp 0x45ba48
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 1
jmp 0x45ba48
call fcn.00485600
lea esi, [esi]
lea esi, [esi]
sub esp, 0x1c
call fcn.0045b7b0
xor edx, edx
test eax, eax
je 0x45bb0f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 1
sub esp, 4
mov eax, edx
add esp, 0x1c
ret