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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440908
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x45a074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41599e
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x4159a8
mov eax, 1
jmp 0x415baa
push 4
lea ecx, [ebp - 0x14]
call fcn.00409db0
lea ecx, [ebp - 0x14]
call fcn.00412210
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0x400
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x14]
call fcn.004122a0
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.00412230
push 1
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040a610
push eax
call fcn.00414090
add esp, 0xc
test eax, eax
je 0x415a31
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
push eax
lea ecx, [ebp - 0x14]
call fcn.004120d0
push 0x4537e4
lea ecx, [ebp - 0x14]
call fcn.00412090
jmp 0x415a73
push 1
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411f30
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
push edx
push 0x4538b4
call fcn.00411ed0
add esp, 8
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x38]
call fcn.00412150
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x415a73
push 0x45391c
lea ecx, [ebp - 0x14]
call fcn.00412090
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov dword [ebp - 0x3c], eax
push 4
lea ecx, [ebp - 0x1c]
call fcn.00409db0
lea ecx, [ebp - 0x1c]
call fcn.00412210
mov byte [ebp - 4], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x453ddc
lea edx, [ebp - 0x1c]
push edx
call fcn.00413140
add esp, 0x10
mov dword [ebp - 0x48], 0xa
mov dword [ebp - 0x24], 0
jmp 0x415ac9
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xa
jae 0x415b86
push 4
lea ecx, [ebp - 0x18]
call fcn.00409db0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004121f0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x18]
call fcn.00412090
push 0x2e
lea ecx, [ebp - 0x18]
call fcn.00412070
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004120b0
push 1
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x415b50
push 4
push 0
lea ecx, [ebp - 0x18]
call fcn.0040a610
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00412150
jmp 0x415b86
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push str._08x_x
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00413140
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00412150
jmp 0x415ac0
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00412150
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00412150
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00421c00
mov esp, ebp
pop ebp
ret 4