Function at 0x4069b0
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
sub esp, 0xc18
push ebx
push ebp
mov ebp, dword [esp + 0xc24]
push esi
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x10]
mov byte [esp + 0xf], 1
push edi
mov edi, edi
mov edi, dword [esp + 0xc30]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4069f2
test al, 1
je 0x4069f2
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc38]
test ecx, ecx
jne 0x406a12
push ecx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
jmp 0x406a89
mov eax, dword [esp + 0xc3c]
mov edx, dword [eax + 0x10]
mov dword [edx], 0
mov dl, byte [esp + 0x13]
test dl, dl
je 0x406a68
mov edx, dword [esp + 0xc34]
push 0
push edx
push eax
push ecx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x78
jne 0x406a89
push 0
mov byte [esp + 0x17], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [esp + 0xc38]
mov eax, dword [esp + 0xc3c]
mov edx, dword [esp + 0xc34]
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x24]
push edi
push ebp
call fcn.00406820
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
jne 0x406b5f
cmp ebx, 0x4d3
je 0x406b5d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
push 0x400
lea eax, [esp + 0x82c]
push eax
push 0x30
push edi
call fcn.00402100
push ebp
lea ecx, [esp + 0x83c]
push ecx
lea edx, [esp + 0x440]
push edx
call fcn.00408f1d
add esp, 0x1c
push 2
push 0x424db2
lea eax, [esp + 0x430]
push eax
push esi
call dword [0x42fc7c]
mov esi, eax
cmp esi, 3
jne 0x406b39
push 0x400
lea ecx, [esp + 0x42c]
push ecx
push 0x2e
push edi
xor esi, esi
call fcn.00402100
add esp, 0x10
push 0x24
push 0x424db2
lea edx, [esp + 0x430]
push edx
push esi
call dword [0x42fc7c]
cmp eax, 6
jne 0x4069d0
mov eax, dword [esp + 0xc34]
mov dword [eax], 1
jmp 0x406b56
cmp esi, 5
je 0x406b51
cmp esi, 4
je 0x4069d0
test esi, esi
je 0x4069d0
jmp 0x406b56
mov esi, 1
mov edi, dword [esp + 0xc30]
test esi, esi
lea edx, [esp + 0x18]
setne bl
mov eax, edi
sub edx, edi
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406b70
lea eax, [esp + 0x18]
xor esi, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406b83
sub eax, edx
test eax, eax
jle 0x406bbd
movsx ecx, byte [esp + esi + 0x18]
push ecx
call fcn.0040aff4
mov byte [esp + esi + 0x1c], al
lea eax, [esp + 0x1c]
add esp, 4
inc esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406bb0
sub eax, edx
cmp esi, eax
jl 0x406b90
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x328]
push eax
mov ecx, esi
call fcn.004060d0
lea ecx, [esp + 0x324]
push ecx
lea edx, [esp + 0x120]
push edx
mov ecx, esi
call fcn.00406080
mov edi, 0x4259ac
lea esi, [esp + 0x11c]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x406c31
mov edi, 0x4259a8
lea esi, [esp + 0x11c]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x406c31
mov edi, 0x4259a4
lea esi, [esp + 0x11c]
mov ecx, 4
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x406ca5
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x224]
push str.__s_
push edx
call fcn.00408f1d
mov esi, dword [esp + 0x20]
push 0
lea eax, [esp + 0x230]
push eax
push 0x425134
push esi
push esi
push 0
call fcn.0040af14
mov al, byte [esi + 0x104]
add esp, 0x24
test al, al
je 0x406ca5
lea ecx, [esp + 0x220]
push ecx
push esi
lea edx, [esp + 0x830]
push str.exec:__s__s__s
push edx
call fcn.00408f1d
add esp, 0x10
push 0
push str.DLL_Compile_Date
lea eax, [esp + 0x830]
push eax
push 0
call fcn.00401bd0
mov esi, dword [esp + 0xc30]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
je 0x406cc8
test al, 1
je 0x406cc8
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc18
ret 0x14