Function at 0x401320
Capabilities:
Accept command line arguments
Check mutex on windows
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x794
mov eax, dword [0x463024]
xor eax, esp
mov dword [esp + 0x790], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
mov dword [esp + 0x18], eax
call dword [sym.imp.ole32.dll_OleInitialize]
push 0x1088
mov dword [esp + 0x34], 0
call fcn.004124cb
mov ebx, eax
xor ecx, ecx
xor eax, eax
add esp, 4
mov word [ebx + 0x428], cx
lea ecx, [ebx + 0x1080]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov word [ebx + 8], ax
mov dword [ebx + 0x210], eax
mov dword [ebx + 0x214], eax
mov word [ebx + 0x218], ax
mov dword [ebx + 0x420], eax
mov dword [ebx + 0x424], eax
mov dword [ebx + 0x630], eax
mov dword [ebx + 0x634], eax
mov word [ebx + 0x638], ax
mov dword [ebx + 0x840], eax
mov dword [ebx + 0x844], eax
mov word [ebx + 0x848], ax
mov dword [ebx + 0xa50], eax
mov dword [ebx + 0xa54], eax
mov word [ebx + 0xa58], ax
mov dword [ebx + 0xc60], eax
mov dword [ebx + 0xc64], eax
mov word [ebx + 0xc68], ax
mov dword [ebx + 0xe70], eax
mov dword [ebx + 0xe74], eax
mov word [ebx + 0xe78], ax
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
lea ecx, [ebx + 0x1084]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
push str.imgdecoder_gdip
lea ecx, [ebx + 0x1080]
call dword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const__]
push 0x208
lea eax, [esp + 0x594]
push 0
push eax
call fcn.00414e80
add esp, 0xc
lea eax, [esp + 0x590]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x590]
push 0x5c
push eax
call fcn.00413ed2
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x590]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [ebx + 0x1084]
push str.render_skia.dll
push str.render_skia.dll
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x14]
push eax
push dword [ebx + 0x1084]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
mov esi, dword [esp + 0x10]
mov eax, dword [ebx + 0x214]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x401526
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x210], eax
test eax, eax
je 0x401530
push str.SCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x214], eax
test eax, eax
jne 0x401504
push dword [ebx + 0x210]
call edi
jmp 0x401530
lea ecx, [ebx + 0x210]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx + 6], ax
test ax, ax
jne 0x401510
mov eax, dword [ebx + 0x214]
lea ecx, [esp + 0x28]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x10]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [ebx + 0x1080]
push 0x45a354
push 0x45a354
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x1c]
push eax
push dword [ebx + 0x1080]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
lea ecx, [esp + 0x20]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov eax, dword [esp + 0x18]
mov ecx, dword [ebx + 0x1084]
push eax
push dword [eax - 8]
push ecx
push dword [ecx - 8]
lea ecx, [esp + 0x30]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x20]
test eax, eax
jne 0x4015e3
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
je 0x4015ed
push str.SCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 4], eax
test eax, eax
jne 0x4015c8
push dword [ebx]
call edi
jmp 0x4015ed
lea ecx, [ebx + 8]
sub ecx, esi
nop dword [eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx - 2], ax
test ax, ax
jne 0x4015d0
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x2c]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x20]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [esp + 0x18]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov ecx, dword [esp + 0x28]
push dword [esp + 0x2c]
mov eax, dword [ecx]
call dword [eax + 0x10]
push 0xe8
call fcn.004124cb
add esp, 4
mov dword [esp + 0x20], 0
mov esi, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], esi
push 0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SObjectDefaultRegister::constructor_void_]
push eax
push str.SOUIHOST
push dword [esp + 0x20]
mov ecx, esi
push dword [esp + 0x38]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::constructor_struct_SOUI::IRenderFactory___struct_HINSTANCE_____wchar_t_const___struct_SOUI::ISystemObjectRegister___int_]
push 8
mov dword [esi], vtable.SOUI::SApplication.1.0
mov dword [esi + 4], vtable.SOUI::SApplication.0
call fcn.004124cb
add esp, 4
mov ecx, esi
mov dword [eax], vtable.SOUI::TObjRefImpl_struct_SOUI::IToolTipFactory_.0
push eax
mov dword [eax + 4], 1
mov dword [eax], vtable.SToolTipFactory.0
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::SetToolTipFactory_struct_SOUI::IToolTipFactory__]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [esp + 0x18]
add esp, 8
mov eax, dword [ecx]
push 0
push dword [esp + 0x18]
call dword [eax + 0xc]
push dword [esp + 0x10]
mov ecx, esi
call dword [sym.imp.soui.dll_public:_unsigned_int___thiscall_SOUI::SApplication::LoadSystemNamedResource_struct_SOUI::IResProvider__]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4016be
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call dword [sym.imp.soui.dll_int___cdecl_SOUI::CreateResProvider_enum_SOUI::BUILTIN_RESTYPE__struct_IObjRef___]
mov ecx, dword [esp + 0x2c]
add esp, 8
mov eax, dword [ecx]
push 0
push dword [esp + 0x18]
call dword [eax + 0xc]
push 1
push 3
push 0x45a000
mov ecx, esi
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::InitXmlNamedID_struct_SOUI::TNAMEDVALUE_int__const___int__int_]
push str.uidef:xml_init
push dword [esp + 0x28]
lea ecx, [esi + 0x10]
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SResProviderMgr::AddResProvider_struct_SOUI::IResProvider___wchar_t_const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
mov esi, dword [ebx + 0x1084]
push 0x45a308
push 0x45a308
call dword [sym.imp.utilities.dll_public:_static_int___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::SafeStrlen_wchar_t_const__]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push dword [ebx + 0x1084]
push dword [esi - 8]
call dword [sym.imp.utilities.dll_protected:_bool___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::ConcatCopy_int__wchar_t_const___int__wchar_t_const__]
mov eax, dword [ebx + 0x424]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x4017a6
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x420], eax
test eax, eax
je 0x4017b0
push str.SCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x424], eax
test eax, eax
jne 0x401786
push dword [ebx + 0x420]
call edi
jmp 0x4017b0
lea ecx, [ebx + 0x420]
sub ecx, esi
nop
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [esi + ecx + 6], ax
test ax, ax
jne 0x401790
mov eax, dword [ebx + 0x424]
lea ecx, [esp + 0x1c]
push ecx
call eax
add esp, 4
lea ecx, [esp + 0x14]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401862
mov ecx, dword [esp + 0x18]
push eax
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SApplication::SetTranslator_struct_SOUI::ITranslatorMgr__]
lea ecx, [esp + 0x4c8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::constructor_void_]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x4c8]
push str.translator
push str.lang_cn
push eax
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::LoadXmlDocment_class_pugi::xml_document___wchar_t_const___wchar_t_const__]
test eax, eax
je 0x401855
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x34]
push 1
push 0
push str.language
mov edi, dword [esi]
lea ecx, [esp + 0x4d4]
push eax
call dword [sym.imp.utilities.dll_public:_class_pugi::xml_node___thiscall_pugi::xml_node::child_wchar_t_const___bool_]
push eax
mov ecx, esi
call dword [edi + 0xc]
mov ecx, dword [esp + 0x1c]
push dword [esp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x401855
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esp + 0x4c8]
call dword [sym.imp.utilities.dll_public:_void___thiscall_pugi::xml_document::destructor_void_]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0041f582
add esp, 4
mov dword [0x465590], eax
push str.GPU_Tweak_III
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x401b20
push str.ASUSGPUZ_Mutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401b16
lea eax, [esp + 0x4b8]
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x4c0], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x4c0]
lea ecx, [esp + 0x38]
sub eax, dword [esp + 0x4b8]
mov esi, dword [esp + 0x4bc]
sub eax, 0x1b8
cdq
sub eax, edx
mov edi, eax
sar edi, 1
add edi, dword [esp + 0x4b8]
push str.LAYOUT:XML_MAINWND
call dword [sym.imp.soui.dll_public:_void___thiscall_SOUI::SHostWnd::constructor_wchar_t_const__]
lea ecx, [esp + 0x3f4]
mov dword [esp + 0x38], vtable.CMainDlg.4.0
mov dword [esp + 0x3c], vtable.CMainDlg.3.0
mov dword [esp + 0x40], vtable.CMainDlg.2.0
mov dword [esp + 0x44], vtable.CMainDlg.1.0
mov dword [esp + method.CMainDlg.virtual_0], vtable.CMainDlg.0
mov dword [esp + 0x3d4], 0
mov dword [esp + 0x3d8], 0
mov dword [esp + 0x3dc], 0
mov byte [esp + 0x3e8], 1
mov dword [esp + 0x3ec], 0xffffffff
mov byte [esp + 0x3f0], 0
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::constructor_void_]
push 0x18
mov dword [esp + 0x3fc], 0
mov dword [esp + 0x400], 0
mov dword [esp + 0x404], 0
call fcn.004124cb
add esp, 4
lea ecx, [esp + 0x404]
mov dword [eax], eax
mov dword [eax + 4], eax
push eax
push 0x10
mov dword [esp + 0x404], eax
mov dword [esp + 0x40c], 0
mov dword [esp + 0x410], 0
mov dword [esp + 0x414], 0
mov dword [esp + 0x418], 7
mov dword [esp + 0x41c], 8
mov dword [esp + 0x400], 0x3f800000
call fcn.00409d20
xorps xmm0, xmm0
mov dword [esp + 0x4a8], 0
push 0
push 0
push 0
push 0
movups xmmword [esp + 0x428], xmm0
mov dword [esp + 0x4bc], 0
movups xmmword [esp + 0x438], xmm0
mov dword [esp + 0x4c0], 0
movups xmmword [esp + 0x448], xmm0
mov dword [esp + 0x3f4], 0
movups xmmword [esp + 0x458], xmm0
movups xmmword [esp + 0x468], xmm0
movups xmmword [esp + 0x478], xmm0
movups xmmword [esp + 0x488], xmm0
movups xmmword [esp + 0x498], xmm0
movups xmmword [esp + 0x4a8], xmm0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x4c]
call dword [sym.imp.soui.dll_public:_struct_HWND______thiscall_SOUI::SHostWnd::Create_struct_HWND_____int__int__int__int_]
push 0
push 0
push 0x110
lea ecx, [esp + 0x27c]
call dword [sym.imp.soui.dll_public:_long_int___thiscall_SOUI::CSimpleWnd::SendMessageW_unsigned_int__unsigned_int__long_int_]
push dword [esp + 0x27c]
lea ecx, [esp + 0x274]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::CenterWindow_struct_HWND____]
push 0
push 0
push 0x800000
lea ecx, [esp + 0x27c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ModifyStyle_unsigned_long_int__unsigned_long_int__unsigned_int_]
push 1
push 0x208
push 0x1b8
push esi
push edi
push dword [esp + 0x290]
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
lea ecx, [esp + 0x274]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::CSimpleWnd::ShowWindow_int_]
push dword [esp + 0x27c]
mov ecx, dword [esp + 0x1c]
call dword [sym.imp.soui.dll_public:_int___thiscall_SOUI::SApplication::Run_struct_HWND____]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.00402f00
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, eax
push 1
mov edx, dword [eax]
call dword [edx]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x401b39
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x401b46
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x401b53
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x401b60
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebx + 0x1084]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
lea ecx, [ebx + 0x1080]
call dword [sym.imp.utilities.dll_public:_void___thiscall_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void_]
mov eax, dword [ebx + 0xe70]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x401b8b
push eax
call esi
mov eax, dword [ebx + 0xc60]
test eax, eax
je 0x401b98
push eax
call esi
mov eax, dword [ebx + 0xa50]
test eax, eax
je 0x401ba5
push eax
call esi
mov eax, dword [ebx + 0x840]
test eax, eax
je 0x401bb2
push eax
call esi
mov eax, dword [ebx + 0x630]
test eax, eax
je 0x401bbf
push eax
call esi
mov eax, dword [ebx + 0x420]
test eax, eax
je 0x401bcc
push eax
call esi
mov eax, dword [ebx + 0x210]
test eax, eax
je 0x401bd9
push eax
call esi
mov eax, dword [ebx]
test eax, eax
je 0x401be2
push eax
call esi
push 0x1088
push ebx
call fcn.004124bd
add esp, 8
call dword [sym.imp.ole32.dll_OleUninitialize]
mov ecx, dword [esp + 0x79c]
mov eax, dword [esp + 0x30]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412485
mov esp, ebp
pop ebp
ret 0x10