Function at 0x1400352d0
Capabilities:
Get common file path

Disassembly:
push rbp
lea rbp, [rsp - 0x250]
sub rsp, 0x350
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x368], rbx
mov rax, qword [0x1400bd010]
xor rax, rsp
mov qword [rbp + 0x240], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov edx, 0x104
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1400353d1
lea rcx, [rsp + 0x20]
call fcn.140004550
nop
lea rdx, str.Get_load_lib_path_failed__error_code:
lea rcx, [rsp + 0x30]
call fcn.140015c30
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.GetExeCommandline::Init
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x1c], edx
jmp 0x1400355e3
lea rdx, str.NTDLL.DLL
lea rcx, [rbp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x14003547a
lea rcx, [rsp + 0x20]
call fcn.140004550
nop
lea rdx, str.get_NTDLL.DLL_path_failed
lea rcx, [rsp + 0x30]
call fcn.140015a40
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.GetExeCommandline::Init
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x1c], edx
jmp 0x1400355e3
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x140035521
lea rcx, [rsp + 0x20]
call fcn.140004550
nop
lea rdx, str.load_lib_failed
lea rcx, [rsp + 0x30]
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.GetExeCommandline::Init
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x1c], edx
jmp 0x1400355e3
lea rdx, str.ZwQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx], rax
lea rdx, str.NtQueryInformationProcess
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 8], rax
cmp qword [rbx], 0
je 0x140035558
test rax, rax
jne 0x140035602
lea rcx, [rsp + 0x20]
call fcn.140004550
nop
lea rdx, str.get_func_failed
lea rcx, [rsp + 0x30]
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c64]
call fcn.140015a40
mov rcx, rax
lea rdx, str.GetExeCommandline::Init
call fcn.140015c30
mov rcx, rax
lea rdx, [0x140087c60]
call fcn.140015a40
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x20]
mov edx, 4
mov rcx, rax
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rsp + rcx + 0x20], rax
mov rax, qword [rsp + 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x1c], edx
lea rcx, [rsp + 0x38]
call fcn.140012ea0
lea rcx, [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.140079c90
mov rbx, qword [rsp + 0x368]
add rsp, 0x350
pop rbp
ret