Function at 0x4fa2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54c8c1
mov eax, dword fs:[0]
push eax
sub esp, 0xe8
mov eax, dword [0x595c60]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push esi
push edi
mov eax, dword [0x595c60]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov dword [esp + 0x10], ecx
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4fa36e
test byte [eax + 0x1c], 1
je 0x4fa36e
cmp byte [eax + 0x19], 6
jb 0x4fa36e
push str.SecurityHelper::EnablePrivileges
push str.Entered_function
push dword [eax + 0x14]
mov edx, 0x570234
mov ecx, 0xa
push dword [eax + 0x10]
call fcn.00497390
add esp, 0x10
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x4fa460
mov esi, ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x100], 0
xor edi, edi
lea esp, [esp]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push dword [eax + edi*4]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4fa3fc
mov eax, dword [esp + 0x18]
push 0
push 0
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x24]
push 0x10
mov dword [esp + 0x68], eax
lea eax, [esp + 0x60]
push eax
push 0
push ebx
mov dword [esp + 0x6c], 1
mov dword [esp + 0x78], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4fa4be
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4fa446
test byte [eax + 0x1c], 1
je 0x4fa446
cmp byte [eax + 0x19], 6
jb 0x4fa446
mov ecx, dword [esp + 0x10]
mov edx, 0x570234
push dword [ecx + edi*4]
mov ecx, 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.004f2920
mov eax, dword [0x596f88]
add esp, 0xc
inc edi
cmp edi, 1
jae 0x4fa455
mov ebx, dword [esp + 0x14]
jmp 0x4fa3b0
test esi, esi
je 0x4fa465
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x596f88]
cmp eax, 0x596f88
je 0x4fa49a
test byte [eax + 0x1c], 1
je 0x4fa49a
cmp byte [eax + 0x19], 6
jb 0x4fa49a
push str.SecurityHelper::EnablePrivileges
push str.Exiting_function
push dword [eax + 0x14]
mov edx, 0x570234
mov ecx, 0xc
push dword [eax + 0x10]
call fcn.00497390
add esp, 0x10
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00506c7d
mov esp, ebp
pop ebp
ret
push 0x7f
lea eax, [esp + 0x71]
mov byte [esp + 0x70], 0
push 0
push eax
call fcn.0050be90
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [ebx + edi*4]
mov ecx, esi
call fcn.004f7820
push eax
push esi
push str.Failed_to_enable_required_privilege
push str.Error_message_:
lea eax, [esp + 0x7c]
push str._s__s:__S__Detailed_Error_code__d
push eax
call fcn.004fa760
add esp, 0x18
mov dword [esp + 0x68], 0xf
cmp byte [esp + 0x6c], 0
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
jne 0x4fa520
xor ecx, ecx
jmp 0x4fa530
lea ecx, [esp + 0x6c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4fa527
sub ecx, edx
push ecx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x5c]
call fcn.0047c0a0
mov ecx, dword [ebx + edi*4]
call fcn.004f7820
mov esi, eax
mov byte [esp + 0x100], 1
cmp dword [esp + 0x68], 0x10
mov ecx, dword [esp + 0x54]
jae 0x4fa560
lea ecx, [esp + 0x54]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00506cc3
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x20], 0x56a8dc
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0x1d
mov dword [esp + 0x34], str..SecurityHelper.cpp
jb 0x4fa5a6
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4fa5a6
push eax
call fcn.005074d4
add esp, 4
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], 0
mov byte [esp + 0x54], 0
lea eax, [esp + 0x20]
mov byte [esp + 0x100], 2
push eax
lea ecx, [esp + 0x40]
call fcn.00506d03
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push 0x591d58
push eax
mov dword [esp + 0x44], 0x56a8dc
call fcn.0053e44f
int3