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

Disassembly:
push 0xffffffffffffffff
push 0x5007c42
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x500c01c]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x500c01c]
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.05001c70
mov dword [esp + 0x80], 0
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x5001597
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.NONE
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 0x500164e
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 0x500161a
push str.CommandlineGetValue
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x500161a
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 0x5001629
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
call fcn.05002780
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 0x5001888
cmp word [edi], 0
je 0x5001888
push str._RunResMgr
push edi
call esi
add esp, 8
test eax, eax
je 0x5001698
push ebp
push 1
call fcn.05004490
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 0x50018d3
push str._RunCore
push edi
call esi
add esp, 8
test eax, eax
je 0x50016ac
push ebp
push 0
jmp 0x5001672
push str._RunMxAddonsMgr
push edi
call esi
add esp, 8
test eax, eax
je 0x50016c0
push ebp
push 3
jmp 0x5001672
push str._Mx30Exit
push edi
call esi
add esp, 8
test eax, eax
je 0x50016f0
call fcn.05004650
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 0x50018d3
push str._SetDefault
push edi
call esi
add esp, 8
test eax, eax
jne 0x50017fa
push str._pin
push edi
call esi
add esp, 8
test eax, eax
jne 0x50017fa
push str._SetSkinFileAssoc
push edi
call esi
add esp, 8
test eax, eax
jne 0x50017fa
push str._uninstall
push edi
call esi
add esp, 8
test eax, eax
je 0x500174d
push 0
call fcn.05003370
push 0
push 2
call fcn.05004790
add esp, 0xc
jmp 0x50016d4
push str._unpin
push edi
call esi
add esp, 8
test eax, eax
je 0x500176b
push 0
call fcn.05003370
add esp, 4
jmp 0x50016d4
push str._RunScheduledUpdate
push edi
call esi
add esp, 8
test eax, eax
je 0x5001786
push edi
push ebp
call fcn.05003d30
jmp 0x5001677
push str._RunApp
push edi
call esi
add esp, 8
test eax, eax
je 0x50017a1
mov ecx, edi
call fcn.05003e20
jmp 0x500167a
push str._RunMxDl
push edi
call esi
add esp, 8
test eax, eax
je 0x50017b8
push ebp
push 2
jmp 0x5001672
push str._RunClrTridentHis
push edi
call esi
add esp, 8
test eax, eax
je 0x50017d5
push edi
call fcn.05003a50
add esp, 4
jmp 0x500167a
push str._RunAsSnap
push edi
call esi
add esp, 8
push edi
push ebp
test eax, eax
je 0x50017f0
call fcn.05003d80
jmp 0x5001677
call fcn.05003dd0
jmp 0x5001677
push str._SetDefault
push edi
call esi
add esp, 8
test eax, eax
je 0x5001852
push str._CallByBrowser
push edi
xor ebx, ebx
call esi
add esp, 8
test eax, eax
je 0x5001821
mov ebx, 2
jmp 0x5001835
push str._CallByInstaller
push edi
call esi
add esp, 8
test eax, eax
je 0x5001835
mov ebx, 1
push str._k3uninstall
push edi
call esi
add esp, 8
test eax, eax
je 0x5001847
or ebx, 4
push ebx
push 1
call fcn.05004790
add esp, 8
push str._pin
push edi
call esi
add esp, 8
test eax, eax
je 0x500186b
push 1
call fcn.05003370
add esp, 4
push str._SetSkinFileAssoc
push edi
call esi
add esp, 8
test eax, eax
je 0x50016d4
call fcn.05004990
jmp 0x50016d4
push str.Maxthon.dll
or ebp, 0xffffffff
call ebx
mov esi, eax
test esi, esi
je 0x50018bc
push str.RunMainframe
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x50018b5
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.05006418
add esp, 0x70
ret 0x10