Function at 0x140019240
Capabilities:
Get common file path
Print debug messages

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, 0x12d0
call fcn.140023a50
sub rsp, rax
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1400ae088]
xor rax, rsp
mov qword [rsp + 0x12c0], rax
mov rbx, rcx
xor edx, edx
mov r8d, 0x1000
lea rcx, [rsp + 0x2c0]
call fcn.140026290
lea rdi, [rsp + 0x12f8]
mov qword [rsp + 0x70], rdi
call fcn.140005c70
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 + 0x2c0]
call fcn.140049e64
cmp qword [0x1400af1f8], 0
je 0x1400194fa
lea rcx, [0x1400af1f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0xb0]
call fcn.140026290
lea rax, [rsp + 0xb0]
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, str.Realtek
mov edx, 0x105
lea rcx, [rsp + 0xb0]
call fcn.14004a4fc
xor r8d, r8d
lea rdx, [rsp + 0xb0]
xor ecx, ecx
call qword [sym.imp.api_ms_win_shell_shdirectory_l1_1_0.dll_Ordinal_290]
lea r8, str.BTDevManager_sub.log
mov edx, 0x105
lea rcx, [rsp + 0xb0]
call fcn.14004a4fc
nop
lea rcx, [rsp + 0x78]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
lea rdx, [0x1400902bc]
xor ecx, ecx
call fcn.14005e3a0
lea rdx, [0x1400902c0]
lea rcx, [rsp + 0xb0]
call fcn.14005dd48
mov rdi, rax
test rax, rax
jne 0x14001941d
call fcn.1400030f0
mov rcx, rax
test rax, rax
je 0x140019515
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 + 0xb0]
lea rdx, str._tfopen__s__GetLastError0x_x
lea rcx, [rsp + 0x60]
call fcn.140005e90
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringW]
lea rcx, [0x1400af1f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop
lea rdx, [rbx - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140019418
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
jmp 0x1400194fa
lea rcx, [rsp + 0x88]
call fcn.1400187e0
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x140019437
mov r8, qword [rax]
movzx eax, word [rsp + 0x86]
movzx ecx, word [rsp + 0x84]
movzx edx, word [rsp + 0x82]
movzx r10d, word [rsp + 0x80]
movzx r11d, word [rsp + 0x78]
movzx ebx, word [rsp + 0x7e]
movzx r9d, word [rsp + 0x7a]
lea rsi, [rsp + 0x2c0]
mov qword [rsp + 0x50], rsi
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, rdi
call fcn.140019740
mov rdx, qword [rsp + 0xa0]
cmp rdx, 8
jb 0x1400194e3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400194de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140019520
call fcn.1400230c4
mov rcx, rdi
call fcn.14005dea8
nop
lea rcx, [0x1400af1f8]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
nop
mov rcx, qword [rsp + 0x12c0]
xor rcx, rsp
call fcn.140023950
add rsp, 0x12d0
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80004005
call fcn.140002850
int3
call fcn.1400319e4
int3