Function at 0x4590d0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d1bd
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x5f7448]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x458], edi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x448], 0
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
jne 0x45914b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5876dc
mov ecx, edi
call fcn.004038b0
jmp 0x459376
mov dword [ebp - 0x444], 0
lea eax, [ebp - 0x444]
push eax
push 0x20008
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x459340
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x459340
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x440]
push ecx
push 0
push 0
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
xor eax, eax
mov word [ebp - 0x43c], ax
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4592ca
push dword [ebp - 0x440]
call fcn.004acf15
add esp, 4
mov esi, eax
test esi, esi
je 0x4592ca
lea eax, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
push esi
push 1
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4592c1
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push eax
lea eax, [ebp - 0x422]
push eax
call fcn.004af380
mov dword [ebp - 0x450], 0x104
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push eax
lea eax, [ebp - 0x21a]
push eax
call fcn.004af380
add esp, 0x18
mov dword [ebp - 0x454], 0x104
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x454]
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x424]
push eax
push dword [esi]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
test eax, eax
je 0x4592c1
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x43c]
call fcn.004039a0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x44c]
call fcn.004039a0
push esi
call fcn.004af1a1
add esp, 4
push dword [ebp - 0x444]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x43c]
push eax
mov ecx, edi
call fcn.00403a40
mov dword [ebp - 0x448], 1
mov byte [ebp - 4], 0
cmp dword [ebp - 0x428], 8
jb 0x459321
push dword [ebp - 0x43c]
call fcn.004ad196
add esp, 4
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], 0
xor eax, eax
mov word [ebp - 0x43c], ax
jmp 0x459387
mov dword [ebp - 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
jmp 0x45936a
push 0x5876dc
mov ecx, edi
call fcn.004038b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x448], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004adbd4
mov esp, ebp
pop ebp
ret