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

Disassembly:
sub esp, 0x540
mov eax, dword [str._q_]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x54c]
push ebp
mov dword [esp + 0x544], eax
mov eax, dword [esp + 0x554]
push esi
or ebp, 0xffffffff
test eax, eax
push edi
mov edi, dword [esp + 0x554]
mov esi, ecx
je 0x40b10a
test ebx, ebx
je 0x40b10a
push eax
call fcn.00408f60
push edi
mov ecx, esi
mov dword [esp + 0x14], eax
call fcn.00408f60
mov edi, dword [esp + 0x10]
test edi, edi
mov dword [esp + 0x14], eax
je 0x40b0d5
test eax, eax
je 0x40b0d5
push edi
call fcn.00402c00
add esp, 4
test eax, eax
jne 0x40ad62
mov eax, dword [esi]
push edi
push str.Could_not_access_or_create_folder___s_.
push eax
call fcn.00404120
push edi
call fcn.0040f5cf
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0040f5cf
add esp, 0x14
or eax, 0xffffffff
jmp 0x40b10c
mov eax, dword [esp + 0x560]
xor ebp, ebp
test eax, eax
jne 0x40ad71
mov eax, ebx
push eax
push edi
lea edx, [esp + 0x40]
push str._s_s
push edx
call fcn.0040f6f9
mov eax, dword [esp + 0x24]
push ebx
push eax
lea ecx, [esp + 0x154]
push str._s_s
push ecx
call fcn.0040f6f9
mov ecx, dword [esi]
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x160]
push eax
push str.InstallFile
push str._s:_Source__s__Destination__s_
push ecx
call fcn.00404120
mov eax, dword [0x4224e8]
add esp, 0x34
push 0x104
lea edx, [esp + 0x244]
push edx
push 0x7a
push eax
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x34c]
push eax
call fcn.0040f6f9
mov eax, dword [0x4225c0]
add esp, 0xc
test eax, eax
je 0x40ae06
mov eax, dword [0x4225d4]
test eax, eax
je 0x40ae23
mov eax, dword [0x4224f4]
test eax, eax
je 0x40ae23
lea ecx, [esp + 0x344]
push ecx
push 0x3e9
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
lea edx, [esp + 0x13c]
push edx
call fcn.0040dd50
add esp, 4
test eax, eax
je 0x40b0b9
mov bl, byte [esp + 0x564]
test bl, 8
jne 0x40afc0
lea eax, [esp + 0x38]
push eax
call fcn.0040dd50
add esp, 4
test eax, eax
je 0x40afd5
test bl, 4
jne 0x40af47
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x40]
push eax
xor ebx, ebx
xor edi, edi
call fcn.0040dc60
add esp, 0xc
test eax, eax
jne 0x40aeba
mov eax, dword [esp + 0x18]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x28]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esi]
push str.InstallFile
push str._s:___Destination_version__d._d._d._d.
push eax
mov ebx, 1
call fcn.00404120
add esp, 0x1c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x144]
push eax
call fcn.0040dc60
add esp, 0xc
test eax, eax
jne 0x40af0a
mov eax, dword [esp + 0x1c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [esp + 0x2c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
mov eax, dword [esi]
push str.InstallFile
push str._s:___Source_version__d._d._d._d.
push eax
mov edi, 1
call fcn.00404120
add esp, 0x1c
test ebx, ebx
je 0x40af61
test edi, edi
je 0x40af65
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
ja 0x40afa8
jne 0x40af2e
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x18]
ja 0x40afa8
mov eax, dword [esi]
push str.InstallFile
push str._s:___Destination_is_up_to_date.
push eax
call fcn.00404120
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ecx, dword [esi]
push str.InstallFile
push str._s:___File_is_not_copied.
push ecx
call fcn.00404120
add esp, 0xc
jmp 0x40b0ec
test edi, edi
jne 0x40afa8
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00401060
add esp, 8
test eax, eax
jne 0x40af2e
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x140]
push edx
call fcn.00401060
add esp, 8
test eax, eax
jne 0x40af2e
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jge 0x40af2e
mov edx, dword [esi]
push str.InstallFile
push str._s:___Source_is_newer.
push edx
call fcn.00404120
mov edi, dword [esp + 0x1c]
jmp 0x40afd2
mov ecx, dword [esi]
push str.InstallFile
push str._s:___Force_copying...
push ecx
call fcn.00404120
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x144]
push eax
call ebx
test eax, eax
jne 0x40b08d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ecx, dword [esi]
push str.InstallFile:___Couldnt_copy_file.
push eax
call fcn.004041b0
mov ecx, dword [esi]
push str.InstallFile:___Try_to_reset_file_attribute.
push ecx
call fcn.00404120
add esp, 8
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b03c
test al, 1
je 0x40b03c
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x144]
push edx
call ebx
test eax, eax
jne 0x40b089
call edi
mov ecx, dword [esi]
push str.InstallFile:___Couldnt_copy_file.
push eax
call fcn.004041b0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x140]
push ecx
mov ecx, esi
call fcn.0040a670
mov ebp, eax
test ebp, ebp
jne 0x40b0a6
mov edx, dword [esi]
mov edi, dword [esp + 0x10]
mov dword [edx + 0x5c], 1
jmp 0x40b08f
mov edi, dword [esp + 0x10]
xor ebp, ebp
mov eax, dword [esi]
push str.InstallFile
push str._s:___File_is_copied.
push eax
call fcn.00404120
add esp, 0xc
jmp 0x40b0ec
mov ecx, dword [esi]
push str.InstallFile:___Failed_to_copy_file.
push ebp
call fcn.004041b0
mov edi, dword [esp + 0x10]
jmp 0x40b0ec
mov edx, dword [esi]
push str.InstallFile
push str._s:___Source_file_is_missing_
push edx
call fcn.00404120
add esp, 0xc
mov ebp, 2
jmp 0x40b0ec
mov eax, dword [esi]
push 0xffffffffffffffff
push str.InstallFile
push str._s:___Failed_to_resolve_the_path.
push eax
call fcn.00404120
add esp, 0x10
test edi, edi
je 0x40b0f9
push edi
call fcn.0040f5cf
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40b10a
push eax
call fcn.0040f5cf
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x54c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040f175
add esp, 0x540
ret 0x14