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

Disassembly:
push 0xffffffffffffffff
push 0x5b748c
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 0x642404
call fcn.004439a0
mov edx, dword [0x61cab0]
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.0059a7f7
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
push str.SaveLib3_temp__s_
push str.CheckModule
push 0xf
push 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.0059e39f
test esi, esi
mov byte [esp + 0x240], 1
je 0x41079c
test edi, edi
jbe 0x41079c
mov edx, dword [esp + 0x14]
push ebp
push 0x3001
push edx
lea ecx, [esp + 0x28]
call fcn.0059e551
test eax, eax
je 0x41079c
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.0059e6a8
push edi
push esi
push ebp
call fcn.0047aab0
add esp, 0xc
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x41075c
lea ecx, [esp + 0x18]
call fcn.0047ab70
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 2
push ecx
push edi
push esi
call fcn.00440a60
add esp, 0xc
test eax, eax
je 0x41074b
lea ecx, [esp + 0x18]
call fcn.0047ad40
cmp eax, edi
jne 0x41074b
mov edx, dword [esp + 0x1c]
push ebp
push ebp
lea ecx, [esp + 0x24]
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
call fcn.0047ad40
push eax
lea ecx, [esp + 0x1c]
call fcn.0047b460
push eax
lea ecx, [esp + 0x24]
call fcn.0059e6a8
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.0047aca0
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.0059e6a8
lea edx, [esp + 0x2c]
push 4
push edx
lea ecx, [esp + 0x24]
call fcn.0059e6a8
lea ecx, [esp + 0x1c]
mov ebp, 1
call fcn.0059e76c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 0
call fcn.0059e494
mov eax, dword [0x61cab0]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x248]
mov byte [esp + 0x240], 3
push ecx
call fcn.004100c0
add esp, 4
test eax, eax
jne 0x4107fd
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], al
call fcn.0059db8f
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.0059db8f
xor eax, eax
jmp 0x4108c1
mov edx, dword [0x639d18]
push eax
push edx
lea eax, [esp + 0x18]
push 0x610c70
push eax
call fcn.0059a7f7
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 0x642404
call fcn.004439a0
add esp, 0x18
test ebp, ebp
jne 0x41085e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x410851
mov esi, 1
jmp 0x410880
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x41087e
mov eax, dword [0x639d2c]
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 0x642404
call fcn.004439a0
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call fcn.0059db8f
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.0059db8f
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