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

Disassembly:
push 0x29c
mov eax, 0x1018c16b
call fcn.101892bd
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x1014dbe7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1014dbe7
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.101640e0
add esp, 0xc
lea ecx, [ebp - 0x260]
push 0x1018f440
call fcn.10002790
and dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x248]
push esi
push eax
call fcn.1014e494
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.1014e663
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.1014e663
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 3
push eax
call fcn.1014faf2
lea eax, [ebp - 0x278]
push eax
call fcn.1014faf2
add esp, 0x20
lea eax, [ebp - 0x290]
lea ecx, [ebp - 0x278]
push eax
call fcn.1014df34
test al, al
je 0x1014da21
lea eax, [ebp - 0x218]
push eax
call fcn.10178900
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.10001270
jmp 0x1014da47
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.1014e5b2
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x260]
call fcn.10002a20
lea ecx, [ebp - 0x230]
call fcn.10001e10
xor ebx, ebx
push 0x1018f440
lea ecx, [ebp - 0x230]
call fcn.10002790
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.100079a0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.10004210
push str..cdc
call fcn.10178900
pop ecx
push eax
push str..cdc
lea ecx, [ebp - 0x230]
call fcn.10004210
test ebx, ebx
jle 0x1014daf5
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.1014e00e
add esp, 0xc
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 5
jb 0x1014dad7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.10004210
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.10001e10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call edi
test eax, eax
je 0x1014db49
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1014db49
cmp ebx, 0xa
jge 0x1014dbb0
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 3
inc ebx
call fcn.10001e10
jmp 0x1014da49
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.10178d59
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1014dba2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call ebx
push esi
call edi
test eax, eax
je 0x1014dbb0
push 5
push 0
push esi
call ebx
lea ecx, [ebp - 0x230]
call fcn.10001e10
lea ecx, [ebp - 0x278]
call fcn.10001e10
lea ecx, [ebp - 0x290]
call fcn.10001e10
lea ecx, [ebp - 0x248]
call fcn.10001e10
lea ecx, [ebp - 0x260]
call fcn.10001e10
call fcn.10189278
ret