Function at 0x42e6d0
Capabilities:
Copy file
Get common file path

Disassembly:
sub rsp, 0x2f8
mov qword [rsp + 0x2f0], rbx
mov qword [rsp + 0x2e8], rbp
mov qword [rsp + 0x2e0], rsi
mov qword [rsp + 0x2d8], rdi
mov rbx, rdx
mov rbp, rcx
mov qword [rsp + 0x70], 0xfffffffffffffffe
call fcn.004545a0
test eax, eax
je 0x42e786
xor r8d, r8d
lea rdx, str.CINIFile::InstallMiscINIFiles_n
lea rcx, [rsp + 0xc0]
call fcn.00486850
movabs rdx, 0x203a5952544e45
mov qword [rsp + 0x1d0], rdx
lea rdi, [rsp + 0x1d0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xc0]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x42e755
call fcn.004546e0
mov rcx, rax
call fcn.004545b0
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x1d0]
call fcn.004548a0
mov dword [rsp + 0x34], 0
mov rdx, qword [rbx + 8]
mov rcx, rbp
call fcn.0044a470
mov rax, qword [rbx + 0x28]
cmp dword [rax - 8], 0
je 0x42e9b5
call fcn.004545a0
test eax, eax
je 0x42e7de
mov r8, qword [rbx + 0x28]
lea rdx, str.DeviceINIInstallData__csHomolFileName___s
lea rcx, [rsp + 0xc0]
call fcn.00486850
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0xc0]
call fcn.004548a0
mov eax, dword [rbx + 0x30]
test eax, eax
jne 0x42e81d
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8, [rsp + 0x34]
mov rdx, qword [rbx + 0x28]
mov rcx, rbp
call fcn.00451d20
mov r8d, 1
mov rdx, qword [rbx + 0x28]
lea rcx, [rsp + 0x30]
call fcn.004230e0
jmp 0x42e9b5
cmp eax, 1
jne 0x42e9b5
mov rax, qword [0x004dfd00]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rax
mov edx, 0x104
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dl, 0x5c
lea rcx, [rbx + 0x28]
call fcn.00499914
inc eax
mov r8d, eax
lea rdx, [rsp + 0x50]
lea rcx, [rbx + 0x28]
call fcn.00499e24
nop
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x50]
call fcn.0049b1dc
lea rdx, [0x004a9dfc]
lea rcx, [rsp + 0x68]
call fcn.0049b290
mov rdi, rax
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x60]
call fcn.0049b290
nop
mov r8, rdi
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.0049b804
nop
lea r8, [rsp + 0x38]
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.0049b804
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.0049b31c
nop
lea rcx, [rsp + 0x50]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x58]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x60]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x68]
call fcn.0049b1dc
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov r8d, 1
mov rdx, qword [rbx + 8]
lea rcx, [rsp + 0x80]
call fcn.0041de60
nop
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 3
lea r8, str.COPY_CTY
lea rdx, str.Region
lea rcx, [rsp + 0x80]
call fcn.0041c7e0
mov r9, qword [rsp + 0x38]
mov eax, dword [r9 - 8]
mov dword [rsp + 0x20], eax
mov r8d, 1
lea rdx, str.CtyFileName
lea rcx, [rsp + 0x80]
call fcn.0041c700
nop
lea rcx, [rsp + 0x80]
call fcn.0041d010
nop
lea rcx, [rsp + 0x48]
call fcn.0049b1dc
nop
lea rcx, [rsp + 0x38]
call fcn.0049b1dc
mov rdx, qword [rbx + 0x50]
cmp dword [rdx - 8], 0
je 0x42e9ee
mov dword [rsp + 0x20], 1
mov r9d, 1
lea r8, [rsp + 0x34]
mov rcx, rbp
call fcn.00451d20
mov r8d, 1
mov rdx, qword [rbx + 0x50]
lea rcx, [rsp + 0x30]
call fcn.004230e0
call fcn.004545a0
test eax, eax
je 0x42ea7a
mov r8d, dword [rsp + 0x34]
lea rdx, str.CINIFile::InstallMiscINIFiles_:_bRebootRequired___d_n
lea rcx, [rsp + 0xc0]
call fcn.00486850
movabs rdx, 0x20203a54495845
mov qword [rsp + 0x1d0], rdx
lea rdi, [rsp + 0x1d0]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xc0]
xor ecx, ecx
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x42ea43
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x1d0]
call fcn.004548a0
call fcn.004546e0
mov rcx, rax
call fcn.004545c0
mov eax, dword [rsp + 0x34]
jmp 0x42ea7e
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x2f0]
mov rbp, qword [rsp + 0x2e8]
mov rsi, qword [rsp + 0x2e0]
mov rdi, qword [rsp + 0x2d8]
add rsp, 0x2f8
ret