Function at 0x47c650
Capabilities:
Acquire debug privileges
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4f38
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x50c0b4]
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 esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0xa8]
mov dword [ebp - 4], 0
mov dword [ebp - 0xf8], 0x4ae248
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xf4]
push eax
lea ecx, [ebp - 0xf8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 1
call dword [sym.imp.MSVCP110.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 4], 2
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf8], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xf8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xfc], eax
lea ecx, [ebp - 0xf4]
call dword [sym.imp.MSVCP110.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xf4], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0xbc], 0
mov dword [ebp - 0xb8], 4
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x28
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47c7c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push str.OpenProcessToken_failed__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x47c7a3
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
push 1
push str.SeDebugPrivilege
push dword [ebp - 0x34]
call fcn.0047c120
add esp, 0xc
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x50], esi
mov byte [ebp - 4], 7
test esi, esi
jne 0x47c876
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push str.OpenProcess_failed__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 8
jb 0x47c851
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x47c907
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0xf8]
push str.TerminateProcess_failed__0x
push eax
call fcn.00409c40
add esp, 8
mov ecx, eax
push 0x442c30
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
push esi
mov ecx, eax
call dword [sym.imp.MSVCP110.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
push 0x4b23cc
push eax
call fcn.00409c40
add esp, 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.0044ad00
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 9
jb 0x47c8e2
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.MSVCR110.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4c4e90
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], vtable.std::runtime_error.0
call sub.MSVCR110.dll__CxxThrowException
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x47c92d
push eax
call esi
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 0xf8]
call fcn.00432780
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.0049a2a4
mov esp, ebp
pop ebp
ret