Function at 0x5424c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd46d
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x671330]
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 ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ecx
push 0
mov dword [ebp - 0xc0], 0
push 0x400
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xbc], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xf0], esi
mov byte [ebp - 4], 1
test esi, esi
jne 0x542691
push 0x98
push eax
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x608d28
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push esi
push esi
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xc0], 1
call dword [sym.imp.MSVCP140.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 - 0xb0]
mov dword [ebp - 4], 3
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb4], eax
lea eax, [ebp - 0xac]
mov ecx, eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 5
push str.OpenProcess_failed__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.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___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.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 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x54263d
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd4], vtable.std::exception.0
push eax
lea eax, [ebp - 0xb8]
movq qword [ebp - 0xd0], xmm0
push eax
mov byte [ebp - 0xb4], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - 0xd4], vtable.std::runtime_error.0
lea eax, [ebp - 0xd4]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 7
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x54280e
push 0x98
push eax
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x608d28
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xc0], 2
call dword [sym.imp.MSVCP140.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 - 0xb0]
mov dword [ebp - 4], 9
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb4], eax
lea eax, [ebp - 0xac]
mov ecx, eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0xb
push str.OpenProcess_failed__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.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___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.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 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xc
jb 0x5427ba
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xdc]
mov dword [ebp - 0xe0], vtable.std::exception.0
push eax
lea eax, [ebp - 0xb8]
movq qword [ebp - 0xdc], xmm0
push eax
mov byte [ebp - 0xb4], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - 0xe0], vtable.std::runtime_error.0
lea eax, [ebp - 0xe0]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [ebp - 0xbc]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x5429cd
push 0x98
push eax
lea eax, [ebp - 0xb0]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0xb0], 0x608d28
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xac]
mov byte [ebp - 4], 0xd
push eax
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xc0], 4
call dword [sym.imp.MSVCP140.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 - 0xb0]
mov dword [ebp - 4], 0xe
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xb0], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebp - 0xb0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ebp + ecx - 0xb4], eax
lea eax, [ebp - 0xac]
mov ecx, eax
mov dword [ebp - 0xb4], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov dword [ebp - 0xac], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 4
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x10
push str.DuplicateTokenEx_failed__0x
push eax
call fcn.00414ff0
add esp, 8
mov ecx, eax
push 0x416260
call dword [sym.imp.MSVCP140.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___]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP140.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 0x6090bc
push eax
call fcn.00414ff0
add esp, 8
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.00414da0
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x54293a
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
xorps xmm0, xmm0
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xec], vtable.std::exception.0
push eax
lea eax, [ebp - 0xb8]
movq qword [ebp - 0xe8], xmm0
push eax
mov byte [ebp - 0xb4], 1
call dword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
add esp, 8
mov dword [ebp - 0xec], vtable.std::runtime_error.0
lea eax, [ebp - 0xec]
push 0x638088
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov edi, dword [ebp - 0xc4]
mov esi, dword [ebp - 0xc8]
mov dword [ebp - 0xbc], 0
test edi, edi
je 0x5429b7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
mov ecx, edi
call fcn.00416e10
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 0x5429cb
ret
mov eax, dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x5429e4
push eax
call edi
mov dword [ebp - 0x18], 0
push esi
call edi
mov eax, dword [ebp - 0xbc]
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.00544286
mov esp, ebp
pop ebp
ret