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

Disassembly:
push 0xffffffffffffffff
push 0x5c64c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x288
mov eax, dword [esp + 0x2a4]
mov ecx, dword [esp + 0x2a0]
push ebx
mov ebx, dword [esp + 0x29c]
push ebp
mov ebp, dword [esp + 0x2b8]
push esi
mov esi, dword [esp + 0x2b8]
push edi
push ebp
push esi
push eax
push ecx
push ebx
push str.SaveLib_dwType_0x_x___dwStoreFlag_0x_x___dwExDataSize_0x_x___lpBuff_0x_x___dwSize_0x_x_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
mov edx, dword [0x62ed80]
add esp, 0x24
xor edi, edi
mov dword [esp + 0x14], edx
lea eax, [esp + 0x90]
mov dword [esp + 0x2a0], edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x94]
push ebx
push ecx
lea edx, [esp + 0x20]
push str._sopl__lu__lu.tmp
push edx
call fcn.005a91ab
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
push str.SaveLib_temp__s_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
push esi
push str.SaveLib_Trans
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
test esi, esi
je 0x4156c4
mov eax, 0x76b981db
mov ecx, dword [esp + 0x2b4]
mul ebp
mov ebp, edx
mov edx, dword [esp + 0x2b0]
push edi
push ecx
push edx
push 0x228
lea ecx, [esp + 0x28]
shr ebp, 8
call fcn.0043cde0
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a8], 1
call fcn.0043cf50
test eax, eax
je 0x4156b3
push ebp
push esi
lea ecx, [esp + 0x20]
call fcn.0043e6c0
lea ecx, [esp + 0x18]
call fcn.0043d9d0
mov edi, 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2a0], 0
call fcn.0043ced0
mov ecx, dword [0x62ed80]
mov dword [esp + 0x10], ecx
push ebx
mov byte [esp + 0x2a4], 2
call fcn.00411040
add esp, 4
test eax, eax
jne 0x41570e
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], al
call fcn.005ac543
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.005ac543
xor eax, eax
jmp 0x4157fb
mov edx, dword [0x64c318]
push eax
push edx
lea eax, [esp + 0x18]
push 0x622a00
push eax
call fcn.005a91ab
mov ecx, dword [esp + 0x20]
add esp, 0x10
push edi
push ecx
push str.SaveLib_dst__s___ret_:__d_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x18
test edi, edi
jne 0x415771
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415762
mov esi, 1
jmp 0x4157ba
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
jmp 0x4157ba
mov eax, dword [0x64c32c]
mov ecx, dword [esp + 0x10]
neg eax
sbb eax, eax
mov edx, dword [esp + 0x14]
and eax, 2
add eax, 3
mov edi, eax
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x10]
push edi
push eax
push ecx
push esi
push str.SaveLib_ret__lu__strTempFile__s__strFileTarget__s__dwFlags__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x20
push esi
push str.SaveLib_ret__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a0], 0
call fcn.005ac543
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a0], 0xffffffff
call fcn.005ac543
mov eax, esi
mov ecx, dword [esp + 0x298]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x294
ret