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

Disassembly:
push 0xffffffffffffffff
push 0x5a1ea1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x294
push ebx
mov ebx, dword [esp + 0x2b4]
push ebp
mov ebp, dword [esp + 0x2b0]
push esi
mov esi, dword [esp + 0x2b8]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push ebx
push esi
push ecx
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x2c4]
mov dword [esp + 0x2c], ecx
push eax
push str.SaveLib2_dwType_0x_x__dwRecordSize_0x_x___dwStoreFlag_0x_x__lpBuff_0x_x___dwSize_0x_x_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
mov ecx, dword [0x603f10]
add esp, 0x24
xor edi, edi
mov dword [esp + 0x14], ecx
lea edx, [esp + 0x9c]
mov dword [esp + 0x2ac], edi
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
mov eax, dword [esp + 0x2b8]
lea ecx, [esp + 0xa0]
push eax
push ecx
lea edx, [esp + 0x20]
push str._sopl__lu__lu.tmp
push edx
call fcn.00584d3d
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
push str.SaveLib2_temp__s_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
mov eax, dword [ebp + 8]
add esp, 0x14
cmp ebx, eax
ja 0x4157e5
push eax
call fcn.0058879e
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4157e5
mov ecx, ebx
mov dword [eax], edi
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x20]
mov dword [eax], ebx
mov esi, dword [ebp + 4]
mov ebp, dword [ebp]
push esi
push ecx
push edx
lea ecx, [esp + 0x34]
call fcn.00436e70
push str.SaveLib2_Open
push str.CheckModule
push 0xf
push 0x6292fc
mov byte [esp + 0x2bc], 1
call fcn.00440080
mov eax, dword [esp + 0x24]
add esp, 0x10
lea ecx, [esp + 0x24]
push 0
push eax
call fcn.00436fe0
mov edi, eax
test edi, edi
je 0x4157c7
push str.SaveLib2_WriteExtraHead
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x10
lea ecx, [esp + 0x24]
push esi
push ebp
call fcn.00438210
mov edi, eax
test edi, edi
je 0x4157be
push str.SaveLib2_Append
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
mov ecx, dword [esp + 0x28]
add esp, 0x10
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.00438750
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.004389e0
lea ecx, [esp + 0x24]
call fcn.00437a60
mov edx, dword [esp + 0x18]
push edx
call fcn.005887c7
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x2ac], 0
call fcn.00436f60
mov eax, dword [0x603f10]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x2b4]
mov byte [esp + 0x2ac], 2
push ecx
call fcn.0040f670
add esp, 4
test eax, eax
jne 0x415835
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ac], al
call fcn.005880d5
lea ecx, [esp + 0x14]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.005880d5
xor eax, eax
jmp 0x4158f8
mov edx, dword [0x620c14]
push eax
push edx
lea eax, [esp + 0x18]
push str._s_tsafedoc_s
push eax
call fcn.00584d3d
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ecx
push str.SaveLib2_dst__s_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
test edi, edi
jne 0x415895
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x415888
mov esi, 1
jmp 0x4158b7
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4158b5
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.SaveLib2_ret__lu_
push str.CheckModule
push 0xf
push 0x6292fc
call fcn.00440080
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x2ac], 0
call fcn.005880d5
lea ecx, [esp + 0x14]
mov dword [esp + 0x2ac], 0xffffffff
call fcn.005880d5
mov eax, esi
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a0
ret