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

Disassembly:
push 0xffffffffffffffff
push 0x5c6001
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x27c
mov eax, dword [esp + 0x294]
mov ecx, dword [esp + 0x290]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2a4]
push edi
mov edi, dword [esp + 0x29c]
push esi
push eax
push ecx
push edi
push str.SaveLib4_dwType_0x_x__dwStoreFlag_0x_x__lpBuff_0x_x__dwSize_0x_x_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
mov edx, dword [0x62ed80]
xor ebx, ebx
add esp, 0x20
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x84]
mov dword [esp + 0x294], ebx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea ecx, [esp + 0x88]
push edi
push ecx
lea edx, [esp + 0x30]
push str._sopl__lu__lu.tmp
push edx
call fcn.005a91ab
mov eax, dword [esp + 0x38]
add esp, 0x14
push eax
push str.SaveLib4_temp__s_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
mov dword [esp + 0x34], ebx
call fcn.005acd53
mov ecx, dword [esp + 0x24]
push ebx
push 0x10c2
push ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x2a0], 1
xor ebp, ebp
mov dword [esp + 0x38], ebx
call fcn.005acf05
test eax, eax
je 0x411b4e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.005ad1ff
cmp eax, 0x28
ja 0x4119f5
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x5e]
mov word [esp + 0x5c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push str.LIB_HEAD
mov dword [esp + 0x60], ebx
call fcn.00451ffc
push eax
lea edx, [esp + 0x64]
push 0x626ef0
push edx
call fcn.00452019
mov eax, dword [esp + 0x2b0]
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x74], eax
push ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
call fcn.005ad1d3
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x1c]
call dword [edx + 0x28]
lea eax, [esp + 0x5c]
push 0x28
push eax
lea ecx, [esp + 0x1c]
call fcn.005ad05c
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x1c]
call dword [edx + 0x28]
lea eax, [esp + 0x34]
push 0x28
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], ebx
call fcn.005ad022
cmp eax, 0x28
jne 0x411b3f
mov ecx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jne 0x411b3f
mov edi, dword [esp + 0x2a4]
cmp edi, ebx
je 0x411a81
cmp esi, ebx
jbe 0x411a81
mov edx, dword [esp + 0x14]
push 2
push ebx
lea ecx, [esp + 0x1c]
call dword [edx + 0x28]
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.005ad05c
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x14]
add edi, esi
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], edi
call dword [eax + 0x28]
lea ecx, [esp + 0x34]
push 0x28
push ecx
lea ecx, [esp + 0x1c]
call fcn.005ad05c
lea ecx, [esp + 0x14]
call fcn.005ad1ff
mov edx, dword [esp + 0x14]
push ebx
push ebx
lea ecx, [esp + 0x1c]
mov edi, eax
call dword [edx + 0x28]
lea eax, [esp + 0x34]
push 0x28
push eax
lea ecx, [esp + 0x1c]
call fcn.005ad022
mov esi, dword [esp + 0x50]
lea ecx, [esi + 0x28]
cmp ecx, edi
jne 0x411b3f
cmp esi, ebx
jbe 0x411b12
push esi
call fcn.005acc0c
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x411b3f
push ebx
push 0x28
lea ecx, [esp + 0x1c]
call fcn.005ad0a7
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.005ad022
cmp eax, esi
jne 0x411b2c
push esi
push ebp
push ebx
call fcn.0047d0a0
mov edx, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x54], eax
push ebx
push ebx
call dword [edx + 0x28]
lea eax, [esp + 0x34]
push 0x28
push eax
lea ecx, [esp + 0x1c]
call fcn.005ad05c
lea ecx, [esp + 0x14]
call fcn.005ad120
mov eax, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebp, ebx
je 0x411b39
push ebp
call fcn.005acc35
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x411b48
lea ecx, [esp + 0x14]
call fcn.005ad120
cmp dword [esp + 0x2c], ebx
jne 0x411b52
mov dword [esp + 0x28], ebx
mov ecx, dword [0x62ed80]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x29c]
mov byte [esp + 0x294], 2
push edx
call fcn.00411040
add esp, 4
cmp eax, ebx
jne 0x411bb4
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.005ac543
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.005ace48
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0xffffffff
call fcn.005ac543
xor eax, eax
jmp 0x411c8b
push eax
mov eax, dword [0x64c318]
push eax
lea ecx, [esp + 0x18]
push 0x622a00
push ecx
call fcn.005a91ab
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
add esp, 0x10
push esi
push edx
push str.SaveLib4_dst__s__ret_:__d_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x18
cmp esi, ebx
jne 0x411c18
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x411c0b
mov esi, 1
jmp 0x411c3a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x411c38
mov eax, dword [0x64c32c]
mov edx, dword [esp + 0x10]
neg eax
sbb eax, eax
and eax, 2
add eax, 3
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
push esi
push str.SaveLib4_ret__lu_
push str.CheckModule
push 0xf
push 0x654a04
call fcn.00445f90
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.005ac543
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.005ace48
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0xffffffff
call fcn.005ac543
mov eax, esi
mov ecx, dword [esp + 0x28c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x288
ret