Function at 0x4043e0
Capabilities:
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x41b4f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push edi
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x5c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x264]
push ecx
push str._sInstallLang
push edx
stosw word es:[edi], ax
call fcn.0041296e
lea eax, [esp + 0x270]
push eax
call fcn.0040ead0
mov cl, byte [esp + 0x1b]
add esp, 0x10
mov byte [esp + 0x4c], cl
lea ecx, [esp + 0x4c]
push ebx
call fcn.00409580
lea edx, [esp + 0x5c]
push edx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x4c]
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00409380
push str.MxUninstall.exe
mov dword [esp + 0x478], ebx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x4c]
push eax
push str.MxUninstall.exe
call fcn.004067e0
mov eax, dword [esp + 0x50]
cmp eax, ebx
jne 0x4044c2
mov eax, 0x41d59c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push ebx
push eax
call esi
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x14]
call fcn.00409580
lea edx, [esp + 0x60]
push edx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00409380
push str.MxUi.dll
mov byte [esp + 0x47c], 1
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x10]
push eax
push str.MxUi.dll
call fcn.004067e0
mov eax, dword [esp + 0x14]
cmp eax, ebx
jne 0x40452e
mov eax, 0x41d59c
push 4
push ebx
push eax
call esi
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call fcn.00409580
lea edx, [esp + 0x60]
push edx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x20]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00409380
push str.MxHttpRq.dll
mov byte [esp + 0x47c], 2
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x20]
push eax
push str.MxHttpRq.dll
call fcn.004067e0
mov eax, dword [esp + 0x24]
cmp eax, ebx
jne 0x404593
mov eax, 0x41d59c
push 4
push ebx
push eax
call esi
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x34], cl
lea ecx, [esp + 0x34]
call fcn.00409580
lea edx, [esp + 0x60]
push edx
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00409380
push str.MxTool.dll
mov byte [esp + 0x47c], 3
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x30]
push eax
push str.MxTool.dll
call fcn.004067e0
mov eax, dword [esp + 0x34]
cmp eax, ebx
jne 0x4045f8
mov eax, 0x41d59c
push 4
push ebx
push eax
call esi
mov cl, byte [esp + 0xf]
push ebx
mov byte [esp + 0x44], cl
lea ecx, [esp + 0x44]
call fcn.00409580
lea edx, [esp + 0x60]
push edx
call fcn.0041255c
add esp, 4
mov edi, eax
lea ecx, [esp + 0x40]
push 1
push edi
call fcn.00409450
test al, al
je 0x40464c
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x60]
push edi
push eax
push ecx
call fcn.00401b80
add esp, 0xc
lea ecx, [esp + 0x40]
push edi
call fcn.00409430
push str.Maxzlib.dll
mov byte [esp + 0x47c], 4
call fcn.0041255c
add esp, 4
lea ecx, [esp + 0x40]
push eax
push str.Maxzlib.dll
call fcn.004067e0
mov eax, dword [esp + 0x44]
cmp eax, ebx
jne 0x40467d
mov eax, 0x41d59c
push 4
push ebx
push eax
call esi
push 4
lea edx, [esp + 0x64]
push ebx
push edx
call esi
push 1
lea ecx, [esp + 0x44]
mov byte [esp + 0x47c], 3
call fcn.00409580
mov ecx, dword [esp + 0x34]
pop esi
cmp ecx, ebx
je 0x4046c7
mov al, byte [ecx - 1]
cmp al, bl
je 0x4046bb
cmp al, 0xff
je 0x4046bb
dec al
mov byte [ecx - 1], al
jmp 0x4046c7
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
cmp ecx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
je 0x4046f9
mov al, byte [ecx - 1]
cmp al, bl
je 0x4046ed
cmp al, 0xff
je 0x4046ed
dec al
mov byte [ecx - 1], al
jmp 0x4046f9
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], ebx
cmp ecx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
je 0x40472b
mov al, byte [ecx - 1]
cmp al, bl
je 0x40471f
cmp al, 0xff
je 0x40471f
dec al
mov byte [ecx - 1], al
jmp 0x40472b
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x10], ebx
cmp ecx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
je 0x404772
mov al, byte [ecx - 1]
cmp al, bl
je 0x404766
cmp al, 0xff
je 0x404766
dec al
pop edi
mov byte [ecx - 1], al
pop ebx
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
add esp, 0x470
ret
add ecx, 0xfffffffe
push ecx
call fcn.00411f90
add esp, 4
mov ecx, dword [esp + 0x46c]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x470
ret