Function at 0x140001200
Capabilities:
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140034040]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edi, edi
mov dword [rsp + 0x30], edi
lea ecx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, str.RTWorkQ.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140001265
lea rdx, str.RtwqStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
call qword [sym.imp.obs.dll_public:_static_bool___cdecl_CommandLine::Init_void_]
lea rsi, vtable.OWOBSLogger.0
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [0x140028de0]
mov qword [rsp + 0x48], rax
lea rax, [0x140028d20]
mov qword [rsp + 0x58], rax
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r8d, r8d
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x48]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x48], r14
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x44], edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x60], rax
mov byte [rbp - 0x24], 0
mov byte [rbp - 0x2f], 0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x20], rdi
mov rax, qword [0x1400363e8]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], rdi
lea rcx, [rsp + 0x40]
call fcn.14001a3c0
lea rdx, [rsp + 0x48]
lea rcx, [0x140019ac0]
call qword [sym.imp.obs.dll_base_set_log_handler]
lea rdx, [rsp + 0x48]
lea rcx, [0x14001a160]
call qword [sym.imp.obs.dll_base_set_crash_handler]
nop
lea rcx, str.USER32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.SetProcessDpiAwarenessContext
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400362b8], rax
test rax, rax
je 0x14000138a
mov rcx, 0xfffffffffffffffc
call rax
test eax, eax
jne 0x1400013b8
lea rcx, str.Shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400013b8
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400013b8
mov ecx, 2
call rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x38]
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000149a
lea r8, [rsp + 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140001429
mov dword [rbp + 0x60], 1
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x64], rax
mov dword [rbp + 0x6c], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
lea r8, [rsp + 0x30]
lea rdx, str.SeIncreaseBasePriorityPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000148f
mov dword [rbp + 0x60], 1
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x64], rax
mov dword [rbp + 0x6c], 2
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
mov r9d, 0x10
lea r8, [rbp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x14000148f
lea rdx, str.Could_not_set_privilege_to_increase_GPU_priority
mov ecx, 0x12c
call qword [sym.imp.obs.dll_blog]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.obs.dll_public:_static_class_CommandLine____ptr64___cdecl_CommandLine::ForCurrentProcess_void_]
mov rcx, rax
call fcn.14001c4c0
mov edi, eax
test rbx, rbx
je 0x1400014ca
lea rdx, str.RtwqShutdown
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.obs.dll_base_set_log_handler]
nop
mov qword [rsp + 0x40], rsi
call qword [sym.imp.obs.dll_bnum_allocs]
mov r8d, eax
lea rdx, str.Number_of_memory_leaks:__ld
mov ecx, 0x12c
call qword [sym.imp.obs.dll_blog]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.obs.dll_base_set_log_handler]
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x48], r14
mov rax, qword [rsp + 0x48]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb8]
mov dword [rsp + rcx + 0x44], edx
lea rcx, [rsp + 0x60]
call fcn.14001b620
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov eax, edi
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140020020
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret