Function at 0x401530
Capabilities:
Set current directory
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x407c12
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x40c01c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x40c01c]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov edi, dword [esp + 0x90]
lea esi, [esp + 0x3c]
mov dword [esp + 0x14], ebp
call fcn.00401c70
mov dword [esp + 0x80], 0
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x401597
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x408264
push str.KMP_AFFINITY
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, dword [sym.imp.MSVCR90.dll_wcsstr]
push str._AppDataPath
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 8
test eax, eax
je 0x40164e
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x80], 1
push str.MxTool.dll
call ebx
test eax, eax
je 0x40161a
push str.CommandlineGetValue
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40161a
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x5c]
push str.AppDataPath
push edi
mov dword [esp + 0x24], vtable.ult::variable_length_array_dst_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___.0
mov dword [esp + 0x28], ecx
call eax
add esp, 0xc
cmp dword [esp + 0x70], 8
mov edx, dword [esp + 0x5c]
jae 0x401629
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
call fcn.00402780
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov byte [esp + 0x80], 0
lea ecx, [esp + 0x58]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
test edi, edi
je 0x401888
cmp word [edi], 0
je 0x401888
push str._RunResMgr
push edi
call esi
add esp, 8
test eax, eax
je 0x401698
push ebp
push 1
call fcn.00404490
add esp, 8
mov esi, eax
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, esi
jmp 0x4018d3
push str._RunCore
push edi
call esi
add esp, 8
test eax, eax
je 0x4016ac
push ebp
push 0
jmp 0x401672
push str._RunMxAddonsMgr
push edi
call esi
add esp, 8
test eax, eax
je 0x4016c0
push ebp
push 3
jmp 0x401672
push str._Mx30Exit
push edi
call esi
add esp, 8
test eax, eax
je 0x4016f0
call fcn.00404650
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
jmp 0x4018d3
push str._SetDefault
push edi
call esi
add esp, 8
test eax, eax
jne 0x4017fa
push str._pin
push edi
call esi
add esp, 8
test eax, eax
jne 0x4017fa
push str._SetSkinFileAssoc
push edi
call esi
add esp, 8
test eax, eax
jne 0x4017fa
push str._uninstall
push edi
call esi
add esp, 8
test eax, eax
je 0x40174d
push 0
call fcn.00403370
push 0
push 2
call fcn.00404790
add esp, 0xc
jmp 0x4016d4
push str._unpin
push edi
call esi
add esp, 8
test eax, eax
je 0x40176b
push 0
call fcn.00403370
add esp, 4
jmp 0x4016d4
push str._RunScheduledUpdate
push edi
call esi
add esp, 8
test eax, eax
je 0x401786
push edi
push ebp
call fcn.00403d30
jmp 0x401677
push str._RunApp
push edi
call esi
add esp, 8
test eax, eax
je 0x4017a1
mov ecx, edi
call fcn.00403e20
jmp 0x40167a
push str._RunMxDl
push edi
call esi
add esp, 8
test eax, eax
je 0x4017b8
push ebp
push 2
jmp 0x401672
push str._RunClrTridentHis
push edi
call esi
add esp, 8
test eax, eax
je 0x4017d5
push edi
call fcn.00403a50
add esp, 4
jmp 0x40167a
push str._RunAsSnap
push edi
call esi
add esp, 8
push edi
push ebp
test eax, eax
je 0x4017f0
call fcn.00403d80
jmp 0x401677
call fcn.00403dd0
jmp 0x401677
push str._SetDefault
push edi
call esi
add esp, 8
test eax, eax
je 0x401852
push str._CallByBrowser
push edi
xor ebx, ebx
call esi
add esp, 8
test eax, eax
je 0x401821
mov ebx, 2
jmp 0x401835
push str._CallByInstaller
push edi
call esi
add esp, 8
test eax, eax
je 0x401835
mov ebx, 1
push str._k3uninstall
push edi
call esi
add esp, 8
test eax, eax
je 0x401847
or ebx, 4
push ebx
push 1
call fcn.00404790
add esp, 8
push str._pin
push edi
call esi
add esp, 8
test eax, eax
je 0x40186b
push 1
call fcn.00403370
add esp, 4
push str._SetSkinFileAssoc
push edi
call esi
add esp, 8
test eax, eax
je 0x4016d4
call fcn.00404990
jmp 0x4016d4
push str.Maxthon.dll
or ebp, 0xffffffff
call ebx
mov esi, eax
test esi, esi
je 0x4018bc
push str.RunMainframe
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4018b5
mov ecx, dword [esp + 0x14]
push edi
push ecx
call eax
add esp, 8
mov ebp, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004063e8
add esp, 0x70
ret 0x10