Function at 0x140011770
Capabilities:
Get common file path
Print debug messages
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x14e0
call fcn.14001c270
sub rsp, rax
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x14008f088]
xor rax, rsp
mov qword [rsp + 0x14d0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x4d0]
call fcn.14001ead0
lea rdi, [rsp + 0x1508]
mov qword [rsp + 0x88], rdi
call fcn.140005ee0
mov rcx, qword [rax]
or rcx, 1
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8d, 0xfff
lea rdx, [rsp + 0x4d0]
call fcn.1400426a4
cmp qword [0x1400901f8], 0
je 0x140011bbb
lea rcx, [0x1400901f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xc0]
call fcn.14001ead0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetServicesRtkBtFilterParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140011a1e
mov dword [rsp + 0x6c], 1
mov dword [rsp + 0x68], 0x200
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x2d0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.LogPath
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1400119ba
call fcn.140002de0
mov rcx, rax
test rax, rax
je 0x140011bd6
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0x2d0]
lea rdx, str.data:__s__GetLastError0x_x
lea rcx, [rsp + 0x60]
call fcn.140006100
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea r8, [rsp + 0x2d0]
mov edx, 0x100
lea rcx, [rsp + 0xc0]
call fcn.1400431ec
lea r8, [0x140070b78]
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.140042d3c
xor r8d, r8d
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
lea r8, str.BTDevManager.log
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.140042d3c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0xc0]
lea rdx, str.pLogFile:__s__GetLastError0x_x
lea rcx, [rsp + 0x60]
call fcn.140006100
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140011a23
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140011a23
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x23]
xor ecx, ecx
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetFolderPathW]
lea r8, [0x140070b78]
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.140042d3c
xor r8d, r8d
lea rdx, [rsp + 0xc0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
lea r8, str.BTDevManager.log
mov edx, 0x105
lea rcx, [rsp + 0xc0]
call fcn.140042d3c
mov edi, 0xffffffff
lea rcx, [rsp + 0x90]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
lea rdx, [0x140073d50]
xor ecx, ecx
call fcn.1400448c0
lea rdx, [0x140073d54]
lea rcx, [rsp + 0xc0]
call fcn.140044228
mov rsi, rax
test rax, rax
jne 0x140011ad5
call fcn.140002de0
mov rcx, rax
test rax, rax
je 0x140011be1
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov r9d, eax
lea r8, [rsp + 0xc0]
lea rdx, [0x140073d58]
lea rcx, [rsp + 0x78]
call fcn.140006100
mov rbx, qword [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea rcx, [0x1400901f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140011ad0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x140011bbb
lea rcx, [rsp + 0xa0]
call fcn.140011000
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x140011aef
mov r8, qword [rax]
movzx eax, word [rsp + 0x9e]
movzx ecx, word [rsp + 0x9c]
movzx edx, word [rsp + 0x9a]
movzx r10d, word [rsp + 0x98]
movzx r11d, word [rsp + 0x90]
movzx ebx, word [rsp + 0x96]
movzx r9d, word [rsp + 0x92]
lea rdi, [rsp + 0x4d0]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ebx
lea rdx, str.__s___02d__02d__04d___02d:_02d:_02d:_02d_n_____s_n_n
mov rcx, rsi
call fcn.140012100
mov rdx, qword [rsp + 0xb8]
cmp rdx, 8
jb 0x140011ba4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140011b9f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140011bec
call fcn.14001b8fc
mov rcx, rsi
call fcn.140044388
nop
lea rcx, [0x1400901f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x14d0]
xor rcx, rsp
call fcn.14001c180
add rsp, 0x14e0
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002520
nop
mov ecx, 0x80004005
call fcn.140002520
int3
call fcn.14002a224
int3