Function at 0x40ed20
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52d57b
mov eax, dword fs:[0]
push eax
mov eax, 0x147c
call fcn.005158c0
mov eax, dword [0x5976b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1464], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x146c], eax
mov dword [ebp - 0x1468], ecx
cmp dword [ebp + 0x10], esi
je 0x40f0ae
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push esi
push eax
mov word [ebp - 0x218], dx
call fcn.005149a0
push 0x206
lea edx, [ebp - 0x626]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0x628], cx
call fcn.005149a0
push 0x206
lea ecx, [ebp - 0xc3e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0xc40], ax
call fcn.005149a0
add esp, 0x24
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0051611e
lea eax, [ebp + eax*2 - 0x21a]
add esp, 8
cmp word [eax], 0x5c
jne 0x40ee04
xor ecx, ecx
mov word [eax], cx
push 0x206
lea eax, [ebp - 0xa36]
xor edx, edx
push esi
push eax
mov word [ebp - 0xa38], dx
call fcn.005149a0
push 0x206
lea edx, [ebp - 0xe46]
xor ecx, ecx
push esi
push edx
mov word [ebp - 0xe48], cx
call fcn.005149a0
push 0x206
lea ecx, [ebp - 0x82e]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x830], ax
call fcn.005149a0
add esp, 0x24
lea ecx, [ebp - 0x1488]
call fcn.00416bbc
push esi
lea edx, [ebp - 0x218]
push edx
push str._sMaint_03x.
lea eax, [ebp - 0x830]
push 0x104
push eax
mov dword [ebp - 4], esi
call fcn.00515c51
add esp, 0x14
push esi
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x1488]
call fcn.00416c88
lea ecx, [ebp - 0x1488]
mov edi, eax
call fcn.00416728
test edi, edi
je 0x40eef7
jmp 0x40eeb0
inc esi
push esi
lea edx, [ebp - 0x218]
push edx
push str._sMaint_03x.
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.00515c51
add esp, 0x14
push 0
lea ecx, [ebp - 0x830]
push ecx
lea ecx, [ebp - 0x1488]
call fcn.00416c88
lea ecx, [ebp - 0x1488]
mov edi, eax
call fcn.00416728
test edi, edi
jne 0x40eeb0
push esi
push str.Maint_03x.exe
lea edx, [ebp - 0xa38]
push 0x104
push edx
call fcn.00515c51
push esi
push str.Maint_03x.ini
lea eax, [ebp - 0xe48]
push 0x104
push eax
call fcn.00515c51
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0x53d734
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00515c51
mov ecx, dword [ebp - 0x146c]
push ecx
push ebx
push 0x53d734
lea edx, [ebp - 0xc40]
push 0x104
push edx
call fcn.00515c51
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
add esp, 0x48
push 0
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc40]
push ecx
call esi
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x104e]
push eax
mov word [ebp - 0x1050], dx
call fcn.005149a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call fcn.005149a0
push str.uninst.ini
push ebx
push 0x53d734
lea eax, [ebp - 0x1050]
push 0x104
push eax
call fcn.00515c51
lea ecx, [ebp - 0xe48]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0x53d734
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00515c51
add esp, 0x40
push 0
lea ecx, [ebp - 0x420]
push ecx
lea edx, [ebp - 0x1050]
push edx
call esi
xor eax, eax
push 0x40e
push eax
lea ecx, [ebp - 0x145e]
push ecx
mov word [ebp - 0x1460], ax
call fcn.005149a0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0x14], 0
push eax
lea edx, [ebp - 0x420]
push str._LaunchProcessID
lea ecx, [ebp - 0x1460]
lea eax, [ebp - 0x628]
push edx
je 0x40f057
push str._DelUnstWithReboot
jmp 0x40f05c
push str._DelUnst
push eax
push str.__s___s__s___s_lu
push 0x208
push ecx
call fcn.00515c51
mov eax, dword [ebp - 0x1468]
mov ecx, dword [ebp - 0x1464]
add esp, 0x20
test eax, eax
je 0x40f08c
push eax
push 0
lea edx, [ebp - 0x1460]
push edx
jmp 0x40f097
push 0
push 0
lea eax, [ebp - 0x1460]
push eax
call fcn.0040ebe0
lea ecx, [ebp - 0x1488]
mov dword [ebp - 4], 0xffffffff
call fcn.00416bee
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00514990
mov esp, ebp
pop ebp
ret 0x14