Function at 0x4f4910
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x20c], 0x10
mov dword [ebp - 0x238], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, str.advapi32.dll
mov dword [ebp - 0x23c], eax
call fcn.004f4710
mov esi, eax
test esi, esi
jne 0x4f4965
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f89b0
push esi
call ebx
mov dword [ebp - 0x244], eax
test eax, eax
jne 0x4f49a7
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__OpenProcessToken__failed_Error:_d
jmp 0x4f4a1d
push 0x5f8a2c
push esi
call ebx
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x4f49e3
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__LookupPrivilegeValueW__failed_Error:_d
jmp 0x4f4a1d
push str.AdjustTokenPrivileges
push esi
call ebx
mov dword [ebp - 0x240], eax
test eax, eax
jne 0x4f4a45
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcAddress__AdjustTokenPrivileges__failed_Error:_d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ebx, dword [ebp - 0x23c]
jmp 0x4f4bee
mov ebx, dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
push eax
push 0x200e8
push ebx
call dword [ebp - 0x244]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
test eax, eax
jne 0x4f4aab
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x208]
push str.GetProcAddress__LaughProcessAsUser__failed_Error:_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x214]
push eax
push str.SeTcbPrivilege
push 0
call dword [ebp - 0x248]
mov edi, eax
test edi, edi
jne 0x4f4b04
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call eax
push eax
push str.SeTcbPrivilege
lea eax, [ebp - 0x208]
push str.SetPrivilege__s__LookupPrivilegeValue___err:_d
push eax
call esi
add esp, 0x10
jmp 0x4f4be0
mov eax, dword [ebp - 0x214]
mov dword [ebp - 0x230], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x234], 1
push eax
push 0x10
lea eax, [ebp - 0x234]
mov dword [ebp - 0x228], getsockopt
push eax
push 0
push dword [ebp - 0x238]
call dword [ebp - 0x240]
mov edi, eax
test edi, edi
je 0x4f4ba9
mov eax, dword [ebp - 0x214]
or dword [ebp - 0x218], 2
push 0
push 0
push dword [ebp - 0x20c]
mov dword [ebp - 0x220], eax
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x224]
push eax
push 0
push dword [ebp - 0x238]
mov dword [ebp - 0x224], 1
call dword [ebp - 0x240]
mov edi, eax
test edi, edi
jne 0x4f4bee
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.0055ebc0
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
call eax
push eax
lea eax, [ebp - 0x208]
push str.SetPrivilege__AdjustTokenPrivileges___err:_d
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call eax
mov eax, dword [ebp - 0x238]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4f4c0b
push eax
call esi
mov dword [ebp - 0x238], 0
test ebx, ebx
je 0x4f4c12
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e4ed
mov esp, ebp
pop ebp
ret