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

Disassembly:
push 0x48c
mov eax, 0x5c8f4a
call fcn.00496753
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x4d8e54
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d8e54
mov ebx, 0x208
push ebx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004e1330
push ebx
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004e1330
add esp, 0x18
mov dword [ebp - 0x43c], 7
xor eax, eax
mov dword [ebp - 0x440], ebx
lea ecx, [ebp - 0x450]
mov word [ebp - 0x450], ax
push ebx
push 0x6e478c
call fcn.00446930
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x420]
push eax
push esi
call fcn.004d934e
lea eax, [ebp - 0x480]
push esi
push eax
call fcn.004d9a05
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.004d9a05
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 2
push eax
call fcn.004db4ab
lea eax, [ebp - 0x468]
push eax
call fcn.004db4ab
add esp, 0x20
lea eax, [ebp - 0x480]
lea ecx, [ebp - 0x468]
push eax
call fcn.00450800
test eax, eax
jne 0x4d8c6d
cmp word [ebp - 0x218], ax
jne 0x4d8c4b
mov eax, ebx
jmp 0x4d8c58
lea eax, [ebp - 0x218]
push eax
call fcn.004e608a
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.00446930
jmp 0x4d8c96
lea eax, [ebp - 0x498]
push esi
push eax
call fcn.004d9471
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.0044ecc0
push ebx
lea ecx, [ebp - 0x498]
push 1
call fcn.00446840
and dword [ebp - 0x428], 0
lea ecx, [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 7
push eax
push 0x6e478c
mov word [ebp - 0x438], ax
call fcn.00446930
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x438]
call fcn.004469b0
cmp word [ebp - 0x420], 0
jne 0x4d8ce9
xor eax, eax
jmp 0x4d8cf6
lea eax, [ebp - 0x420]
push eax
call fcn.004e608a
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.00446ed0
push str..del
call fcn.004e608a
pop ecx
push eax
push str..del
lea ecx, [ebp - 0x438]
call fcn.00446ed0
test ebx, ebx
jle 0x4d8d64
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.004da65d
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.00447260
push 0
push 1
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00446840
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call edi
test eax, eax
je 0x4d8db4
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4d8db4
cmp ebx, 0xa
jge 0x4d8e1b
inc ebx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x438]
jmp 0x4d8c8f
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push esi
call fcn.004f772b
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
pop ecx
cmovae eax, dword [ebp - 0x438]
pop ecx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4d8e0d
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 5
cmovae eax, dword [ebp - 0x438]
push 0
push eax
call ebx
push esi
call edi
test eax, eax
je 0x4d8e1b
push 5
push 0
push esi
call ebx
xor ebx, ebx
lea ecx, [ebp - 0x438]
xor esi, esi
push ebx
inc esi
push esi
call fcn.00446840
push ebx
push esi
lea ecx, [ebp - 0x468]
call fcn.00446840
push ebx
push esi
lea ecx, [ebp - 0x480]
call fcn.00446840
push ebx
push esi
lea ecx, [ebp - 0x450]
call fcn.00446840
call fcn.004966fd
ret