Function at 0x402910
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x42b47b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x437ae4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x437ae4]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x244]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, ecx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
lea ebp, [edi + 8]
push eax
call ebx
mov ecx, ebp
call fcn.00401500
mov eax, dword [edi + 4]
lea esi, [edi + 4]
push eax
call ebx
mov ecx, esi
call fcn.00401500
mov ecx, edi
call fcn.00401500
cmp byte [esp + 0x240], 0
je 0x402b83
push 0x103
lea ecx, [esp + 0x129]
push 0
push ecx
mov byte [esp + 0x130], 0
call fcn.004178b0
add esp, 0xc
lea edx, [esp + 0x124]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4029e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CInstallParamNSU2::Create_:_GetTempPath_failed.__ld__GetLastError___
push 2
call fcn.00401920
add esp, 0xc
mov eax, esi
jmp 0x402b85
push 0x103
lea eax, [esp + 0x21]
push 0
push eax
mov byte [esp + 0x28], 0
call fcn.004178b0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x430708
lea edx, [esp + 0x130]
push edx
call ebx
test eax, eax
jne 0x402a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CInstallParamNSU2::Create_:_GetTempFileName_Result_File__failed.__ld__GetLastError___
push 2
call fcn.00401920
add esp, 0xc
mov eax, esi
jmp 0x402b85
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.004013f0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x430708
lea edx, [esp + 0x130]
push edx
call ebx
test eax, eax
jne 0x402a85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.CInstallParamNSU2::Create_:_GetTempFileName_Respons_File__failed.__ld__GetLastError___
push 2
call fcn.00401920
add esp, 0xc
mov eax, esi
jmp 0x402b85
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.004013f0
lea ecx, [esp + 0x14]
call fcn.004020e0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x238], 0
mov edx, dword [ecx]
push str.Disk1_setup.iss
push edx
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.00402110
mov eax, dword [esi]
mov ebx, dword [esp + 0x24]
add esp, 0x10
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x402b03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
mov edi, eax
push edi
push ecx
push ebx
push str.CInstallParamNSU2::Create_:_CopyFile__s___s__false__failed.__ld__GetLastError___
push 2
call fcn.00401920
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00401570
mov eax, edi
jmp 0x402b85
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
mov eax, dword [esi]
and ebx, 0xfffffffe
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x402b48
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov edi, eax
push edi
push ebx
push edx
push str.CInstallParamNSU2::Create_:_SetFileAttributes__s___ld__failed.__ld__GetLastError___
push 2
call fcn.00401920
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00401570
mov eax, edi
jmp 0x402b85
mov ecx, esi
call fcn.00402bb0
mov ebx, eax
test ebx, ebx
je 0x402b62
lea ecx, [esp + 0x14]
call fcn.00401570
mov eax, ebx
jmp 0x402b85
mov eax, dword [ebp]
mov edx, dword [esi]
push eax
mov ecx, eax
push ecx
push edx
push str.__s__f1__s___f2__s___C_s
push edi
call fcn.00402110
add esp, 0x14
lea ecx, [esp + 0x14]
call fcn.00401570
xor eax, eax
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.0041579e
add esp, 0x228
ret 8