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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fea0
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x4cc1c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 8], 0
jne 0x48dbd8
xor eax, eax
jmp 0x48de49
mov eax, dword [ebp + 8]
push eax
call fcn.0048e180
add esp, 4
test eax, eax
jne 0x48dc0a
mov ecx, dword [ebp + 8]
push ecx
push str.DeleteFile_lpszFilePath__s
push 0xf3
push 0x4a8c78
call fcn.0040fa10
add esp, 0x10
xor eax, eax
jmp 0x48de49
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x208
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00466700
add esp, 0xc
push 0x104
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x21c]
push edx
call fcn.00466e86
add esp, 0xc
test eax, eax
jne 0x48dc4c
xor eax, eax
jmp 0x48de49
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x48dc64
xor eax, eax
jmp 0x48de49
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
jne 0x48de43
cmp dword [ebp + 0xc], 0
je 0x48de43
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x228]
call fcn.00401600
mov dword [ebp - 4], 0
push 4
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00401730
mov dword [ebp - 0x240], eax
push str..tmp
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.00401840
add esp, 8
mov byte [ebp - 0x221], al
lea ecx, [ebp - 0x23c]
call fcn.00401680
movzx edx, byte [ebp - 0x221]
test edx, edx
je 0x48de1a
lea ecx, [ebp - 0x220]
call fcn.004015e0
mov byte [ebp - 4], 1
push 0x5c
lea ecx, [ebp - 0x228]
call fcn.004016e0
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x228]
call fcn.004017c0
mov byte [ebp - 4], 2
push 0x104
lea ecx, [ebp - 0x220]
call fcn.0040b7c0
push eax
push 0
push 0x4a8c94
lea ecx, [ebp - 0x230]
call fcn.00401590
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 0x234], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x220]
call fcn.0040b400
cmp dword [ebp - 0x234], 0
jne 0x48dd8b
lea ecx, [ebp - 0x21c]
push ecx
push 0x4a8c98
lea edx, [ebp - 0x220]
push edx
call fcn.00405290
add esp, 0xc
jmp 0x48dda1
push 1
lea ecx, [ebp - 0x220]
call fcn.00401590
push eax
call fcn.0048dba0
add esp, 8
lea ecx, [ebp - 0x220]
call fcn.00401590
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0046701c
add esp, 8
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0
jne 0x48dde3
push 4
push 0
lea ecx, [ebp - 0x220]
call fcn.00401590
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x48ddfa
push 4
push 0
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00401680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00401680
jmp 0x48de31
push 4
push 0
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x22c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x228]
call fcn.00401680
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004654b1
mov esp, ebp
pop ebp
ret