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

Disassembly:
push 0x48c
mov eax, 0x56f051
call fcn.004e718f
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push esi
call edi
test eax, eax
je 0x4b40a0
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4b40a0
mov ebx, 0x208
push ebx
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004bf1c0
push ebx
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004bf1c0
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 0x571908
call fcn.00419cc0
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.004b4738
lea eax, [ebp - 0x480]
push esi
push eax
call fcn.004b4f70
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x468]
push eax
call fcn.004b4f70
lea eax, [ebp - 0x480]
mov byte [ebp - 4], 2
push eax
call fcn.004b6ac2
lea eax, [ebp - 0x468]
push eax
call fcn.004b6ac2
add esp, 0x20
lea eax, [ebp - 0x480]
lea ecx, [ebp - 0x468]
push eax
call fcn.00443d2d
test eax, eax
jne 0x4b3eb9
cmp word [ebp - 0x218], ax
jne 0x4b3e97
mov eax, ebx
jmp 0x4b3ea4
lea eax, [ebp - 0x218]
push eax
call fcn.004d2a7b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x450]
call fcn.00419cc0
jmp 0x4b3ee2
lea eax, [ebp - 0x498]
push esi
push eax
call fcn.004b485b
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.004241f0
push ebx
lea ecx, [ebp - 0x498]
push 1
call fcn.00430390
and dword [ebp - 0x428], 0
lea ecx, [ebp - 0x438]
xor eax, eax
mov dword [ebp - 0x424], 7
push eax
push 0x571908
mov word [ebp - 0x438], ax
call fcn.00419cc0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x450]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x438]
call fcn.00419ba0
cmp word [ebp - 0x420], 0
jne 0x4b3f35
xor eax, eax
jmp 0x4b3f42
lea eax, [ebp - 0x420]
push eax
call fcn.004d2a7b
pop ecx
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x438]
call fcn.0041e910
push str..del
call fcn.004d2a7b
pop ecx
push eax
push str..del
lea ecx, [ebp - 0x438]
call fcn.0041e910
test ebx, ebx
jle 0x4b3fb0
mov eax, ebx
cdq
push edx
push eax
lea eax, [ebp - 0x498]
push eax
call fcn.004b5d1c
add esp, 0xc
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 4
call fcn.0041e800
push 0
push 1
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.00430390
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call edi
test eax, eax
je 0x4b4000
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 0x4b4000
cmp ebx, 0xa
jge 0x4b4067
inc ebx
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x438]
jmp 0x4b3edb
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
push esi
call fcn.004c7eb9
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 0x4b4059
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 0x4b4067
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.00430390
push ebx
push esi
lea ecx, [ebp - 0x468]
call fcn.00430390
push ebx
push esi
lea ecx, [ebp - 0x480]
call fcn.00430390
push ebx
push esi
lea ecx, [ebp - 0x450]
call fcn.00430390
call fcn.004e7139
ret