Function at 0x4e2e70
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x594e0f
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x62f018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x26c], esi
mov eax, dword [ebp + 8]
mov ecx, 0x6355a1
mov dword [ebp - 4], 0
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x274], 0
call fcn.00561ea5
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebp - 0x274], 1
push 0
mov dword [ebp - 4], 0
push 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
call fcn.004d78b0
mov dword [ebp - 0x26c], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], eax
mov dword [ebp - 4], 7
test edi, edi
jne 0x4e2ff8
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x6321a8], edi
je 0x4e2fdd
push ecx
mov ecx, 0x6321a8
call fcn.004d1b40
mov eax, dword [0x6321a8]
cmp byte [eax + 0x54], 0
je 0x4e2fdd
cmp dword [eax + 0x58], 2
jb 0x4e2fdd
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.00403f80
push 0x12
push str.OpenProcess_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.00404640
push 0x42e
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
push 2
call fcn.004d2490
test bl, bl
je 0x4e2fce
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 9
call fcn.004d6d60
mov byte [ebp - 4], 0x11
jmp 0x4e34ed
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x254]
test eax, eax
jne 0x4e30dd
mov dword [esi], 0xa80357
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 4], eax
cmp dword [0x6321a8], 0
je 0x4e30c2
push ecx
mov ecx, 0x6321a8
call fcn.004d1b40
mov eax, dword [0x6321a8]
cmp byte [eax + 0x54], 0
je 0x4e30c2
cmp dword [eax + 0x58], 2
jb 0x4e30c2
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.00403f80
push 0x17
push str.OpenProcessToken_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x14
call fcn.00404640
push 0x438
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
push 2
call fcn.004d2490
test bl, bl
je 0x4e30b3
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x15
call fcn.004d6d60
mov byte [ebp - 4], 0x1d
jmp 0x4e34ed
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x260], 0
push ecx
xor edi, edi
push edi
push edi
push 3
push eax
mov dword [ebp - 0x264], edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e3238
call ebx
cmp eax, 0x7a
je 0x4e31e4
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], edi
mov dword [esi], 0xa80357
call ebx
mov dword [esi + 4], eax
cmp dword [0x6321a8], edi
je 0x4e31c9
push ecx
mov ecx, 0x6321a8
call fcn.004d1b40
mov eax, dword [0x6321a8]
cmp byte [eax + 0x54], 0
je 0x4e31c9
cmp dword [eax + 0x58], 2
jb 0x4e31c9
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.00403f80
push 0x1a
push str.GetTokenInformation_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x20
call fcn.00404640
push 0x446
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
push 2
call fcn.004d2490
test bl, bl
je 0x4e31ba
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x21
call fcn.004d6d60
mov byte [ebp - 4], 0x29
jmp 0x4e34ed
push dword [ebp - 0x260]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x264], edi
test edi, edi
jne 0x4e3238
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], edi
mov dword [esi], 0xa80358
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x2c
call fcn.004d6d60
mov byte [ebp - 4], 0x34
jmp 0x4e34ed
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x260]
push edi
push 3
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4e333e
test edi, edi
je 0x4e326f
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], 0
mov dword [esi], 0xa80357
call ebx
mov dword [esi + 4], eax
cmp dword [0x6321a8], 0
je 0x4e3323
push ecx
mov ecx, 0x6321a8
call fcn.004d1b40
mov eax, dword [0x6321a8]
cmp byte [eax + 0x54], 0
je 0x4e3323
cmp dword [eax + 0x58], 2
jb 0x4e3323
mov bl, byte [eax + 0x5c]
lea ecx, [ebp - 0x230]
call fcn.00403f80
push 0x1a
push str.GetTokenInformation_Failed
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 0x37
call fcn.00404640
push 0x45f
push str.RC::DM::GetProcessTokenByIdBase
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhinopcdomain_src_systemprocess_rcprocessdmanager.cpp
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
push 2
call fcn.004d2490
test bl, bl
je 0x4e3314
lea eax, [ebp - 0x230]
mov ecx, 0x6321a8
push eax
call fcn.004d27d0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.00403de0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x38
call fcn.004d6d60
mov byte [ebp - 4], 0x40
jmp 0x4e34ed
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor ebx, ebx
mov dword [ebp - 0x268], 0x104
add esp, 0xc
cmp dword [edi], ebx
jbe 0x4e3478
mov esi, dword [ebp - 0x264]
add edi, 0xc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x268], 0x104
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [edi - 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x4e3458
mov dword [ebp - method.Poco::Any::ValueHolder.virtual_4], vtable.RC::DM::ISerialization.0
lea ecx, [ebp - 0x234]
mov dword [ebp - method.RC::DM::RCProcessPrivilege.virtual_0], vtable.RC::DM::RCProcessPrivilege.0
call fcn.00403f80
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 0x43
push eax
lea ecx, [ebp - 0x250]
call fcn.00403ed0
mov byte [ebp - 4], 0x44
lea eax, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
lea ecx, [ebp - 0x234]
push dword [ebp - 0x240]
cmovae eax, dword [ebp - 0x250]
push eax
call fcn.00404640
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x43
call fcn.00403de0
mov eax, dword [edi]
lea ecx, [ebp - 0x25c]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x238]
push eax
call fcn.004e7ba0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x45
call fcn.00403de0
mov byte [ebp - 4], 7
inc ebx
add edi, 0xc
cmp ebx, dword [esi]
jb 0x4e3371
mov ebx, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x278]
mov edi, dword [ebp - 0x264]
jmp 0x4e347e
mov ebx, dword [ebp - 0x26c]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x270]
add ecx, 4
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 7
cmp ecx, eax
je 0x4e34b6
mov byte [ebp - 4], 0x5f
mov eax, dword [ebx]
push ebx
push eax
mov byte [ebp - 4], 7
call fcn.004d9620
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x4e34d1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x254], 0
mov dword [esi], 0
lea ecx, [ebp - 0x25c]
mov dword [ebp - 4], 0x66
call fcn.004d6d60
mov byte [ebp - 4], 0x6e
push 0x28
push dword [ebp - 0x25c]
call fcn.0052f594
mov byte [ebp - 4], 0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052f553
mov esp, ebp
pop ebp
ret