Function at 0x45d2b8
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x4f1
push 0
push 0
dec ecx
jne 0x45d2c0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x45da6c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x487cd4
mov edx, dword [0x45d28c]
call fcn.00405564
call fcn.0045cb88
mov ebx, eax
call fcn.0045cb54
xor edx, edx
mov dword [ebp - 0x24], edx
test bl, bl
je 0x45d57d
test al, al
je 0x45d57d
lea edx, [ebp - 8]
mov eax, 0x45da84
call fcn.0040d818
mov eax, dword [ebp - 8]
call fcn.00404a38
push eax
mov eax, dword [0x486bc4]
mov eax, dword [eax]
call eax
mov edi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push 0
push edi
mov eax, dword [0x486b80]
mov eax, dword [eax]
call eax
test eax, eax
je 0x45d51d
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jb 0x45d55b
inc ebx
xor esi, esi
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 8]
lea edx, [ebp - 0x2764]
call fcn.00408e0c
mov eax, dword [ebp - 0x2764]
lea edx, [ebp - 4]
call fcn.00408288
mov edx, dword [ebp - 4]
mov eax, 0x45da9c
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45dab0
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45dac0
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45dad0
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45dae0
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45daf0
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45db00
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45db10
call fcn.00404b7c
test eax, eax
jne 0x45d41c
mov edx, dword [ebp - 4]
mov eax, 0x45db20
call fcn.00404b7c
test eax, eax
je 0x45d513
mov eax, dword [0x487cd4]
call fcn.0040539c
inc eax
push eax
mov eax, 0x487cd4
mov ecx, 1
mov edx, dword [0x45d28c]
call fcn.00405558
add esp, 4
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4]
push eax
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 4]
pop edx
mov dword [edx], eax
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 4]
call fcn.004045cc
mov dword [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x356]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x255]
push eax
mov eax, esi
add eax, eax
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + eax*8 + 0xc]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
lea edx, [ebp - 0x2768]
lea eax, [ebp - 0x356]
call fcn.00408e0c
push dword [ebp - 0x2768]
push 0x45db38
lea edx, [ebp - 0x276c]
lea eax, [ebp - 0x255]
call fcn.00408e0c
push dword [ebp - 0x276c]
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 8]
mov edx, 3
call fcn.004048f8
inc esi
dec ebx
jne 0x45d357
jmp 0x45d55b
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x2770]
call fcn.004086c4
mov ecx, dword [ebp - 0x2770]
lea eax, [ebp - 4]
mov edx, 0x45db44
call fcn.00404884
push 1
push 0x45db50
mov eax, dword [ebp - 4]
call fcn.00404a38
push eax
push 0
call sub.user32.dll_MessageBoxA_1
cmp dword [ebp - 0x24], 0
je 0x45d56e
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [0x486c48]
mov eax, dword [eax]
call eax
push edi
mov eax, dword [0x486848]
mov eax, dword [eax]
call eax
jmp 0x45da41
test al, al
je 0x45d7cf
xor edx, edx
mov eax, 0xf
call fcn.0045cf1c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45da41
mov dword [ebp - 0x154], 0x128
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0045cf3c
lea edx, [ebp - 0x2774]
lea eax, [ebp - 0x130]
call fcn.00408e0c
mov eax, dword [ebp - 0x2774]
lea edx, [ebp - 4]
call fcn.00408288
mov edx, dword [ebp - 4]
mov eax, 0x45da9c
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45dab0
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45dac0
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45dad0
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45dae0
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45daf0
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45db00
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45db10
call fcn.00404b7c
test eax, eax
jne 0x45d673
mov edx, dword [ebp - 4]
mov eax, 0x45db20
call fcn.00404b7c
test eax, eax
je 0x45d7af
mov eax, dword [0x487cd4]
call fcn.0040539c
inc eax
push eax
mov eax, 0x487cd4
mov ecx, 1
mov edx, dword [0x45d28c]
call fcn.00405558
add esp, 4
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 4]
call fcn.004045cc
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
mov ecx, dword [ebp - 0x14c]
mov dword [edx + eax*4], ecx
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
mov eax, dword [edx + eax*4]
push eax
push 0
push 0x400
call sub.kernel32.dll_OpenProcess
lea edx, [ebp - 0xc]
push edx
push 8
push eax
call sub.advapi32.dll_OpenProcessToken
mov eax, 0x1000
call fcn.004026fc
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push 0x1000
push edi
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov dword [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x356]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x255]
push eax
mov eax, dword [edi]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
mov eax, edi
call fcn.0040271c
lea edx, [ebp - 0x2778]
lea eax, [ebp - 0x356]
call fcn.00408e0c
push dword [ebp - 0x2778]
push 0x45db38
lea edx, [ebp - 0x277c]
lea eax, [ebp - 0x255]
call fcn.00408e0c
push dword [ebp - 0x277c]
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 8]
mov edx, 3
call fcn.004048f8
lea edx, [ebp - 0x154]
mov eax, ebx
call fcn.0045cf5c
test eax, eax
jne 0x45d5b3
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x45da41
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x235c]
mov edx, 0x2000
call fcn.0045ca98
test eax, eax
je 0x45da41
mov ebx, dword [ebp - 0x28]
shr ebx, 2
dec ebx
test ebx, ebx
jb 0x45da41
inc ebx
lea esi, [ebp - 0x235c]
mov eax, dword [esi]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x2c], eax
push 0x400
lea ecx, [ebp - 0x275d]
xor edx, edx
mov eax, dword [ebp - 0x2c]
call fcn.0045cabc
lea edx, [ebp - 0x2780]
lea eax, [ebp - 0x275d]
call fcn.00408e0c
mov eax, dword [ebp - 0x2780]
lea edx, [ebp - 4]
call fcn.00408288
mov edx, dword [ebp - 4]
mov eax, 0x45da9c
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45dab0
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45dac0
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45dad0
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45dae0
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45daf0
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45db00
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45db10
call fcn.00404b7c
test eax, eax
jne 0x45d8e7
mov edx, dword [ebp - 4]
mov eax, 0x45db20
call fcn.00404b7c
test eax, eax
je 0x45da2e
mov eax, dword [0x487cd4]
call fcn.0040539c
inc eax
push eax
mov eax, 0x487cd4
mov ecx, 1
mov edx, dword [0x45d28c]
call fcn.00405558
add esp, 4
jmp 0x45d929
mov edx, dword [ebp - 4]
mov eax, 0x45db38
call fcn.00404b7c
mov ecx, eax
lea eax, [ebp - 4]
mov edx, 1
call fcn.00404ad8
mov edx, dword [ebp - 4]
mov eax, 0x45db38
call fcn.00404b7c
test eax, eax
jne 0x45d90d
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 4]
mov edx, dword [ebp - 4]
call fcn.004045cc
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
mov ecx, dword [esi]
mov dword [edx + eax*4], ecx
lea eax, [ebp - 0xc]
push eax
push 8
mov eax, dword [ebp - 0x2c]
push eax
call sub.advapi32.dll_OpenProcessToken
mov eax, 0x1000
call fcn.004026fc
mov edi, eax
lea eax, [ebp - 0x10]
push eax
push pe_nt_image_headers32
push edi
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov dword [ebp - 0x14], pe_nt_image_headers32
mov dword [ebp - 0x18], pe_nt_image_headers32
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x356]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x255]
push eax
mov eax, dword [edi]
push eax
push 0
call sub.advapi32.dll_LookupAccountSidA
lea edx, [ebp - 0x2784]
lea eax, [ebp - 0x356]
call fcn.00408e0c
push dword [ebp - 0x2784]
push 0x45db38
lea edx, [ebp - 0x2788]
lea eax, [ebp - 0x255]
call fcn.00408e0c
push dword [ebp - 0x2788]
mov eax, dword [0x487cd4]
call fcn.004053a4
lea eax, [eax + eax*2]
mov edx, dword [0x487cd4]
lea eax, [edx + eax*4 + 8]
mov edx, 3
call fcn.004048f8
mov eax, edi
call fcn.0040271c
mov eax, dword [ebp - 0x2c]
push eax
call sub.kernel32.dll_CloseHandle_1
add esi, 4
dec ebx
jne 0x45d800
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45da73
lea eax, [ebp - 0x2788]
mov edx, 0xa
call fcn.0040459c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040459c
ret