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

Disassembly:
push 0xffffffffffffffff
push 0x5c5fcc
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 0x654a04
call fcn.00445f90
mov edx, dword [0x62ed80]
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.005a91ab
mov ecx, dword [esp + 0x28]
add esp, 0x14
push ecx
push str.SaveLib3_temp__s_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x1c]
call fcn.005acd53
test esi, esi
mov byte [esp + 0x240], 1
je 0x41171c
test edi, edi
jbe 0x41171c
mov edx, dword [esp + 0x14]
push ebp
push 0x3001
push edx
lea ecx, [esp + 0x28]
call fcn.005acf05
test eax, eax
je 0x41171c
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.005ad05c
push edi
push esi
push ebp
call fcn.0047d0a0
add esp, 0xc
mov dword [esp + 0x2c], eax
test ebx, ebx
je 0x4116dc
lea ecx, [esp + 0x18]
call fcn.0047d160
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 2
push ecx
push edi
push esi
call fcn.00443080
add esp, 0xc
test eax, eax
je 0x4116cb
lea ecx, [esp + 0x18]
call fcn.0047d330
cmp eax, edi
jne 0x4116cb
mov edx, dword [esp + 0x1c]
push ebp
push ebp
lea ecx, [esp + 0x24]
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
call fcn.0047d330
push eax
lea ecx, [esp + 0x1c]
call fcn.0047da50
push eax
lea ecx, [esp + 0x24]
call fcn.005ad05c
lea ecx, [esp + 0x18]
mov byte [esp + 0x240], 1
call fcn.0047d290
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.005ad05c
lea edx, [esp + 0x2c]
push 4
push edx
lea ecx, [esp + 0x24]
call fcn.005ad05c
lea ecx, [esp + 0x1c]
mov ebp, 1
call fcn.005ad120
lea ecx, [esp + 0x1c]
mov byte [esp + 0x240], 0
call fcn.005ace48
mov eax, dword [0x62ed80]
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x248]
mov byte [esp + 0x240], 3
push ecx
call fcn.00411040
add esp, 4
test eax, eax
jne 0x41177d
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], al
call fcn.005ac543
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.005ac543
xor eax, eax
jmp 0x411841
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 ebp
push ecx
push str.SaveLib3_dst__s__ret_:__d_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x18
test ebp, ebp
jne 0x4117de
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4117d1
mov esi, 1
jmp 0x411800
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4117fe
mov eax, dword [0x64c32c]
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 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x240], 0
call fcn.005ac543
lea ecx, [esp + 0x14]
mov dword [esp + 0x240], 0xffffffff
call fcn.005ac543
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