Function at 0x404530
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x50680b
push eax
mov eax, 0x281c
mov dword fs:[0], esp
call fcn.00435360
mov eax, dword [0x543c98]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x2834], esi
call fcn.0047a5d0
test eax, eax
jne 0x4045ab
lea ecx, [esp + 0x10]
push str.CEnablePrivilege::IsAdmin___win_9x_granted____r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x18]
push esi
push 2
push edx
call fcn.0041e3a0
add esp, 0x14
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
mov eax, 1
jmp 0x40487c
lea eax, [esp + 0x14]
lea ebp, [esp + 0x2c]
push eax
push 1
push 8
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 0
mov byte [esp + 0x2a], 0
mov byte [esp + 0x2b], 0
mov byte [esp + 0x2c], 0
mov byte [esp + 0x2d], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40465c
call ebx
cmp eax, 0x3f0
je 0x40461d
call ebx
push eax
lea ecx, [esp + 0x14]
push str.CEnablePrivilege::IsAdmin___OpenThreadToken___failed___error___u__r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x1c]
push esi
push 2
push edx
call fcn.0041e3a0
add esp, 0x18
jmp 0x4047bb
lea eax, [esp + 0x14]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40465c
call ebx
push eax
lea ecx, [esp + 0x14]
push str.CEnablePrivilege::IsAdmin___OpenProcessToken___failed___error___u__r_n
push ecx
call fcn.004e3c81
mov edx, dword [esp + 0x1c]
push esi
push 2
push edx
call fcn.0041e3a0
add esp, 0x18
jmp 0x4047bb
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x30]
push 0x2800
push ecx
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp eax, esi
jne 0x40470b
call ebx
cmp eax, 0x7a
jne 0x404789
mov edi, dword [esp + 0x18]
push edi
call fcn.004eae0a
mov esi, eax
add esp, 4
test esi, esi
jne 0x4046ce
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
push ecx
call ebx
push eax
push str.CEnablePrivilege::IsAdmin___malloc_buffer_failed___error___u__buffersize___u_r_n
lea edx, [esp + 0x1c]
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x20]
push 0
push 2
push eax
jmp 0x4047b3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push esi
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x404709
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004eae33
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call ebx
push eax
push str.CEnablePrivilege::IsAdmin___GetTokenInformation___failed___error___u__buffersize___u_r_n
jmp 0x4046b6
mov ebp, esi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x24]
xor edi, edi
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push 0x220
push 0x20
lea ecx, [esp + 0x40]
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4047d6
call ebx
push eax
lea edx, [esp + 0x14]
push 0x53d9dc
push edx
call fcn.004e3c81
mov eax, dword [esp + 0x1c]
push edi
push 2
push eax
call fcn.0041e3a0
add esp, 0x18
cmp esi, edi
je 0x40476e
push esi
call fcn.004eae33
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x40487c
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x18]
push edx
call ebx
push eax
lea eax, [esp + 0x18]
push str.CEnablePrivilege::IsAdmin___GetTokenInformation___failed___error___u__buffersize___u_r_n
push eax
call fcn.004e3c81
mov ecx, dword [esp + 0x20]
push esi
push 2
push ecx
call fcn.0041e3a0
add esp, 0x1c
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x40487c
mov eax, dword [ebp]
mov dword [esp + 0x28], edi
test eax, eax
jbe 0x40480b
lea ebx, [ebp + 4]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x24]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x404803
mov eax, dword [ebp]
inc edi
add ebx, 8
cmp edi, eax
jb 0x4047e4
jmp 0x40480b
mov dword [esp + 0x28], 1
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
test esi, esi
je 0x404823
push esi
call fcn.004eae33
add esp, 4
mov esi, dword [esp + 0x28]
test esi, esi
je 0x404866
call fcn.0047a6b0
test eax, eax
je 0x404866
push 0xc0000000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
test eax, eax
jne 0x40485f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
xor eax, eax
jmp 0x40487c
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2834], 0xffffffff
call fcn.004ea741
mov eax, esi
mov ecx, dword [esp + 0x282c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2828
ret