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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55159b
mov eax, dword fs:[0]
push eax
mov eax, 0x1480
call fcn.00538d40
mov eax, dword [0x5bb270]
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
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 0x1470], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x146c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1468], eax
je 0x40ab27
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xc40], ax
lea eax, [ebp - 0xc3e]
push eax
call fcn.00537c80
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.005372b7
add esp, 8
cmp word [ebp + eax*2 - 0x21a], 0x5c
jne 0x40a871
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x40aac1
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xa38], ax
lea eax, [ebp - 0xa36]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0xe48], ax
lea eax, [ebp - 0xe46]
push eax
call fcn.00537c80
xor eax, eax
xor edi, edi
push 0x206
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.00537c80
add esp, 0x24
lea ecx, [ebp - 0x148c]
call fcn.004123ec
push edi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 0x562818
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0053777e
add esp, 0x14
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x148c]
push edi
push eax
call fcn.00412639
lea ecx, [ebp - 0x148c]
mov esi, eax
call fcn.004125ed
test esi, esi
je 0x40a967
lea ebx, [ebx]
inc edi
lea eax, [ebp - 0x218]
push edi
push eax
push 0x562818
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0053777e
add esp, 0x14
lea eax, [ebp - 0x830]
lea ecx, [ebp - 0x148c]
push 0
push eax
call fcn.00412639
lea ecx, [ebp - 0x148c]
mov esi, eax
call fcn.004125ed
test esi, esi
jne 0x40a920
push edi
push str.Maint_03x.exe
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0053777e
push edi
push str.Maint_03x.ini
lea eax, [ebp - 0xe48]
push 0x104
push eax
call fcn.0053777e
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x561e78
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0053777e
push dword [ebp - 0x146c]
mov edi, dword [ebp - 0x1470]
lea eax, [ebp - 0xc40]
push edi
push 0x561e78
push 0x104
push eax
call fcn.0053777e
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x628]
add esp, 0x48
push 0
push eax
lea eax, [ebp - 0xc40]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x1050], ax
lea eax, [ebp - 0x104e]
push eax
call fcn.00537c80
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push eax
call fcn.00537c80
push dword [ebp - 0x1468]
lea eax, [ebp - 0x1050]
push edi
push 0x561e78
push 0x104
push eax
call fcn.0053777e
lea eax, [ebp - 0xe48]
push eax
lea eax, [ebp - 0x218]
push eax
push 0x561e78
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0053777e
add esp, 0x40
lea eax, [ebp - 0x420]
push 0
push eax
lea eax, [ebp - 0x1050]
push eax
call esi
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x1460], ax
lea eax, [ebp - 0x145e]
push eax
call fcn.00537c80
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0x18], 0
push eax
push str._LaunchProcessID
lea eax, [ebp - 0x420]
push eax
je 0x40aac6
push str._DelUnstWithReboot
jmp 0x40aad8
call fcn.00537eb5
cmp dword [ebp + 0x14], 3
jne 0x40aad3
push str._DelUnstForUpdate
jmp 0x40aad8
push str._DelUnst
lea eax, [ebp - 0x628]
push eax
push str.__s___s__s___s_lu
lea eax, [ebp - 0x1460]
push 0x208
push eax
call fcn.0053777e
mov ecx, dword [ebp - 0x1464]
lea eax, [ebp - 0x1460]
add esp, 0x20
test ebx, ebx
je 0x40ab0b
push ebx
jmp 0x40ab0d
push 0
push 0
push eax
call fcn.0040ab50
lea ecx, [ebp - 0x148c]
mov dword [ebp - 4], 0xffffffff
call fcn.0041259d
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.0053787e
mov esp, ebp
pop ebp
ret 0x18