Function at 0x140005830
Capabilities:
Accept command line arguments

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x398
mov rax, qword [0x14002b010]
xor rax, rsp
mov qword [rsp + 0x380], rax
mov dword [rsp + 0x30], 0
mov eax, 4
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rax + rcx]
cmp dword [0x14002c580], eax
jle 0x140005923
lea rcx, [0x14002c580]
call fcn.1400172d4
cmp dword [0x14002c580], 0xffffffff
jne 0x140005923
lea rdx, str.PCMANAGER
lea rcx, [rsp + 0xc8]
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
lea rdx, [0x14001b020]
lea rcx, [rsp + 0xa8]
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
call fcn.140004ce0
lea rcx, [rsp + 0xc8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0xa8]
xor r8d, r8d
mov dl, 1
mov rcx, rax
call fcn.140004dc0
mov dword [0x14002c568], eax
lea rcx, [rsp + 0xa8]
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
lea rcx, [rsp + 0xc8]
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
lea rcx, [0x14002c580]
call fcn.140017274
lea rax, [0x14001b038]
mov qword [rsp + 0xa0], rax
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::InitProcessLogger_void____ptr64]
mov dl, 1
lea rcx, [rsp + 0x128]
call fcn.140004c30
cmp qword [rsp + 0x3b0], 0
je 0x14000596a
mov rax, qword [rsp + 0x3b0]
mov qword [rsp + 0x60], rax
jmp 0x140005976
lea rax, [0x14001afbc]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x138]
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
lea rcx, [rsp + 0x138]
call sym.FreeTouchUI.exe_public:_bool___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::empty_void_const___ptr64
movzx eax, al
test eax, eax
je 0x1400059be
or dword [rsp + 0x30], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdx, rax
lea rcx, [rsp + 0x108]
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
mov qword [rsp + 0x68], rax
jmp 0x1400059dd
or dword [rsp + 0x30], 2
lea rdx, [rsp + 0x138]
lea rcx, [rsp + 0xe8]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64____ptr64
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x158]
call sym.FreeTouchUI.exe_public:_void___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64
mov eax, dword [rsp + 0x30]
and eax, 2
test eax, eax
je 0x140005a1c
and dword [rsp + 0x30], 0xfffffffd
lea rcx, [rsp + 0xe8]
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 eax, dword [rsp + 0x30]
and eax, 1
test eax, eax
je 0x140005a39
and dword [rsp + 0x30], 0xfffffffe
lea rcx, [rsp + 0x108]
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
lea rcx, [rsp + 0x158]
call fcn.1400056f0
movzx eax, al
test eax, eax
jne 0x140005b03
lea rcx, [rsp + 0x180]
call fcn.1400019b0
lea rax, [rsp + 0x190]
lea rdx, str.enter_cmdLine_is_wrong
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001b034]
mov rcx, rax
call fcn.140002f70
lea rdx, [0x14001b050]
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001b01c]
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, 3
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]
lea rcx, [rsp + 0x180]
call fcn.1400019e0
mov dword [rsp + 0x48], 0
lea rcx, [rsp + 0x158]
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
lea rcx, [rsp + 0x138]
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
lea rcx, [rsp + 0x128]
call fcn.140004cc0
mov eax, dword [rsp + 0x48]
jmp 0x140005d78
mov edx, 8
lea rcx, [rsp + 0x130]
call sym.FreeTouchUI.exe_public:_void___cdecl_DE::Registry::__autoclassinit2_unsigned_long_long_unsigned___int64_____ptr64
lea rcx, [rsp + 0x130]
call fcn.140001a40
lea rcx, [rsp + 0x130]
call fcn.140001ad0
movzx eax, al
test eax, eax
je 0x140005bab
xor edx, edx
mov rcx, qword [0x14001b0b0]
call qword [sym.imp.USER32.dll_FindWindowW]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140005ba6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140005ba6
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x140005b82
mov edx, 1
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_ShowWindow]
jmp 0x140005b92
mov edx, 9
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x140005d38
lea rdx, [0x14002b760]
mov ecx, 0x8d0
call fcn.140017404
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
je 0x140005bda
mov rcx, qword [rsp + 0x70]
call fcn.140010910
mov qword [rsp + 0x78], rax
jmp 0x140005be3
mov qword [rsp + 0x78], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140005cc8
lea rcx, [rsp + 0x280]
call fcn.1400019b0
lea rax, [rsp + 0x290]
lea rdx, str.fail_to_create_free_touch_wnd
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001b084]
mov rcx, rax
call fcn.140002f70
lea rdx, str.wWinMain
mov rcx, rax
call fcn.140003350
lea rdx, [0x14001b05c]
mov rcx, rax
call fcn.140002f70
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
lea r8, [rsp + 0x280]
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]
lea rcx, [rsp + 0x280]
call fcn.1400019e0
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x130]
call fcn.140001a70
lea rcx, [rsp + 0x158]
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
lea rcx, [rsp + 0x138]
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
lea rcx, [rsp + 0x128]
call fcn.140004cc0
mov eax, dword [rsp + 0x4c]
jmp 0x140005d78
mov rdx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x3a0]
call fcn.140005500
cmp qword [rsp + 0x40], 0
je 0x140005d38
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x140005d23
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov edx, 1
mov rcx, qword [rsp + 0x58]
call qword [rax + 0x38]
mov qword [rsp + 0x98], rax
jmp 0x140005d2f
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x130]
call fcn.140001a70
lea rcx, [rsp + 0x158]
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
lea rcx, [rsp + 0x138]
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
lea rcx, [rsp + 0x128]
call fcn.140004cc0
mov eax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x380]
xor rcx, rsp
call fcn.140017050
add rsp, 0x398
ret