Function at 0x401380
Capabilities:
Copy file
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x2dc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1e9]
mov byte [esp + 0x1e8], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1ec]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ebx
mov cl, byte [esp + 0x17]
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call fcn.00402080
lea edi, [esp + 0x1e8]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1e8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00402190
mov edi, 0x40b0c4
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x40a120]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 0x40b0c4
lea ecx, [esp + 0x20]
call fcn.00402010
push eax
lea eax, [esp + 0xd8]
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00401c00
mov ecx, dword [0x40a120]
push ecx
push ebx
push eax
lea ecx, [esp + 0x20]
call fcn.00401d90
push 1
lea ecx, [esp + 0xd8]
call fcn.00402080
mov edx, dword [0x40a120]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
mov ecx, 0x40da48
call fcn.00401d90
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xe5]
mov byte [esp + 0xe4], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xe4]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0xe4]
mov edi, str.MxUninstall
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0xe8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
lea ecx, [esp + 0x48]
mov dl, byte [esp + 0x18]
mov byte [esp + 0x48], dl
call fcn.00402080
mov eax, dword [0x40a120]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
lea ecx, [esp + 0x50]
call fcn.00401d90
mov edi, str.MxUi.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxUi.dll
lea ecx, [esp + 0x4c]
call fcn.004020d0
push ebx
lea ecx, [esp + 0x38]
mov dl, byte [esp + 0x17]
mov byte [esp + 0x38], dl
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xe4]
push ecx
push eax
lea ecx, [esp + 0x3c]
call fcn.00402190
mov edi, str.MxUi.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxUi.dll
lea ecx, [esp + 0x3c]
call fcn.004020d0
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x40157e
mov eax, 0x40a11c
mov ecx, dword [esp + 0x48]
cmp ecx, ebx
jne 0x40158b
mov ecx, 0x40a11c
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push eax
push ecx
call esi
push ebx
mov cl, byte [esp + 0x18]
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call fcn.00402080
mov edx, dword [0x40a120]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x30]
call fcn.00401d90
mov edi, str.MxHttpRq.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxHttpRq.dll
lea ecx, [esp + 0x2c]
call fcn.004020d0
push ebx
mov cl, byte [esp + 0x17]
mov byte [esp + 0x98], cl
lea ecx, [esp + 0x98]
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x9c]
call fcn.00402190
mov edi, str.MxHttpRq.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxHttpRq.dll
lea ecx, [esp + 0x9c]
call fcn.004020d0
mov ecx, 0x40a11c
mov eax, dword [esp + 0x98]
cmp eax, ebx
je 0x40164d
mov ecx, eax
mov eax, dword [esp + 0x28]
cmp eax, ebx
jne 0x40165a
mov eax, 0x40a11c
push ebx
push ecx
push eax
call esi
push ebx
lea ecx, [esp + 0x78]
mov al, byte [esp + 0x18]
mov byte [esp + 0x78], al
call fcn.00402080
mov ecx, dword [0x40a120]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
lea ecx, [esp + 0x80]
call fcn.00401d90
mov edi, str.MxTool.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxTool.dll
lea ecx, [esp + 0x7c]
call fcn.004020d0
push ebx
lea ecx, [esp + 0x68]
mov al, byte [esp + 0x17]
mov byte [esp + 0x68], al
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x6c]
call fcn.00402190
mov edi, str.MxTool.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxTool.dll
lea ecx, [esp + 0x6c]
call fcn.004020d0
mov ecx, 0x40a11c
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x40170a
mov ecx, eax
mov eax, dword [esp + 0x78]
cmp eax, ebx
jne 0x401717
mov eax, 0x40a11c
push ebx
push ecx
push eax
call esi
push ebx
lea ecx, [esp + 0xa8]
mov dl, byte [esp + 0x18]
mov byte [esp + 0xa8], dl
call fcn.00402080
mov eax, dword [0x40a120]
lea ecx, [esp + 0x14]
push eax
push ebx
push ecx
lea ecx, [esp + 0xb0]
call fcn.00401d90
mov edi, str.Maxzlib.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Maxzlib.dll
lea ecx, [esp + 0xac]
call fcn.004020d0
push ebx
lea ecx, [esp + 0xb8]
mov dl, byte [esp + 0x17]
mov byte [esp + 0xb8], dl
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xe4]
push ecx
push eax
lea ecx, [esp + 0xbc]
call fcn.00402190
mov edi, str.Maxzlib.dll
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Maxzlib.dll
lea ecx, [esp + 0xbc]
call fcn.004020d0
mov ecx, dword [esp + 0xb8]
cmp ecx, ebx
jne 0x4017dc
mov ecx, 0x40a11c
mov eax, dword [esp + 0xa8]
cmp eax, ebx
jne 0x4017ec
mov eax, 0x40a11c
push ebx
push ecx
push eax
call esi
push ebx
mov cl, byte [esp + 0x18]
mov byte [esp + 0x58], cl
lea ecx, [esp + 0x58]
call fcn.00402080
mov edx, dword [0x40a120]
lea eax, [esp + 0x14]
push edx
push ebx
push eax
lea ecx, [esp + 0x60]
call fcn.00401d90
mov edi, str.LanguageInstallLang_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.LanguageInstallLang_
lea ecx, [esp + 0x5c]
call fcn.004020d0
push ebx
mov cl, byte [esp + 0x17]
mov byte [esp + 0xc8], cl
lea ecx, [esp + 0xc8]
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xe4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0xcc]
call fcn.00402190
mov edi, str.InstallLang_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.InstallLang_
lea ecx, [esp + 0xcc]
call fcn.004020d0
mov ecx, 0x40a11c
mov eax, dword [esp + 0xc8]
cmp eax, ebx
je 0x4018a8
mov ecx, eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
jne 0x4018b5
mov eax, 0x40a11c
push ecx
push eax
call fcn.00401090
mov al, byte [esp + 0x1b]
add esp, 8
lea ecx, [esp + 0x84]
mov byte [esp + 0x84], al
push ebx
call fcn.00402080
lea edi, [esp + 0xe4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0xe8]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00402190
mov edi, str.MxUninstall.exe
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.MxUninstall.exe
lea ecx, [esp + 0x8c]
call fcn.004020d0
mov eax, dword [esp + 0x88]
cmp eax, ebx
jne 0x40192e
mov eax, 0x40a11c
push eax
push 0x68
call fcn.00401a70
add esp, 8
lea ecx, [esp + 0x84]
push 1
call fcn.00402080
push 1
lea ecx, [esp + 0xc8]
call fcn.00402080
push 1
lea ecx, [esp + 0x58]
call fcn.00402080
push 1
lea ecx, [esp + 0xb8]
call fcn.00402080
push 1
lea ecx, [esp + 0xa8]
call fcn.00402080
push 1
lea ecx, [esp + 0x68]
call fcn.00402080
push 1
lea ecx, [esp + 0x78]
call fcn.00402080
push 1
lea ecx, [esp + 0x98]
call fcn.00402080
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x4019c4
mov al, byte [ecx - 1]
cmp al, bl
je 0x4019ba
cmp al, 0xff
je 0x4019ba
dec al
mov byte [ecx - 1], al
jmp 0x4019c4
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
cmp ecx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4019f4
mov al, byte [ecx - 1]
cmp al, bl
je 0x4019ea
cmp al, 0xff
je 0x4019ea
dec al
mov byte [ecx - 1], al
jmp 0x4019f4
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x401a24
mov al, byte [ecx - 1]
cmp al, bl
je 0x401a1a
cmp al, 0xff
je 0x401a1a
dec al
mov byte [ecx - 1], al
jmp 0x401a24
dec ecx
push ecx
call fcn.00402600
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x48], ebx
cmp ecx, ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
je 0x401a61
mov al, byte [ecx - 1]
cmp al, bl
je 0x401a57
cmp al, 0xff
je 0x401a57
dec al
pop edi
pop esi
mov byte [ecx - 1], al
pop ebp
xor eax, eax
pop ebx
add esp, 0x2dc
ret 0x10
dec ecx
push ecx
call fcn.00402600
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2dc
ret 0x10