Function at 0x404060
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41de38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x11], 0
call fcn.00419bc8
mov eax, dword [0x42ad0c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 0xdc]
mov byte [ebp - 4], 2
mov eax, dword [ecx + 0x14]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00415644
push 1
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00414182
lea edx, [ebp - 0x20]
push 1
push edx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00414400
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax]
push ecx
push eax
call fcn.00406d57
add esp, 8
lea ecx, [ebp - 0x20]
test eax, eax
setne bl
call fcn.00415507
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00415507
test bl, bl
je 0x404108
push 0x5c
lea ecx, [ebp - 0x1c]
call fcn.004158be
push str.Setup.ini
lea ecx, [ebp - 0x1c]
call fcn.00415897
lea ecx, [ebp - 0x48]
call fcn.00405f64
mov edx, dword [ebp - 0x1c]
mov bl, 4
push 0
push edx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00406027
test eax, eax
mov eax, dword [edi + 0xdc]
je 0x404254
mov eax, dword [eax + 0x24]
lea ecx, [ebp - 0x18]
push eax
call fcn.00415575
push str.Setup.ini
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00415897
mov ecx, dword [ebp - 0x18]
push 0
push ecx
lea ecx, [ebp - 0x48]
call fcn.00406027
test eax, eax
je 0x404192
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x404188
and al, 0xfe
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40421e
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [edi + 0xd8]
call fcn.004042e0
test al, al
je 0x40421e
mov ecx, dword [edi + 0xd8]
mov edx, dword [ecx]
call dword [edx + 4]
test al, al
je 0x4041ce
mov byte [ebp - 0x11], 1
jmp 0x4041f7
call fcn.00418566
test eax, eax
je 0x4041e0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x4041e2
xor eax, eax
push 0x232d
add edi, 0xc0
push eax
push edi
call fcn.00401050
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x404212
mov ecx, dword [ebp - 0x18]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x404247
call fcn.00418566
test eax, eax
je 0x404230
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x404232
xor eax, eax
push 0x232d
add edi, 0xc0
push eax
push edi
call fcn.00401050
add esp, 0xc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00415507
jmp 0x40428b
mov esi, dword [eax + 0x14]
call fcn.00418566
test eax, eax
je 0x404269
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x40426b
xor eax, eax
push 0x4298e8
push esi
push str.Setup.ini
push 0x232e
add edi, 0xc0
push eax
push edi
call fcn.00401050
add esp, 0x18
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00405fa1
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00415507
mov dword [ebp - 4], 0xffffffff
call fcn.00419c06
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret