Function at 0x14007bcf0
Capabilities:
Check if file exists
Copy file
Read .ini file

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x19d0]
mov eax, 0x1ad0
call fcn.14024c240
sub rsp, rax
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rsp + 0x1b10], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x19c0], rax
mov r15, r8
mov rbx, rdx
xor r8d, r8d
lea rdx, str.CBaseFuncSub::FS_ReadyPnPGraphicResource
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
mov r9, rbx
lea r8, str.szIniEntryName___s
mov edx, 1
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov rcx, r15
call fcn.140005cd0
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0x11c0]
lea rdx, str.TEMPPATH
mov rcx, rax
call qword [rdi + 0x18]
lea rcx, [rbp + 0x11c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x11be], 0x5c
je 0x14007bdc9
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x11c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x11c0]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, str.InsDrv.ini
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x3a0]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x7b0]
lea r8, [0x1402dc4e0]
mov rdx, rbx
lea rcx, str.Installer_Info
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
lea r9, [rbp + 0x11c0]
lea r8, str._t_t_tInfo::szTempDir::__s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [rbp + 0x3a0]
lea r8, str._t_t_tInfo::szINIPath::__s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [rbp + 0x7b0]
lea r8, str._t_t_tInfo::szINIInfo::__s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
test edi, edi
je 0x14007c4c7
mov rcx, qword [0x1403b9750]
mov rax, qword [rcx]
call qword [rax + 0x48]
mov rdi, qword [rax]
lea r8, [rbp + 0x9c0]
lea rdx, str.SOURCEDIR
mov rcx, rax
call qword [rdi + 0x18]
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x9be], 0x5c
je 0x14007bed7
lea rdx, [0x1402e5094]
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x7b0]
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x9c0]
lea r8, str._t_t_tszSrcResourcePath::__s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x14007bf4e
lea r8, str._t_t_tGetStatus::File_Not_Found_
lea edx, [rax + 7]
lea rcx, [rsp + 0x50]
call fcn.140007780
or rsi, 0xffffffffffffffff
mov r9d, esi
lea r8, str.return___08x
lea edx, [rsi + 3]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
jmp 0x14007c4f9
mov qword [rsp + 0x40], pe_nt_image_headers64
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], pe_nt_image_headers64
lea rax, [rbp + 0x5b0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x9c0]
call fcn.140247424
call fcn.140102a14
mov rdx, rax
mov ecx, r13d
test rax, rax
setne cl
test ecx, ecx
jne 0x14007bfae
mov ecx, 0x80004005
call fcn.140005210
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
lea rcx, [rbp - 0x70]
lea rax, [rbp - 0x70]
or rsi, 0xffffffffffffffff
test rax, 0xffffffffffff0000
jne 0x14007c001
movzx edi, cx
mov ecx, edi
call fcn.1401027e8
test rax, rax
je 0x14007c0f3
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x60]
call fcn.140005b00
mov rbx, qword [rsp + 0x60]
jmp 0x14007c0f3
xor eax, eax
mov rcx, rsi
lea rdi, [rbp - 0x70]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
test ecx, ecx
jne 0x14007c076
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x14007c0f3
cmp dword [rdx + 0x10], eax
jge 0x14007c04c
cmp dword [rbx - 0xc], eax
jge 0x14007c03f
mov ecx, 0x80070057
call fcn.140005210
int3
mov dword [rbx - 0x10], r13d
mov word [rbx], r13w
jmp 0x14007c0f3
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c062
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x60], rbx
jmp 0x14007c0f3
mov r14d, dword [rbx - 0x10]
lea r12, [rbp - 0x70]
sub r12, rbx
sar r12, 1
test ecx, ecx
jns 0x14007c093
mov ecx, 0x80070057
call fcn.140005210
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x14007c0b5
mov edx, edi
lea rcx, [rsp + 0x60]
call fcn.140005e40
mov rbx, qword [rsp + 0x60]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r12, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x14007c0d9
lea r8, [rbx + r12*2]
call fcn.1402457b4
jmp 0x14007c0e2
lea r8, [rbp - 0x70]
call fcn.1402471ac
cmp edi, dword [rbx - 0xc]
jg 0x14007c4bc
mov dword [rbx - 0x10], edi
mov word [r14 + rbx], r13w
lea r9, [rbp - 0x70]
lea r8, str._t_t_t_splitpath::ext_s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rdx, str..av_
mov rcx, rbx
call fcn.140247088
test eax, eax
jne 0x14007c129
lea rdx, str..avi
jmp 0x14007c143
lea rdx, str..bm_
mov rcx, rbx
call fcn.140247088
test eax, eax
jne 0x14007c158
lea rdx, str..bmp
mov r8d, 4
lea rcx, [rsp + 0x60]
call fcn.140005d50
mov rbx, qword [rsp + 0x60]
mov r8, rbx
mov edx, pe_nt_image_headers64
lea rcx, [rbp + 0x5b0]
call fcn.140246470
lea r9, [rbp + 0x5b0]
lea r8, str._t_t_t_splitpath::fname_s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rdx, str..avi
mov rcx, rbx
call fcn.140247088
test eax, eax
jne 0x14007c1b2
lea r8, str._t_t_tFileType__avi
lea edx, [rax + 7]
lea rcx, [rsp + 0x50]
call fcn.140007780
jmp 0x14007c1e5
lea rdx, str..bmp
mov rcx, rbx
call fcn.140247088
mov edx, 7
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x14007c479
lea r8, str._t_t_tFileType__bmp
call fcn.140007780
mov r13d, 1
lea rdx, [rbp + 0x11c0]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0x5b0]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, [rbp + 0x190]
lea r8, str._t_t_tInfo::szTrgResourcePath::__s_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x7c]
lea rdx, [rsp + 0x70]
lea rcx, [rbp + 0x9c0]
call qword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoW]
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x14007c433
mov r9, qword [rsp + 0x70]
lea r8, str._t_t_tSetupGetFileCompressionInfo::ActualSourceFile:_s
lea edx, [rax + 7]
call fcn.140007780
mov edx, dword [rsp + 0x68]
test edx, edx
jne 0x14007c2ea
lea r8d, [rdx + 1]
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
lea rcx, [rsp + 0x50]
test eax, eax
je 0x14007c2a4
lea r8, str._t_t_tCopyFile_Success_
jmp 0x14007c36f
lea rdx, str._t_t_tCopyFile__
call fcn.140029dc0
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c2e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007c4f9
cmp edx, 1
je 0x14007c344
cmp edx, 2
je 0x14007c344
lea r8, str._t_t_tUnSupport_Format_
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c33f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007c4f9
lea r8, [rsp + 0x68]
lea rdx, [rbp + 0x190]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileW]
lea rcx, [rsp + 0x50]
test eax, eax
jne 0x14007c3ed
lea r8, str._t_t_tSetupDecompressOrCopyFile_Success_
mov edx, 7
call fcn.140007780
lea r8, [rbp + 0x190]
lea rdx, [0x1402f6114]
mov rcx, r15
call fcn.14000de40
mov r9, qword [r15]
lea r8, str._t_t_tCstrDecompressPath::_s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
mov r9d, r13d
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14007c3db
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, r13d
jmp 0x14007c505
lea rdx, str._t_t_tSetupDecompressOrCopyFile__
call fcn.140029dc0
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c42e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007c4f9
lea rdx, str._t_t_tSetupGetFileCompressionInfo__
call fcn.140029dc0
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c474
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007c4f9
lea r8, str._t_t_tFileType__not_support_
call fcn.140007780
mov r9d, esi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x14007c4ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
jmp 0x14007c4f9
mov ecx, 0x80070057
call fcn.140005210
nop
lea r8, str._t_t_tGetPrivateProfileString::NoEntry_in_INSDRV.ini
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
or rsi, 0xffffffffffffffff
mov r9d, esi
lea r8, str.return___08x
lea edx, [rsi + 3]
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, esi
mov rcx, qword [rbp + 0x19c0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x1b10]
add rsp, 0x1ad0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret