Function at 0x1400a5b30
Capabilities:
Copy file
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x13b0]
mov eax, 0x14b0
call fcn.1401e33b0
sub rsp, rax
mov rax, qword [0x1402a76c0]
xor rax, rsp
mov qword [rbp + 0x13a0], rax
mov rsi, rdx
lea rdx, str.OperateTempFolder::CopyIniFileFromMediaToTemp
lea rcx, [rsp + 0x30]
call fcn.14001abe0
nop
lea r14, [0x1402a8360]
lea rbx, [0x1402bbdb0]
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x1400a5c00
test byte [rcx + 0x1c], 1
je 0x1400a5bc8
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x21
lea r8, [0x14025a4c8]
mov rcx, qword [rcx + 0x10]
call fcn.140001ad0
mov rcx, qword [0x1402a8360]
cmp rcx, r14
je 0x1400a5c00
test byte [rcx + 0x1c], 1
je 0x1400a5c00
mov r9, rbx
cmp qword [0x1402bbdc8], 8
cmovae r9, qword [0x1402bbdb0]
mov edx, 0x22
mov qword [rsp + 0x20], rsi
lea r8, [0x14025a4c8]
mov rcx, qword [rcx + 0x10]
call fcn.140006c90
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x3a0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0xba0]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.1401e7e40
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1401e7e40
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0x3a0]
lea rdx, str.SOURCEDIR
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0x39e], 0x5c
je 0x1400a5cb1
lea rdx, [0x140251df8]
lea rcx, [rbp + 0x3a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov rcx, qword [0x1402bbf50]
mov rax, qword [rcx]
mov rax, qword [rax + 0x48]
call qword [case.0x1400136d6.0]
mov r9, rax
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
lea r8, [rbp + 0xba0]
lea rdx, str.TEMPPATH
mov rcx, r9
call qword [case.0x1400136d6.0]
lea rcx, [rbp + 0xba0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd rcx, eax
cmp word [rbp + rcx*2 + 0xb9e], 0x5c
je 0x1400a5d15
lea rdx, [0x140251df8]
lea rcx, [rbp + 0xba0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r9, str.InsDrv.ini
lea r8, [rbp + 0x3a0]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.InsDrv.ini
lea r8, [rbp + 0xba0]
lea rdx, [0x1402528f8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov edi, 0x80010026
test eax, eax
jne 0x1400a5dc6
mov rcx, qword [0x1402bbf68]
mov rax, qword [rcx]
lea r8, str.InsDrv.ini
mov edx, 0x19
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov dword [0x1402bbd98], 0x26
mov byte [rsp + 0x38], 1
mov rax, qword [0x1402a8360]
cmp rax, r14
je 0x1400a5f4b
test byte [rax + 0x1c], 1
je 0x1400a5f4b
mov edx, 0x23
jmp 0x1400a5f1d
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea r9, str.Envini.INI
lea r8, [rbp + 0x3a0]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.Envini.INI
lea r8, [rbp + 0xba0]
lea rdx, [0x1402528f8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400a5e8e
mov rcx, qword [0x1402bbf68]
mov rax, qword [rcx]
lea r8, str.Envini.INI
mov edx, 0x19
mov rax, qword [rax + 0x18]
call qword [case.0x1400136d6.0]
mov dword [0x1402bbd98], 0x26
mov byte [rsp + 0x38], 1
mov rax, qword [0x1402a8360]
cmp rax, r14
je 0x1400a5f4b
test byte [rax + 0x1c], 1
je 0x1400a5f4b
mov edx, 0x24
jmp 0x1400a5f1d
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea r9, str.SptPrf4USB.dat
lea r8, [rbp + 0x3a0]
lea rdx, [0x1402528f8]
lea rcx, [rbp + 0x190]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, str.SptPrf4USB.dat
lea r8, [rbp + 0xba0]
lea rdx, [0x1402528f8]
lea rcx, [rbp - 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, 0x20
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov byte [rsp + 0x38], 1
xor edi, edi
mov rax, qword [0x1402a8360]
cmp rax, r14
je 0x1400a5f4b
test byte [rax + 0x1c], 1
je 0x1400a5f4b
lea edx, [rdi + 0x25]
mov r9, rbx
cmp qword [0x1402bbdc8], 8
mov dword [rsp + 0x20], edi
cmovae r9, qword [0x1402bbdb0]
lea r8, [0x14025a4c8]
mov rcx, qword [rax + 0x10]
call fcn.140001b40
mov rax, qword [0x1402a8360]
lea rcx, vtable.WppTrace.0
mov qword [rsp + 0x30], rcx
cmp byte [rsp + 0x38], 0
jne 0x1400a5fa7
cmp rax, r14
je 0x1400a5fa7
test byte [rax + 0x1c], 1
je 0x1400a5fa7
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 8
cmovae rcx, qword [rsp + 0x40]
cmp qword [0x1402bbdc8], 8
cmovae rbx, qword [0x1402bbdb0]
mov edx, 0xa
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea r8, [0x140252818]
mov rcx, qword [rax + 0x10]
call fcn.140006c90
lea rcx, [rsp + 0x60]
call fcn.1400048a0
lea rcx, [rsp + 0x40]
call fcn.1400048a0
mov eax, edi
mov rcx, qword [rbp + 0x13a0]
xor rcx, rsp
call fcn.1401e2900
lea r11, [rsp + 0x14b0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret