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

Disassembly:
push 0x2a0
mov eax, 0x10263d1d
call fcn.10054407
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x1006c25f
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1006c25f
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.100cd120
add esp, 0xc
mov dword [ebp - 0x238], edi
xor eax, eax
mov dword [ebp - 0x234], 7
lea ecx, [ebp - 0x248]
mov word [ebp - 0x248], ax
push 0x102de6e0
call fcn.100034a0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x278]
call fcn.100067f0
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push esi
call fcn.100067f0
lea eax, [ebp - 0x2a8]
push eax
call fcn.1005bf22
add esp, 4
mov byte [ebp - 4], 2
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call fcn.100067f0
lea eax, [ebp - 0x290]
push eax
call fcn.1005bf22
add esp, 0x1c
cmp dword [ebp - 0x27c], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x2a8]
mov byte [ebp - 4], 3
cmovae ecx, dword [ebp - 0x290]
cmp dword [ebp - 0x294], 8
push ecx
cmovae eax, dword [ebp - 0x2a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsSameRootW]
lea ecx, [ebp - 0x248]
test eax, eax
je 0x1006c054
lea eax, [ebp - 0x218]
push eax
call fcn.100034a0
jmp 0x1006c0d2
push esi
call fcn.100034a0
push 0xffffffffffffffff
push 0x102ddc5c
lea ecx, [ebp - 0x248]
call fcn.100321e0
cmp eax, 0xffffffff
jne 0x1006c087
push eax
push 0x1026e77c
lea ecx, [ebp - 0x248]
call fcn.100321e0
cmp eax, 0xffffffff
je 0x1006c0d2
xor ecx, ecx
mov dword [ebp - 0x220], edi
inc eax
mov word [ebp - 0x230], cx
push eax
push edi
lea eax, [ebp - 0x248]
mov dword [ebp - 0x21c], 7
push eax
lea ecx, [ebp - 0x230]
call fcn.10008190
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.10005380
lea ecx, [ebp - 0x230]
call fcn.100042b0
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x248]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x230]
push eax
call fcn.10022040
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
push dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x278]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 4
call fcn.100088e0
push str..del
lea ecx, [ebp - 0x230]
call fcn.10007ee0
test edi, edi
jle 0x1006c178
lea eax, [ebp - 0x260]
push edi
push eax
call fcn.10059ba2
pop ecx
pop ecx
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
push eax
mov byte [ebp - 4], 5
call fcn.100088e0
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 4
call fcn.100042b0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x1006c1c1
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 0x1006c1c1
cmp edi, 0xa
jge 0x1006c228
inc edi
mov byte [ebp - 4], 3
jmp 0x1006c0c7
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.100fb1c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
pop ecx
cmovae eax, dword [ebp - 0x230]
pop ecx
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1006c21a
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 5
cmovae eax, dword [ebp - 0x230]
push 0
push eax
call edi
push esi
call ebx
test eax, eax
je 0x1006c228
push 5
push 0
push esi
call edi
lea ecx, [ebp - 0x230]
call fcn.100042b0
lea ecx, [ebp - 0x290]
call fcn.100042b0
lea ecx, [ebp - 0x2a8]
call fcn.100042b0
lea ecx, [ebp - 0x278]
call fcn.100042b0
lea ecx, [ebp - 0x248]
call fcn.100042b0
call fcn.100543b1
ret
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1006ce92
pop ebp
jmp 0x1006bf2f
pop ebp
ret