Function at 0x408e90
Capabilities:
Check if file exists
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x46ef71
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x483390]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x483390]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push str.CRsWork::ExportSetupLog
push 0x473ab0
push 0x80
mov esi, ecx
call fcn.00431310
add esp, 0xc
call fcn.004086f0
mov eax, dword [esi + 0xa4]
sub eax, 0x10
call fcn.00403350
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x138], 0
mov eax, dword [0x4863c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x4863c4
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
push ebx
push str._s_setup.exe.log
lea edi, [esp + 0x24]
mov byte [esp + 0x140], 1
call fcn.004035e0
push 0x103
lea eax, [esp + 0x31]
push 0
push eax
mov byte [esp + 0x38], 0
call fcn.00446e10
add esp, 0x14
mov eax, 0x104
lea ecx, [esp + 0x24]
call fcn.00406570
mov ebp, dword [esp + 0x1c]
test eax, eax
je 0x40909f
mov edx, dword [0x4863c4]
mov eax, dword [edx + 0xc]
mov ecx, 0x4863c4
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x24]
push ecx
push str._s_setup.exe.log
lea edi, [esp + 0x20]
mov byte [esp + 0x140], 2
call fcn.004035e0
mov esi, dword [esp + 0x20]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
add esp, 8
push esi
call edi
test eax, eax
jne 0x408fb6
mov ecx, esi
call fcn.00406780
push ebp
call edi
test eax, eax
je 0x40907b
push 0
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x409060
push esi
push ebp
push str.Success_CopyFile__s______s
push 0x80
call fcn.00431310
lea eax, [esi - 0x10]
add esp, 0x10
mov byte [esp + 0x138], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40900b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x138], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40902f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x138], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409056
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x4090e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push ebp
push str.Failed_CopyFile__s______s_lastError_d
push 0x80
call fcn.00431310
add esp, 0x14
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x138], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40909f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x138], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x138], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.004426a0
add esp, 0x128
ret