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

Disassembly:
push 0x2a0
mov eax, 0x638016
call fcn.004d66c3
mov esi, dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call ebx
test eax, eax
je 0x4b2748
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b2748
push 0x208
xor edi, edi
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004eddc0
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 0x6b2654
call fcn.00401f68
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x260]
push esi
push eax
call fcn.004bb128
lea eax, [ebp - 0x290]
mov byte [ebp - 4], 1
push esi
push eax
call fcn.004bb250
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004bb250
mov ecx, esp
mov byte [ebp - 4], 3
lea eax, [ebp - 0x290]
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00401ad6
lea eax, [ebp - 0x230]
push eax
call fcn.004b159b
add esp, 0x1c
lea ecx, [ebp - 0x290]
push eax
call fcn.00403bf9
lea ecx, [ebp - 0x230]
call fcn.00401ce8
sub esp, 0x18
lea eax, [ebp - 0x278]
mov ecx, esp
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00401ad6
lea eax, [ebp - 0x230]
push eax
call fcn.004b159b
add esp, 0x1c
lea ecx, [ebp - 0x278]
push eax
call fcn.00403bf9
lea ecx, [ebp - 0x230]
call fcn.00401ce8
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x278]
call fcn.0041ef00
test al, al
je 0x4b2586
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00401f68
jmp 0x4b25ac
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.004bb19f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00403bf9
lea ecx, [ebp - 0x230]
call fcn.00401ce8
and dword [ebp - 0x220], 0
lea ecx, [ebp - 0x230]
xor eax, eax
mov dword [ebp - 0x21c], 7
push 0x6b2654
mov word [ebp - 0x230], ax
call fcn.00401f68
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x230]
call fcn.0040692a
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
push dword [ebp - 0x250]
cmovae eax, dword [ebp - 0x260]
lea ecx, [ebp - 0x230]
push eax
call fcn.00401c58
push str..del
lea ecx, [ebp - 0x230]
call fcn.00401cb6
test edi, edi
jle 0x4b2661
lea eax, [ebp - 0x2a8]
push edi
push eax
call fcn.004b11bc
pop ecx
pop ecx
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 5
jb 0x4b2643
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00401c58
lea ecx, [ebp - 0x2a8]
mov byte [ebp - 4], 4
call fcn.00401ce8
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call ebx
test eax, eax
je 0x4b26aa
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 0x4b26aa
cmp edi, 0xa
jge 0x4b2711
inc edi
mov byte [ebp - 4], 3
jmp 0x4b25a1
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push esi
call fcn.005076e3
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 0x4b2703
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 0x4b2711
push 5
push 0
push esi
call edi
lea ecx, [ebp - 0x230]
call fcn.00401ce8
lea ecx, [ebp - 0x278]
call fcn.00401ce8
lea ecx, [ebp - 0x290]
call fcn.00401ce8
lea ecx, [ebp - 0x260]
call fcn.00401ce8
lea ecx, [ebp - 0x248]
call fcn.00401ce8
call fcn.004d666d
ret
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b298b
pop ebp
jmp 0x4b2425
pop ebp
ret