Function at 0x414490
Capabilities:
Check if file exists
Delete file
Get common file path
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d671
push eax
mov eax, 0x62efc
mov dword fs:[0], esp
call fcn.004473e0
mov ax, word [0x4d6e34]
push ebp
push esi
push edi
mov word [esp + 0x220], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x428]
mov byte [esp + 0xf], 0
push ecx
push 0x103
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x428]
push str.safelive
lea eax, [esp + 0x224]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov esi, dword [sym.imp.MSVCRT.dll__snwprintf]
lea ecx, [esp + 0x220]
push ecx
push str._s.cab
lea edx, [esp + 0x20]
push 0x103
push edx
call esi
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x630]
call fcn.0040a390
lea ecx, [esp + 0x630]
mov dword [esp + 0x62f10], 0
call fcn.0040a7c0
mov ecx, dword [esp + 0x62f18]
xor eax, eax
lea edi, [esp + 0x5d960]
mov dword [esp + 0x2a8c], 1
mov edx, dword [ecx]
mov ecx, 0x412
push edx
push 0x463604
lea edx, [esp + 0x5d968]
push 0x824
rep stosd dword es:[edi], eax
push edx
call esi
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x5d560]
mov dword [esp + 0x2cdc], 0x2bf20
add esp, 0x10
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x5d550]
push eax
push 0x463604
push 0x104
push ecx
call esi
add esp, 0x10
lea ecx, [esp + 0x630]
call fcn.0040a740
lea ecx, [esp + 0x630]
call fcn.0040aa40
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x18]
push edx
call ebp
test eax, eax
je 0x414746
mov eax, dword [esp + 0x62f1c]
push 0x463600
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.00409a80
mov edx, dword [0x463290]
lea eax, [esp + 0x18]
test eax, eax
mov byte [esp + 0x62f10], 1
mov dword [esp + 0x10], edx
je 0x414698
lea ecx, [esp + 0x18]
shr ecx, 0x10
jne 0x414660
xor eax, eax
lea edx, [esp + 0x18]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004050d0
jmp 0x414698
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x414698
push esi
lea ecx, [esp + 0x14]
call fcn.00402e70
test eax, eax
je 0x414698
mov edi, dword [esp + 0x10]
lea ecx, [esi + esi]
mov edx, ecx
lea esi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x62f18], 2
call fcn.00412550
mov ecx, dword [0x463294]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov esi, eax
mov eax, dword [esp + 0x18]
add esp, 8
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4146e5
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4146e5
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0044737a
add esp, 4
test esi, esi
je 0x4146fe
mov ecx, dword [esp + 0x62f20]
mov eax, dword [ecx]
push eax
call ebp
test eax, eax
je 0x4146fe
mov byte [esp + 0xf], 1
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41471b
push 4
push eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414746
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x414746
mov edx, dword [esp + 0x14]
lea eax, [edx - 0xc]
push eax
call fcn.0044737a
add esp, 4
lea ecx, [esp + 0x630]
mov dword [esp + 0x62f10], 0xffffffff
call fcn.0040a5c0
mov ecx, dword [esp + 0x62f08]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x62f08
ret