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

Disassembly:
push 0x480
mov eax, 0x51f0d2
call fcn.004ac5bf
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x458], ebx
mov edi, dword [ebp + 8]
mov ecx, esi
call fcn.00407590
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
je 0x42399d
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], ecx
mov byte [ebp - 0x43c], cl
mov dword [ebp - 4], ecx
lea edx, [ebp - 0x43c]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0042135f
pop ecx
test al, al
je 0x4238f3
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x474]
call fcn.004234b5
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x454]
call fcn.00414c82
push 0
push 1
lea ecx, [ebp - 0x474]
mov byte [ebp - 4], 3
call fcn.004049c9
and dword [ebp - 0x424], 0
lea eax, [ebp - 0x424]
push eax
mov ecx, edi
call fcn.00423b3f
lea eax, [ebp - 0x45c]
mov ecx, edi
push eax
call fcn.00423afd
push eax
lea ecx, [ebp - 0x424]
call fcn.0040a260
test al, al
je 0x4238e4
lea ecx, [ebp - 0x424]
call fcn.00407820
mov edx, eax
lea ecx, [ebp - 0x48c]
call fcn.00414c41
mov ecx, eax
call fcn.00407590
push eax
lea ecx, [ebp - 0x454]
call fcn.00407590
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
lea ecx, [ebp - 0x48c]
neg ebx
sbb bl, bl
call fcn.00409ad0
add bl, 1
jne 0x423adf
lea ecx, [ebp - 0x424]
call fcn.0040a530
lea eax, [ebp - 0x45c]
mov ecx, edi
push eax
call fcn.00423afd
push eax
lea ecx, [ebp - 0x424]
call fcn.0040a260
test al, al
jne 0x423869
mov ebx, dword [ebp - 0x458]
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00409ad0
mov ecx, esi
call fcn.00407590
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x42398a
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004e9750
add esp, 0xc
mov ecx, esi
push 0x104
call fcn.00407590
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004e9750
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 4
lea eax, [ebp - 0x420]
mov ecx, esi
push eax
call fcn.00407590
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x43c]
push 0
push 1
call fcn.004049c9
mov edx, esi
mov ecx, ebx
call fcn.00423634
test al, al
je 0x423ad7
xor ebx, ebx
mov dword [ebp - 0x428], 0xf
mov dword [ebp - 0x42c], ebx
mov byte [ebp - 0x43c], bl
push 0xffffffffffffffff
lea edx, [ebp - 0x43c]
mov dword [ebp - 4], 4
mov ecx, esi
call fcn.0042135f
pop ecx
test al, al
je 0x423ac9
lea edx, [ebp - 0x43c]
lea ecx, [ebp - 0x48c]
call fcn.004234b5
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x454]
call fcn.00414c82
push ebx
push 1
lea ecx, [ebp - 0x48c]
mov byte [ebp - 4], 7
call fcn.004049c9
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], ebx
push eax
mov ecx, edi
call fcn.00423b3f
lea eax, [ebp - 0x458]
mov ecx, edi
push eax
call fcn.00423afd
push eax
lea ecx, [ebp - 0x424]
call fcn.0040a260
test al, al
je 0x423abe
lea ecx, [ebp - 0x424]
call fcn.00407820
mov edx, eax
lea ecx, [ebp - 0x474]
call fcn.00414c41
mov ecx, eax
call fcn.00407590
push eax
lea ecx, [ebp - 0x454]
call fcn.00407590
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, eax
lea ecx, [ebp - 0x474]
neg ebx
sbb bl, bl
call fcn.00409ad0
add bl, 1
jne 0x423adf
lea ecx, [ebp - 0x424]
call fcn.0040a530
lea eax, [ebp - 0x458]
mov ecx, edi
push eax
call fcn.00423afd
push eax
lea ecx, [ebp - 0x424]
call fcn.0040a260
test al, al
jne 0x423a4b
xor ebx, ebx
lea ecx, [ebp - 0x454]
call fcn.00409ad0
push ebx
push 1
lea ecx, [ebp - 0x43c]
call fcn.004049c9
xor al, al
call fcn.004ac569
ret
lea ecx, [ebp - 0x454]
call fcn.00409ad0
push 0
push 1
lea ecx, [ebp - 0x43c]
call fcn.004049c9
mov al, 1
jmp 0x423ad9