Function at 0x140005240
Capabilities:
Set current directory

Disassembly:
push rdi
sub rsp, 0x4a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14002b010]
xor rax, rsp
mov qword [rsp + 0x490], rax
lea rax, [rsp + 0x280]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8d, 0x104
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400052ad
mov edx, 0x104
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchRemoveFileSpec]
test eax, eax
je 0x14000532e
lea rcx, [rsp + 0x80]
call fcn.1400019b0
nop
lea rax, [rsp + 0x90]
lea rdx, str.Fail_to_get_current_module_path_
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001aed8]
mov rcx, rax
call fcn.140002f70
lea rdx, [0x14001af38]
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001aed4]
mov rcx, rax
call fcn.140002f70
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x80]
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
lea rcx, [rsp + 0x80]
call fcn.1400019e0
jmp 0x140005459
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x38]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__const___ptr64____ptr64
nop
lea rcx, [rsp + 0x38]
call sym.FreeTouchUI.exe_public:_wchar_t____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Unchecked_begin_void____ptr64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea r8, [0x14001af70]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call qword [sym.imp.api_ms_win_core_path_l1_1_0.dll_PathCchAppend]
test eax, eax
je 0x1400053ff
lea rcx, [rsp + 0x180]
call fcn.1400019b0
nop
lea rax, [rsp + 0x190]
lea rdx, str.Path_append_res_fail_
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001af44]
mov rcx, rax
call fcn.140002f70
lea rdx, str.PathSetInit
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001af34]
mov rcx, rax
call fcn.140002f70
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x180]
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
lea rcx, [rsp + 0x180]
call fcn.1400019e0
nop
lea rcx, [rsp + 0x38]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64
jmp 0x140005459
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x58]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__const___ptr64____ptr64
nop
call qword [sym.imp.DuiLib.dll_public:_static_class_DuiLib::UICulture____ptr64___cdecl_DuiLib::UICulture::GetInstance_void_]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x58]
call sym.FreeTouchUI.exe_public:_wchar_t____ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::_Unchecked_begin_void____ptr64
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov rdx, rax
mov rcx, qword [rsp + 0x20]
mov rax, qword [rsp + 0x28]
call qword [rax]
nop
lea rcx, [rsp + 0x58]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64
nop
lea rcx, [rsp + 0x38]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void____ptr64
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.140017050
add rsp, 0x4a0
pop rdi
ret