Function at 0x140006110
Capabilities:
Check if file exists
Copy file
Create directory
Enumerate files on windows
Get common file path
Get file attributes
Set file attributes

Disassembly:
push rbp
push rbx
lea rbp, [rsp - 0xf08]
mov eax, 0x1008
call fcn.14005a020
sub rsp, rax
mov rax, qword [0x140092690]
xor rax, rsp
mov qword [rbp + 0xef0], rax
mov rbx, rcx
mov dword [rsp + 0x30], Ordinal_266
lea rcx, [rbp + 0x2b0]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
jne 0x140006164
mov eax, 8
jmp 0x1400066c5
xor edx, edx
mov qword [rsp + 0x1028], rsi
mov r8d, Ordinal_265
lea rcx, [rbp + 0x3c0]
call sub.VCRUNTIME140.dll_memset
mov r8d, Ordinal_265
lea rdx, [rbp + 0x3c0]
mov rcx, rbx
call fcn.140006740
mov r9d, Ordinal_265
lea r8, [rbp + 0x2b0]
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1504]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [0x140065290]
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1504]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + reloc.mfc140.dll_Ordinal_1504]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400061fa
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400061f0
call fcn.140025dc0
mov eax, 8
jmp 0x1400066bd
mov qword [rsp + 0x1000], r14
lea r14, [0x140000000]
mov qword [rsp + 0x1030], rdi
lea rdx, [0x140065298]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14000665f
lea rdx, [0x140065c90]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14000665f
test byte [rsp + 0x40], 0x10
je 0x14000665f
mov r9d, Ordinal_265
lea r8, [rbp + 0x2b0]
lea rcx, [rbp + 0x90]
lea edx, [r9 + 1]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, [rsp + 0x6c]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
xor edx, edx
lea rcx, [rbx + 0x120]
mov r8d, Ordinal_265
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x6c]
mov edx, 0x104
lea rcx, [rbx + 0x120]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
lea rdx, [rbp + 0x3c0]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400062df
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
or r9, 0xffffffffffffffff
lea r8, [rbp + 0x90]
mov edx, 0x104
lea rcx, [rbp + 0x1a0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
or r9, 0xffffffffffffffff
lea r8, [rbp + 0x90]
mov edx, 0x104
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
lea rdx, str.Intel
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000634d
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.Wireless
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x140006381
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rdx, str.Settings
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x1400063d4
xor edx, edx
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
or eax, 2
lea rcx, [rbp + 0x90]
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea rdx, [0x140065318]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov rcx, qword [rbx + 8]
test eax, eax
je 0x140006440
test rcx, rcx
je 0x1400064a7
lea rax, [rbp + 0x90]
or r8, 0xffffffffffffffff
lea r9, str._tUsing_the_EXISTING_individual_setting_file__s
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
mov rcx, qword [rbx + 8]
lea rdx, [rbp + 0x6f0]
call fcn.140025be0
jmp 0x1400064a7
test rcx, rcx
je 0x14000647d
lea rax, [rbp + 0x90]
or r8, 0xffffffffffffffff
lea r9, str._tUsing_the_MASTER_TEMPLATE_individual_setting_file__s
mov qword [rsp + 0x20], rax
mov edx, 0x800
lea rcx, [rbp + 0x6f0]
call fcn.140008c50
mov rcx, qword [rbx + 8]
lea rdx, [rbp + 0x6f0]
call fcn.140025be0
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x1400064a7
lea rcx, [rbx + 0x1c]
xor r8d, r8d
lea rdx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
lea rcx, [rbx + 0x328]
or r9, 0xffffffffffffffff
lea r8, [rbp + 0x90]
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
mov eax, dword [rbx + 0x18]
dec eax
cmp eax, 8
ja case.0x1400064df.4
cdqe
mov ecx, dword [r14 + rax*4 + 0x66e0]
add rcx, r14
jmp rcx
mov rcx, rbx
call fcn.1400060e0
jmp case.0x1400064df.4
lea rdx, str.IntelWirelessSettings.sav
lea rcx, [rbp + 0x4d0]
call qword [sym.imp.SHLWAPI.dll_PathAppendA]
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
mov r9, qword [rbx]
mov rcx, rbx
test eax, eax
jne 0x140006539
lea edx, [rax + 2]
call qword [r9 + 0x18]
lea rdx, [rbp + 0x4d0]
mov rcx, rbx
call fcn.1400080e0
jmp case.0x1400064df.4
lea r8, [rbp + 0x1a0]
mov edx, 1
call qword [r9 + 0x20]
lea rdx, [rbp + 0x4d0]
mov rcx, rbx
call fcn.1400080e0
jmp case.0x1400064df.4
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
mov r9, qword [rbx]
mov rcx, rbx
test eax, eax
jne 0x140006585
lea edx, [rax + 3]
call qword [r9 + 0x18]
jmp case.0x1400064df.4
lea r8, [rbp + 0x1a0]
xor edx, edx
call qword [r9 + 0x20]
jmp case.0x1400064df.4
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
jne case.0x1400064df.4
mov rax, qword [rbx]
mov edx, 5
mov rcx, rbx
call qword [rax + 0x18]
jmp case.0x1400064df.4
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
jne 0x1400065e5
mov rax, qword [rbx]
mov edx, 6
mov rcx, rbx
call qword [rax + 0x18]
mov eax, dword [0x140065f48]
lea rdx, [0x140065468]
movsd xmm0, qword [str.HideTrayIcon]
lea rcx, [rsp + 0x6c]
mov dword [rbp + 0x88], eax
movzx eax, byte [0x140065f4c]
mov byte [rbp + 0x8c], al
movsd qword [rbp + 0x80], xmm0
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je case.0x1400064df.4
lea r8, [rbp + 0x90]
mov rcx, rbx
lea rdx, [rbp + 0x80]
call fcn.140008a40
lea rdx, [0x140065468]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x14000665f
lea rdx, [rbp + 0x1a0]
mov rcx, rbx
call fcn.140006b90
lea rdx, [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x140006211
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rbx + 0x18]
mov r14, qword [rsp + 0x1000]
mov rdi, qword [rsp + 0x1030]
sub ecx, 2
je 0x14000669f
cmp ecx, 1
jne 0x1400066ad
xor edx, edx
jmp 0x1400066a4
mov edx, 1
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, rbx
call fcn.1400032d0
mov rcx, rbx
call fcn.140004e80
mov rsi, qword [rsp + 0x1028]
mov rcx, qword [rbp + 0xef0]
xor rcx, rsp
call fcn.140059ef0
add rsp, 0x1008
pop rbx
pop rbp
ret