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

Disassembly:
push 0xffffffffffffffff
push 0x5d1d51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28c
mov eax, dword [esp + 0x2a8]
mov ecx, dword [esp + 0x2a4]
push ebx
mov ebx, dword [esp + 0x2a0]
push ebp
push esi
mov esi, dword [esp + 0x2bc]
push edi
mov edi, dword [esp + 0x2c4]
push edi
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 0x663464
call fcn.00447850
mov edx, dword [0x63d178]
add esp, 0x24
xor ebp, ebp
mov dword [esp + 0x14], edx
lea eax, [esp + 0x94]
mov dword [esp + 0x2a4], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x98]
push ebx
push ecx
lea edx, [esp + 0x20]
push str._sopl__lu__lu.tmp
push edx
call fcn.005b496b
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
push str.SaveLib_temp__s_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
mov ecx, dword [esp + 0x2c0]
push edi
push esi
call fcn.00416360
mov esi, eax
push esi
push str.SaveLib_Trans
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
test esi, esi
je 0x416210
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x416197
mov eax, 0xaaaaaaab
mul edi
shr edx, 3
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2b8]
mov eax, dword [esp + 0x2b4]
push 0
push edx
push eax
push 0xc
lea ecx, [esp + 0x2c]
call fcn.0043e6a0
mov ecx, dword [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x2ac], 1
call fcn.0043e810
test eax, eax
je 0x4161ed
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push edx
push esi
call fcn.0043ff80
lea ecx, [esp + 0x1c]
call fcn.0043f290
mov ebp, 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a4], 0
call fcn.0043e790
cmp esi, dword [esp + 0x2c0]
je 0x416210
push esi
call fcn.005b83f5
add esp, 4
mov eax, dword [0x63d178]
mov dword [esp + 0x10], eax
push ebx
mov byte [esp + 0x2a8], 2
call fcn.00411560
add esp, 4
test eax, eax
jne 0x416259
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a4], al
call fcn.005b7d03
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.005b7d03
xor eax, eax
jmp 0x416346
mov ecx, dword [0x65ad78]
push eax
push ecx
lea edx, [esp + 0x18]
push 0x630a00
push edx
call fcn.005b496b
mov eax, dword [esp + 0x20]
add esp, 0x10
push ebp
push eax
push str.SaveLib_dst__s___ret_:__d_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x18
test ebp, ebp
jne 0x4162bc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4162ad
mov esi, 1
jmp 0x416305
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
jmp 0x416305
mov eax, dword [0x65ad8c]
mov ecx, dword [esp + 0x14]
neg eax
sbb eax, eax
and eax, 2
add eax, 3
mov edi, eax
mov eax, dword [esp + 0x10]
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
push edi
push edx
push eax
push esi
push str.SaveLib_ret__lu__strTempFile__s__strFileTarget__s__dwFlags__lu_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x20
push esi
push str.SaveLib_ret__lu_
push str.CheckModule
push 0xf
push 0x663464
call fcn.00447850
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a4], 0
call fcn.005b7d03
lea ecx, [esp + 0x14]
mov dword [esp + 0x2a4], 0xffffffff
call fcn.005b7d03
mov eax, esi
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x298
ret