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

Disassembly:
push 0xffffffffffffffff
push 0x5d55b1
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 0x667744
call fcn.00447b00
mov edx, dword [0x641250]
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.005b86eb
mov eax, dword [esp + 0x38]
add esp, 0x14
push eax
push str.SaveLib4_temp__s_
push str.CheckModule
push 0xf
push 0x667744
call fcn.00447b00
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.005bc293
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.005bc445
test eax, eax
je 0x41206e
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 1
call fcn.005bc73f
cmp eax, 0x28
ja 0x411f15
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.00453b6c
push eax
lea edx, [esp + 0x64]
push 0x6390a0
push edx
call fcn.00453b89
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.005bc713
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.005bc59c
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.005bc562
cmp eax, 0x28
jne 0x41205f
mov ecx, dword [esp + 0x2a0]
mov eax, dword [esp + 0x4c]
cmp eax, ecx
jne 0x41205f
mov edi, dword [esp + 0x2a4]
cmp edi, ebx
je 0x411fa1
cmp esi, ebx
jbe 0x411fa1
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.005bc59c
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.005bc59c
lea ecx, [esp + 0x14]
call fcn.005bc73f
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.005bc562
mov esi, dword [esp + 0x50]
lea ecx, [esi + 0x28]
cmp ecx, edi
jne 0x41205f
cmp esi, ebx
jbe 0x412032
push esi
call fcn.005bc14c
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x41205f
push ebx
push 0x28
lea ecx, [esp + 0x1c]
call fcn.005bc5e7
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.005bc562
cmp eax, esi
jne 0x41204c
push esi
push ebp
push ebx
call fcn.0047ec10
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.005bc59c
lea ecx, [esp + 0x14]
call fcn.005bc660
mov eax, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
cmp ebp, ebx
je 0x412059
push ebp
call fcn.005bc175
add esp, 4
cmp dword [esp + 0x30], ebx
je 0x412068
lea ecx, [esp + 0x14]
call fcn.005bc660
cmp dword [esp + 0x2c], ebx
jne 0x412072
mov dword [esp + 0x28], ebx
mov ecx, dword [0x641250]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x29c]
mov byte [esp + 0x294], 2
push edx
call fcn.00411560
add esp, 4
cmp eax, ebx
jne 0x4120d4
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.005bba83
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.005bc388
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0xffffffff
call fcn.005bba83
xor eax, eax
jmp 0x4121ab
push eax
mov eax, dword [0x65f058]
push eax
lea ecx, [esp + 0x18]
push 0x634a00
push ecx
call fcn.005b86eb
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 0x667744
call fcn.00447b00
add esp, 0x18
cmp esi, ebx
jne 0x412138
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41212b
mov esi, 1
jmp 0x41215a
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x412158
mov eax, dword [0x65f06c]
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 0x667744
call fcn.00447b00
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x294], 1
call fcn.005bba83
lea ecx, [esp + 0x14]
mov byte [esp + 0x294], bl
call fcn.005bc388
lea ecx, [esp + 0x24]
mov dword [esp + 0x294], 0xffffffff
call fcn.005bba83
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