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

Disassembly:
push 0xffffffffffffffff
push 0x5a189c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x228
mov eax, dword [esp + 0x23c]
mov ecx, dword [esp + 0x238]
push ebx
mov ebx, dword [esp + 0x24c]
push ebp
push esi
mov esi, dword [esp + 0x24c]
push edi
mov edi, dword [esp + 0x254]
push ebx
push edi
push esi
push eax
push ecx
push str.SaveLib3_dwType_0x_x__dwStoreFlag_0x_x__lpBuff_0x_x__dwSize_0x_x__bNeedEnc__lu_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
mov edx, dword [0x603f10]
add esp, 0x24
xor ebp, ebp
mov dword [esp + 0x14], edx
lea eax, [esp + 0x30]
mov dword [esp + 0x240], ebp
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x248]
push eax
lea edx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x20]
push str._sopl__lu__lu.tmp
push eax
call fcn.00584d3d
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
push str.SaveLib3_temp__s_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.005888e5
test esi, esi
mov byte [esp + 0x240], 1
je 0x40fd4c
test edi, edi
jbe 0x40fd4c
mov edx, dword [esp + 0x14]
push ebp
push 0x3001
push edx
lea ecx, [esp + 0x28]
call fcn.00588a97
test eax, eax
je 0x40fd4c
mov eax, dword [esp + 0x1c]
push 2
push ebp
lea ecx, [esp + 0x24]
call dword [eax + 0x28]
push edi
push esi
lea ecx, [esp + 0x24]
call fcn.00588bee
push edi
push esi
push ebp
call fcn.00477180
add esp, 0xc
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x40fd0c
lea ecx, [esp + 0x18]
call fcn.00477240
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 2
push ecx
push edi
push esi
call fcn.0043d110
add esp, 0xc
test eax, eax
je 0x40fcfb
lea ecx, [esp + 0x18]
call fcn.00477410
cmp eax, edi
jne 0x40fcfb
mov edx, dword [esp + 0x1c]
push ebp
push ebp
lea ecx, [esp + 0x24]
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
call fcn.00477410
push eax
lea ecx, [esp + 0x1c]
call fcn.00477b30
push eax
lea ecx, [esp + 0x24]
call fcn.00588bee
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.00477370
mov eax, dword [esp + 0x1c]
push 2
push 0
lea ecx, [esp + 0x24]
call dword [eax + 0x28]
lea ecx, [esp + 0x24c]
push 4
push ecx
lea ecx, [esp + 0x24]
call fcn.00588bee
lea edx, [esp + 0x2c]
push 4
push edx
lea ecx, [esp + 0x24]
call fcn.00588bee
lea ecx, [esp + 0x1c]
mov ebp, 1
call fcn.00588cb2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 0
call fcn.005889da
mov eax, dword [0x603f10]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x248]
mov byte [esp + 0x240], 3
push ecx
call fcn.0040f670
add esp, 4
test eax, eax
jne 0x40fdad
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], al
call fcn.005880d5
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.005880d5
xor eax, eax
jmp 0x40fe71
mov edx, dword [0x620c14]
push eax
push edx
lea eax, [esp + 0x18]
push 0x5f8c58
push eax
call fcn.00584d3d
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebp
push ecx
push str.SaveLib3_dst__s__ret_:__d_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x18
test ebp, ebp
jne 0x40fe0e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40fe01
mov esi, 1
jmp 0x40fe30
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40fe2e
mov eax, dword [0x620c28]
mov ecx, dword [esp + 0x10]
neg eax
mov edx, dword [esp + 0x14]
sbb eax, eax
and eax, 2
add eax, 3
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
push esi
push str.SaveLib3_ret__lu_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call fcn.005880d5
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.005880d5
mov eax, esi
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x234
ret