Function at 0x140004690
Capabilities:
Accept command line arguments
Acquire debug privileges

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x140031040]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor ebx, ebx
mov dword [rsp + 0x30], ebx
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, str.RTWorkQ.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400046f3
lea rdx, str.RtwqStartup
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
cmp qword [0x140033178], rbx
jne 0x1400047a5
mov ecx, 0x30
call fcn.14001e160
mov qword [rsp + 0x38], rax
mov rcx, rax
call fcn.140001b80
nop
mov qword [0x140033178], rax
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140004740
mov rdx, rax
lea rcx, [rbp + 0x60]
call fcn.140003670
nop
lea rdx, [rbp + 0x60]
call fcn.1400029c0
nop
mov rdx, qword [rbp + 0x78]
cmp rdx, 7
jbe 0x1400047a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400047a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400047a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14001e19c
lea rdi, vtable.OWOBSLogger.0
mov qword [rsp + 0x40], rdi
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [0x1400267c0]
mov qword [rsp + 0x48], rax
lea rax, [0x140026700]
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 rsi, vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x48], rsi
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], rbx
mov rax, qword [0x140033220]
mov qword [rbp - 0x2c], rax
mov qword [rbp - 0x38], rbx
lea rcx, [rsp + 0x40]
call fcn.140018aa0
lea rdx, [rsp + 0x48]
lea rcx, [0x140018300]
call qword [sym.imp.obs.dll_base_set_log_handler]
lea rdx, [rsp + 0x48]
lea rcx, [0x140018700]
call qword [sym.imp.obs.dll_base_set_crash_handler]
nop
lea rcx, str.Shcore.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x1400048bc
lea rdx, str.SetProcessDpiAwareness
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400048bc
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 0x14000499e
lea r8, [rsp + 0x30]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000492d
mov dword [rbp + 0x60], 1
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x64], rax
mov dword [rbp + 0x6c], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
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 0x140004993
mov dword [rbp + 0x60], 1
mov rax, qword [rsp + 0x30]
mov qword [rbp + 0x64], rax
mov dword [rbp + 0x6c], 2
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
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 0x140004993
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]
mov rcx, qword [0x140033178]
call fcn.14001a6d0
mov ebx, eax
mov qword [rsp + 0x40], rdi
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 rcx, qword [rsp + 0x48]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x48], rsi
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.140019b90
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, ebx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.14001e140
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret