Function at 0x48b629
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5087d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb8], esi
call fcn.00426c3e
lea ecx, [ebp - 0xcc]
call fcn.00426c3e
lea ecx, [esi + 4]
call fcn.00426da7
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push ebx
push edi
push str.CUserLaunch::Initialize_99__:_session_id:__lu__elevated:__d
call fcn.004a35a8
add esp, 0xc
lea ecx, [ebp - 0x140]
call fcn.00426eed
push str.SeTcbPrivilege
lea ecx, [ebp - 0x140]
call fcn.004270c1
test al, al
jne 0x48b6a4
push str.Unable_to_grant_SE_TCB_NAME__WTSQueryUserToken_will_fail
call fcn.004a35be
pop ecx
mov dword [esi + 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x18], ebx
cmp ebx, 2
je 0x48b6d8
lea ecx, [ebp - 0xc4]
call fcn.00426ec4
push eax
push dword [ebp + 8]
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x48b7cd
call edi
mov esi, eax
jmp 0x48b6dd
mov esi, 0x520
mov ecx, dword [ebp + 8]
call fcn.0048bb00
test al, al
jne 0x48b70c
cmp ebx, 2
jne 0x48b787
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp dword [ebp + 8], eax
jne 0x48b787
push str.Using_console_session_for_WinLogon_resolution
call fcn.004a35a8
pop ecx
push ebx
lea ecx, [ebp - 0xc4]
call fcn.00426ec4
mov ecx, dword [ebp + 8]
mov edx, eax
call fcn.0048b36f
pop ecx
test al, al
jne 0x48b7c7
push str.GetUserToken_failed
mov esi, 0x3f0
call fcn.004a35be
pop ecx
lea eax, [ebp - 0xb8]
push eax
lea eax, [ebp - 0xb4]
push eax
push 5
push dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x48b799
mov eax, dword [ebp - 0xb4]
test eax, eax
je 0x48b799
cmp word [eax], bx
je 0x48b799
push esi
push eax
push str.CUserLaunch::Initialize_138__:_WTSQueryUserToken_failed_for_User:__s_error:__d
call fcn.004a35be
add esp, 0xc
jmp 0x48b7aa
push esi
push str.CUserLaunch::Initialize_122__:_WTSQueryUserToken_failed__Invalid_Session__:__lu
call fcn.004a35be
pop ecx
pop ecx
jmp 0x48baa8
call edi
mov esi, eax
push esi
push str.CUserLaunch::Initialize_143__:_WTSQueryUserToken_failed:__lu
call fcn.004a35be
pop ecx
pop ecx
cmp dword [ebp - 0xb4], ebx
je 0x48baa8
push dword [ebp - 0xb4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
jmp 0x48baa8
mov esi, dword [ebp - 0xb8]
lea ecx, [ebp - 0xcc]
call fcn.00426ec4
push eax
push 1
push 1
xor ebx, ebx
push ebx
push 0x2000000
lea ecx, [ebp - 0xc4]
call fcn.00426da3
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x48b808
call edi
push eax
push str.CUserLaunch::Initialize_158__:_DuplicateTokenEx_failed:__lu
jmp 0x48ba9d
cmp dword [esi + 0x18], 1
jne 0x48ba02
push 1
call fcn.00428161
pop ecx
test al, al
je 0x48ba02
lea eax, [ebp - 0xe4]
push eax
push 4
lea eax, [ebp - 0xd8]
push eax
push 0x13
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xe4], ebx
call fcn.00426da3
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x48b9fa
lea ecx, [ebp - 0xcc]
call fcn.00426ea1
push eax
lea ecx, [esi + 4]
call fcn.00426e89
call edi
cmp eax, 0x520
je 0x48b886
cmp eax, 0x522
je 0x48b886
push eax
push str.CUserLaunch::Initialize_177__:_GetTokenInformation_failed:__lu
call fcn.004a35be
pop ecx
jmp 0x48b890
push str.CUserLaunch::Initialize_173__:_GetTokenInformation__TokenLinkedToken__failed_because_UAC_is_enabled
call fcn.004a35a8
pop ecx
lea eax, [ebp - 0xbc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x48b9dd
lea eax, [ebp - 0xb4]
push eax
push ebx
push ebx
push 2
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xb4], ebx
call fcn.00426da3
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x48b903
call edi
cmp eax, 0x7a
je 0x48b903
call edi
push eax
push str.CUserLaunch::Initialize_204__:_GetTokenInformation____FALSE__0x_08x
jmp 0x48b9e5
lea ecx, [ebp - 0xb0]
call fcn.004251e4
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xb0]
call fcn.004253de
mov dword [ebp - 0xb8], eax
test eax, eax
jne 0x48b938
push str.CUserLaunch::Initialize_213__:_mem.NewAlloc____NULL
call fcn.004a35be
jmp 0x48b9cf
lea ecx, [ebp - 0xb4]
push ecx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0xc4]
push eax
push 2
call fcn.00426da3
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x48b96e
call edi
push eax
push str.CUserLaunch::Initialize_220__:_GetTokenInformation____FALSE__0x_08x
call fcn.004a35be
pop ecx
jmp 0x48b9cf
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xd0], ebx
cmp dword [eax], ebx
jbe 0x48b9d0
lea edx, [eax + 4]
mov dword [ebp - 0xd4], edx
push dword [edx]
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x48b9c1
mov ecx, dword [ebp - 0xd0]
mov edx, dword [ebp - 0xd4]
mov eax, dword [ebp - 0xb8]
inc ecx
add edx, 8
mov dword [ebp - 0xd0], ecx
mov dword [ebp - 0xd4], edx
cmp ecx, dword [eax]
jb 0x48b987
jmp 0x48b9d0
push str.CUserLaunch::Initialize_230__:_admin_SID_found
call fcn.004a35be
mov byte [esi + 0x10], 1
pop ecx
lea ecx, [ebp - 0xb0]
call fcn.00425236
jmp 0x48b9ec
call edi
push eax
push str.CUserLaunch::Initialize_240__:_AllocateAndInitializeSid___failed:__lu__use_default_token
call fcn.004a35be
pop ecx
pop ecx
push dword [ebp - 0xbc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x48ba1a
push dword [ebp - 0xd8]
jmp 0x48ba0e
lea ecx, [ebp - 0xcc]
call fcn.00426ea1
push eax
lea ecx, [esi + 4]
call fcn.00426e89
mov byte [esi + 0x10], 1
lea eax, [ebp - 0x18]
mov dword [ebp - 0xdc], ebx
push 1
mov dword [ebp - 0x18], 0x101
mov dword [ebp - 0x14], 0x10000000
mov dword [ebp - 0x10], 0x3000
mov dword [ebp - 0xdc], 0x20
mov dword [ebp - 0xe0], eax
call fcn.00428161
pop ecx
test al, al
je 0x48ba7c
push 8
lea eax, [ebp - 0xe0]
push eax
push 0x19
lea ecx, [esi + 4]
call fcn.00426da3
push eax
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x48ba7c
call edi
push eax
push str.CUserLaunch::Initialize_276__:_SetTokenInformation_failed:__lu
jmp 0x48ba9d
push 1
lea ecx, [esi + 4]
call fcn.00426da3
push eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x48bab7
call edi
push eax
push str.CUserLaunch::Initialize_283__:_CreateEnvironmentBlock_failed:__lu
call fcn.004a35be
pop ecx
pop ecx
call edi
mov esi, eax
test esi, esi
jle 0x48bacc
movzx esi, si
or esi, 0x80070000
jmp 0x48bacc
push dword [esi + 0x18]
push dword [ebp + 8]
push str.CUserLaunch::Initialize_287__:_Initialized..._session_id:__lu__elevated:__d
call fcn.004a35a8
add esp, 0xc
mov esi, ebx
lea ecx, [ebp - 0x140]
call fcn.00426f17
lea ecx, [ebp - 0xcc]
call fcn.00426c89
lea ecx, [ebp - 0xc4]
call fcn.00426c89
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046aec6
leave
ret 8