Function at 0x140038400
Capabilities:
Check for time delay via gettickcount
Inspect section memory permissions
Resolve function by parsing pe exports

Disassembly:
test rdx, rdx
je 0x14003a0a6
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x980]
sub rsp, 0xa80
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x970], rax
mov rdi, rdx
mov qword [rsp + 0x58], rdx
mov r14, rcx
mov qword [rsp + 0x50], rcx
xor esi, esi
test r8b, r8b
jne 0x1400387bd
movzx eax, byte [rdx + 0x50]
cmp al, 1
jne 0x140038570
cmp qword [rdx + 0x118], rsi
je 0x14003848d
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___Close_BT_rfcomm_client_module_because_BTService_is_OFF._n
call fcn.140095ab0
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x140038486
call fcn.14002f890
mov qword [rdi + 0x118], rsi
cmp qword [rdi + 0x128], rsi
je 0x1400384ca
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___remove_WifiDirect_TCP_connection_because_BTService_is_OFF._n
call fcn.140095ab0
mov rbx, qword [rdi + 0x128]
test rbx, rbx
je 0x1400384c3
mov rcx, rbx
call fcn.1400951f0
mov edx, 0x88
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x128], rsi
cmp qword [rdi + 0x140], rsi
je 0x140038675
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___remove_Wifi_Hotspot_TCP_connection_because_BTService_is_OFF._n
call fcn.140095ab0
mov rbx, qword [rdi + 0x140]
test rbx, rbx
je 0x140038504
mov rcx, rbx
call fcn.1400951f0
mov edx, 0x88
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x140], rsi
lea r8, str.GlobalASUS_ASLDRSrv_Link_To_MyASUS_Status_Event
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140038675
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea r8, str.GlobalASUS_ASLDRSrv_Link_To_MyASUS_Status_Change_Event
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x140038675
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x140038675
cmp al, 2
jne 0x140038675
cmp qword [rdx + 0x118], rsi
je 0x1400385a5
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___Close_BT_rfcomm_client_module_because_BTService_is_OFF._n
call fcn.140095ab0
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14003859e
call fcn.14002f890
mov qword [rdi + 0x118], rsi
cmp qword [rdi + 0x1a8], rsi
je 0x140038601
lea r8, [rdi + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x1400385bf
mov r8, qword [r8]
lea rdx, [rdi + 0x78]
cmp qword [rdx + 0x18], 8
jb 0x1400385cd
mov rdx, qword [rdx]
lea rcx, str._AsusSync_CommDev__DeviceBTServiceHandler___to_remove_Apple_Notificaton_Manager._n
call fcn.140095ab0
mov rbx, qword [rdi + 0x1a8]
test rbx, rbx
je 0x1400385fa
mov rcx, rbx
call fcn.14000c430
mov edx, 0x600
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x1a8], rsi
cmp qword [rdi + 0x1b0], rsi
je 0x14003865d
lea r8, [rdi + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x14003861b
mov r8, qword [r8]
lea rdx, [rdi + 0x78]
cmp qword [rdx + 0x18], 8
jb 0x140038629
mov rdx, qword [rdx]
lea rcx, str._AsusSync_CommDev__DeviceBTServiceHandler___to_remove_Gatt_Service_Manager._n
call fcn.140095ab0
mov rbx, qword [rdi + 0x1b0]
test rbx, rbx
je 0x140038656
mov rcx, rbx
call fcn.14005adc0
mov edx, 0x400
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x1b0], rsi
lea rax, [rdi + 0xc8]
mov qword [rax + 0x10], rsi
cmp qword [rax + 0x18], 8
jb 0x140038672
mov rax, qword [rax]
mov word [rax], si
cmp qword [rdi + 0xf0], rsi
je 0x1400386b2
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___remove_Phone_because_BTService_is_OFF._n
call fcn.140095ab0
mov rbx, qword [rdi + 0xf0]
test rbx, rbx
je 0x1400386ab
mov rcx, rbx
call fcn.14008d1c0
mov edx, 0x110
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0xf0], rsi
cmp qword [rdi + 0xe8], rsi
je 0x140038716
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___remove_AirFone_because_BTService_is_OFF._n
call fcn.140095ab0
mov rbx, qword [rdi + 0xe8]
test rbx, rbx
je 0x140038709
cmp byte [rbx + 0x86], 0
je 0x1400386e4
mov rcx, rbx
call fcn.1400095f0
mov rcx, qword [rbx + 0x87]
test rcx, rcx
je 0x1400386f5
call fcn.140009310
mov qword [rbx + 0x87], rsi
mov edx, 0x8f
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0xe8], rsi
mov dword [rdi + 0x108], esi
cmp qword [rdi + 0x130], 0
je 0x14003a07d
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___remove_Wifi_Local_Net_TCP_connection_because_BTService_is_OFF._n
call fcn.140095ab0
mov rbx, qword [rdi + 0x130]
test rbx, rbx
je 0x140038751
mov rcx, rbx
call fcn.1400951f0
mov edx, 0x88
mov rcx, rbx
call fcn.1400c2470
mov qword [rdi + 0x130], rsi
lea r8, str.GlobalASUS_ASLDRSrv_Link_To_MyASUS_Status_Event
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14003a07d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
lea r8, str.GlobalASUS_ASLDRSrv_Link_To_MyASUS_Status_Change_Event
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenEventW]
mov rbx, rax
test rax, rax
je 0x14003a07d
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14003a07d
mov rcx, qword [rdx + 0xf0]
mov r13d, 7
test rcx, rcx
je 0x140038824
call fcn.14008d9d0
cmp eax, 8
jl 0x14003881b
cmp byte [rdi + 0x10c], sil
jne 0x1400388a1
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x38], r13
lea r8d, [r13 + 0x1c]
lea rdx, str.asus_support:__AsusSync__navigate0
lea rcx, [rbp + 0x20]
call fcn.140017c00
lea rcx, [rbp + 0x20]
call fcn.140037eb0
mov byte [rdi + 0x10c], 1
jmp 0x1400388a1
mov byte [rdi + 0x10c], sil
jmp 0x1400388a1
cmp byte [rdx + 0xc], sil
je 0x1400388a1
cmp byte [r14 + 0xa0], 1
jne 0x1400388a1
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___renew_Phone_because_BT_radio_is_ON._n
call fcn.140095ab0
mov ecx, 0x110
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x68], rax
xor edx, edx
mov r8d, 0x110
mov rcx, rax
call fcn.1400c5120
lea rdx, [rdi + 0x78]
lea rcx, [rbp + 0x20]
call fcn.140013730
cmp dword [r14 + 0x70], 0x1000c
setae r9b
movzx ecx, byte [r14 + 0x81]
mov byte [rsp + 0x20], cl
mov r8, rax
mov rdx, qword [rdi + 0x98]
mov rcx, rbx
call fcn.14008cc60
nop
mov qword [rdi + 0xf0], rax
mov rcx, qword [rdi + 0xe8]
mov r15, 0xffffffffffffffff
test rcx, rcx
je 0x14003915e
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x140038913
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x140038913
mov rax, r15
nop dword [rax + rax]
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x1400388e0
test rax, rax
je 0x140038913
mov qword [rcx + 0x2d], r15
mov qword [rcx + 0x35], r15
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rcx + 0x20]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rcx + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rcx + 0x60]
movaps xmmword [rbp], xmm1
movsd xmm0, qword [rcx + 0x70]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [rcx + 0x78]
mov dword [rbp + 0x18], eax
movzx eax, byte [rcx + 0x7c]
mov byte [rbp + 0x1c], al
cmp dword [rcx], 0
jne 0x140038b33
movzx eax, byte [rdi + 0x50]
cmp al, 1
jne 0x140038975
cmp qword [rdi + 0x120], 0
jne 0x14003897d
cmp al, 2
jne 0x140038e3e
cmp dword [rdi + 0x108], 0
jne 0x140038e3e
call fcn.14004a070
test al, al
je 0x140038e3e
cmp qword [rdi + 0x88], 0
je 0x140038b14
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], r13
mov word [rbp + 0xc8], si
lea r8, [rdi + 0x78]
lea rax, [rbp + 0xc8]
cmp rax, r8
je 0x1400389ee
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400389de
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0xc8]
call fcn.140017c00
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, str._Hands_Free_HF
lea rcx, [rbp + 0xc8]
call fcn.140027070
mov ecx, 0x90
call fcn.1400c2704
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov rcx, rax
call fcn.1400517b0
mov rbx, rax
test rax, rax
je 0x140038ace
lea rdx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rdx, qword [rbp + 0xc8]
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___disable___s__device__if_any._n
call fcn.140095ab0
lea rdx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rdx, qword [rbp + 0xc8]
mov r8b, 1
mov rcx, rbx
call fcn.1400522f0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038aa2
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038ab1
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140038ac0
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov edx, 0x90
mov rcx, rbx
call fcn.1400c2470
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x140038b14
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038b0f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0ad
call fcn.1400c2470
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___phone_module_is_not_started__start_it._n
call fcn.140095ab0
mov dl, 1
mov rcx, qword [rdi + 0xe8]
call fcn.140009420
jmp 0x140038e32
mov rcx, qword [rdi + 0xe8]
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x140038b93
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x140038b93
mov rax, r15
nop word [rax + rax]
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x140038b60
test rax, rax
je 0x140038b93
mov qword [rcx + 0x2d], r15
mov qword [rcx + 0x35], r15
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rcx + 0x20]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rcx + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rcx + 0x60]
movaps xmmword [rbp], xmm1
movsd xmm0, qword [rcx + 0x70]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [rcx + 0x78]
mov dword [rbp + 0x18], eax
movzx eax, byte [rcx + 0x7c]
mov byte [rbp + 0x1c], al
cmp dword [rcx], 3
jne 0x140038e3e
mov rcx, qword [rdi + 0xe8]
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x140038c43
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x140038c43
mov rax, r15
nop word [rax + rax]
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x140038c10
test rax, rax
je 0x140038c43
mov qword [rcx + 0x2d], r15
mov qword [rcx + 0x35], r15
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rcx + 0x20]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rcx + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rcx + 0x60]
movaps xmmword [rbp], xmm1
movsd xmm0, qword [rcx + 0x70]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [rcx + 0x78]
mov dword [rbp + 0x18], eax
movzx eax, byte [rcx + 0x7c]
mov byte [rbp + 0x1c], al
mov rax, qword [rcx]
shr rax, 0x20
cmp eax, 0xa
jne 0x140038e01
call fcn.14004a070
test al, al
je 0x140038e01
cmp qword [rdi + 0x88], 0
je 0x140038e01
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], r13
mov word [rbp + 0xc8], si
lea r8, [rdi + 0x78]
lea rax, [rbp + 0xc8]
cmp rax, r8
je 0x140038cfe
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140038cee
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rbp + 0xc8]
call fcn.140017c00
mov r8d, reloc.WS2_32.dll_ntohl
lea rdx, str._Hands_Free_HF
lea rcx, [rbp + 0xc8]
call fcn.140027070
mov ecx, 0x90
call fcn.1400c2704
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm0
movups xmmword [rax + 0x70], xmm0
movups xmmword [rax + 0x80], xmm0
mov rcx, rax
call fcn.1400517b0
mov rbx, rax
test rax, rax
je 0x140038dbb
lea rdx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rdx, qword [rbp + 0xc8]
mov r8b, 1
mov rcx, rax
call fcn.1400522f0
mov rcx, qword [rbx]
test rcx, rcx
je 0x140038d8f
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140038d9e
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140038dad
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov edx, 0x90
mov rcx, rbx
call fcn.1400c2470
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x140038e01
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038dfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0b3
call fcn.1400c2470
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [rdi + 0x108]
cmp eax, 0x2710
jbe 0x140038e3e
cmp byte [rdi + 0xd], 0
jne 0x140038e3e
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___phone_module_is_in_disconnect_state__select_target_device_for_it._n
call fcn.140095ab0
mov rcx, qword [rdi + 0xe8]
call fcn.140009770
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rdi + 0x108], eax
mov rcx, qword [rdi + 0xe8]
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x140038ea0
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x140038ea0
mov rax, r15
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x140038e65
test rax, rax
je 0x140038ea0
mov qword [rcx + 0x2d], 0xffffffffffffffff
mov qword [rcx + 0x35], 0xffffffffffffffff
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rcx + 0x20]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rcx + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rcx + 0x60]
movaps xmmword [rbp], xmm1
movsd xmm0, qword [rcx + 0x70]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [rcx + 0x78]
mov dword [rbp + 0x18], eax
movzx eax, byte [rcx + 0x7c]
mov byte [rbp + 0x1c], al
cmp dword [rcx], 8
jl 0x14003900c
cmp byte [rdi + 0x10c], 0
jne 0x140038f3a
mov qword [rbp + 0x320], rsi
mov qword [rbp + 0x330], rsi
mov qword [rbp + 0x338], r13
mov r8d, 0x23
lea rdx, str.asus_support:__AsusSync__navigate0
lea rcx, [rbp + 0x320]
call fcn.140017c00
lea rcx, [rbp + 0x320]
call fcn.140037eb0
mov byte [rdi + 0x10c], 1
cmp byte [rdi + 0x10d], 0
jne 0x140039028
lea rcx, str._AsusSync_CommMgr__LowerDownOtherAppVolume___Start_n
call fcn.140095ab0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x360]
call fcn.1400c46bc
test rax, rax
je 0x140038f96
mov word [rax + 2], si
lea r8, str.AsusLinkWP2P.exe
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.1400d6ec0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x570]
call fcn.1400c5120
lea r9, [rbp + 0x360]
lea r8, str.__s___lowerdownappvolume_start
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.140017d20
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x570]
call fcn.140097090
mov r8d, eax
mov edx, eax
lea rcx, str._AsusSync_CommMgr__LowerDownOtherAppVolume___End__d__0x_08X__n
call fcn.140095ab0
mov byte [rdi + 0x10d], 1
jmp 0x140039028
mov byte [rdi + 0x10c], 0
cmp byte [rdi + 0x10d], 1
jne 0x140039028
call fcn.140038020
mov byte [rdi + 0x10d], 0
cmp byte [rdi + 0x50], 1
jne 0x140039214
cmp byte [rdi + 0x191], 1
jne 0x140039214
cmp byte [rdi + 0x190], 0
jne 0x140039214
mov rcx, qword [rdi + 0xe8]
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x1400390ae
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x1400390ae
mov rax, r15
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x140039073
test rax, rax
je 0x1400390ae
mov qword [rcx + 0x2d], 0xffffffffffffffff
mov qword [rcx + 0x35], 0xffffffffffffffff
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
movups xmm0, xmmword [rcx + 0x10]
movaps xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rcx + 0x20]
movaps xmmword [rbp - 0x40], xmm1
movups xmm0, xmmword [rcx + 0x30]
movaps xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rcx + 0x40]
movaps xmmword [rbp - 0x20], xmm1
movups xmm0, xmmword [rcx + 0x50]
movaps xmmword [rbp - 0x10], xmm0
movups xmm1, xmmword [rcx + 0x60]
movaps xmmword [rbp], xmm1
movsd xmm0, qword [rcx + 0x70]
movsd qword [rbp + 0x10], xmm0
mov eax, dword [rcx + 0x78]
mov dword [rbp + 0x18], eax
movzx eax, byte [rcx + 0x7c]
mov byte [rbp + 0x1c], al
cmp dword [rcx], 7
jne 0x140039214
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ebx, eax
mov edx, dword [0x140169a00]
test edx, edx
je 0x140039133
mov ecx, eax
sub ecx, edx
cmp ecx, 0x1388
jae 0x140039133
cmp ecx, 0x7d0
jb 0x140039214
mov dword [0x140169a00], esi
jmp 0x140039214
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8b, 5
mov dl, 0xa
mov rcx, rdi
call fcn.140031c60
lea rcx, str._AsusSync_CommDev__BTReceivedCallback___ask_to_open_sco_channel_n
call fcn.140095ab0
mov dword [0x140169a00], ebx
jmp 0x140039214
cmp byte [rdi + 0xc], 0
je 0x140039214
cmp byte [r14 + 0xa0], 0
jne 0x140039214
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___renew_AirFone_because_BTService_is_ON._n
call fcn.140095ab0
mov ecx, 0x8f
call fcn.1400c2704
mov rcx, rax
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
movups xmmword [rcx + 0x60], xmm0
movups xmmword [rcx + 0x70], xmm0
mov qword [rcx + 0x80], rax
mov dword [rcx + 0x88], eax
mov word [rcx + 0x8c], ax
mov byte [rcx + 0x8e], al
mov rax, qword [rdi + 0x98]
movups xmmword [rcx + 0x2d], xmm0
movups xmmword [rcx + 0x3d], xmm0
movups xmmword [rcx + 0x4d], xmm0
movups xmmword [rcx + 0x5d], xmm0
movups xmmword [rcx + 0x6d], xmm0
mov qword [rcx + 0x2d], r15
mov qword [rcx + 0x35], r15
mov dword [rcx + 0x3d], r15d
mov qword [rcx + 0x7d], rax
mov word [rcx + 0x85], 0
mov qword [rcx + 0x87], rsi
mov qword [rdi + 0xe8], rcx
movzx eax, byte [rdi + 0x50]
cmp al, 1
jne 0x140039893
cmp qword [rdi + 0x118], 0
jne 0x1400396ce
cmp qword [rdi + 0x120], 0
jne 0x1400396ce
mov rax, qword [r14 + 0x120]
test rax, rax
je 0x1400396ce
cmp byte [rax + 0x71], 1
jne 0x1400396ce
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [rdi + 0x110]
cmp eax, 0x2710
jbe 0x1400396ce
xorps xmm0, xmm0
movups xmmword [rbp + 0x320], xmm0
movups xmmword [rbp + 0x330], xmm0
movups xmmword [rbp + 0x340], xmm0
movups xmmword [rbp + 0x350], xmm0
movzx eax, byte [rdi + 0x98]
movzx ecx, byte [rdi + 0x99]
movzx edx, byte [rdi + 0x9a]
movzx r8d, byte [rdi + 0x9b]
movzx r10d, byte [rdi + 0x9c]
movzx r9d, byte [rdi + 0x9d]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r8d
mov dword [rsp + 0x20], r10d
lea r8, str._02x:_02x:_02x:_02x:_02x:_02x
mov edx, 0x20
lea rcx, [rbp + 0x320]
call fcn.140017d20
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], r13
lea rax, [rbp + 0x320]
mov r8, r15
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140039310
lea rdx, [rbp + 0x320]
lea rcx, [rbp + 0xc8]
call fcn.140017c00
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x58], rax
lea rcx, str._AsusSync_CommMgr__IsBTDevicePaired___Start_n
call fcn.140095ab0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x360]
call fcn.1400c46bc
test rax, rax
je 0x140039389
mov word [rax + 2], si
lea r8, str.AsusLinkWP2P.exe
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.1400d6ec0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x570]
call fcn.1400c5120
lea rax, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rax, qword [rbp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x360]
lea r8, str.__s___isbtdevicepaired__s
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.140017d20
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x570]
call fcn.140097090
mov ebx, eax
mov r8d, eax
mov edx, eax
lea rcx, str._AsusSync_CommMgr__IsBTDevicePaired___End__d__0x_08X__n
call fcn.140095ab0
test ebx, ebx
sete bl
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x14003945f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003945a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0b9
call fcn.1400c2470
test bl, bl
je 0x1400396b7
mov qword [rbp + 0xc8], rsi
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe0], r13
mov r8d, 0x24
lea rdx, str.d5aef88f_fb45_4c5e_b913_d412212e7eed
lea rcx, [rbp + 0xc8]
call fcn.140017c00
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x58], rax
mov rbx, qword [rdi + 0x98]
lea rcx, str._AsusSync_CommMgr__IsBTRFCommServiceExist___Start_n
call fcn.140095ab0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x360]
call fcn.1400c46bc
test rax, rax
je 0x1400394f7
mov word [rax + 2], si
lea r8, str.AsusLinkWP2P.exe
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.1400d6ec0
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x570]
call fcn.1400c5120
lea rax, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 8
cmovae rax, qword [rbp + 0xc8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x360]
lea r8, str.__s___isbtrfcommserviceexist__llx__s
mov edx, 0x104
lea rcx, [rbp + 0x570]
call fcn.140017d20
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x570]
call fcn.140097090
mov ebx, eax
mov r8d, eax
mov edx, eax
lea rcx, str._AsusSync_CommMgr__IsBTRFCommServiceExistf___End__d__0x_08X__n
call fcn.140095ab0
cmp ebx, 1
sete bl
mov rdx, qword [rbp + 0xe0]
cmp rdx, 8
jb 0x1400395d3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400395ce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0bf
call fcn.1400c2470
test bl, bl
je 0x14003969a
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___IsBTRFCommServiceExist_success_n
call fcn.140095ab0
mov ecx, 0x68
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
movzx r8d, byte [rdi + 0x50]
movzx edx, byte [rdi + 0x1a6]
cmp dword [rdi + 0x194], 0x10005
setae cl
mov rax, qword [rdi + 0x98]
movups xmm0, xmmword [0x140119878]
movups xmmword [rbx + 8], xmm0
mov byte [rbx + 0x18], 0
mov dword [rbx + 0x1c], esi
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x30], r15
mov byte [rbx + 0x38], cl
mov byte [rbx + 0x39], dl
mov byte [rbx + 0x3a], 0
mov byte [rbx + 0x3b], r8b
mov byte [rbx + 0x3c], 0
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
mov rcx, rbx
call fcn.14002aa90
nop
mov qword [rdi + 0x118], rbx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rdi + 0x110], eax
jmp 0x14003a050
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___IsBTRFCommServiceExist_failed_n
call fcn.140095ab0
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov dword [rdi + 0x110], eax
jmp 0x14003a050
lea rdx, [rdi + 0x78]
cmp qword [rdx + 0x18], 8
jb 0x1400396c5
mov rdx, qword [rdx]
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler_____s__is_already_unpaired__remove_it._n
jmp 0x1400396fd
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x14003a050
cmp byte [rax + 0x3a], 0
je 0x14003976c
lea rdx, [rdi + 0x78]
cmp qword [rdx + 0x18], 8
jb 0x1400396f6
mov rdx, qword [rdx]
lea rcx, str._AsusSync_CommDev__DeviceBTServiceHandler_____s__is_already_disconnected__remove_it._n
call fcn.140095ab0
cmp byte [rdi + 9], 0
jne 0x14003a050
mov rax, qword [rdi]
cmp qword [rax + 0x169], 0
jne 0x14003a050
mov byte [rdi + 9], 1
mov byte [rax + 0x160], 0
mov rcx, qword [rdi]
mov rax, qword [rdi + 0x98]
lea r8, [rdi + 0x58]
mov qword [rcx + 0x169], rax
cmp qword [r8 + 0x18], 0x10
jb 0x140039747
mov r8, qword [r8]
mov rcx, qword [rdi]
add rcx, 0x179
mov edx, 0x80
call fcn.1400cc970
lea rcx, str._AsusSync_CommDev__Remove__n
call fcn.140095ab0
jmp 0x14003a050
cmp dword [rax + 0x1c], 0
je 0x14003a050
mov rbx, qword [rdi + 0x118]
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
sub eax, dword [rbx + 0x1c]
cmp eax, 0x7530
jbe 0x14003a050
cmp qword [rdi + 0x120], 0
jne 0x14003a050
cmp byte [r14 + 0x793], 0
jne 0x140039882
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x360]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rbp + 0x360]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rbp + 0x360]
call fcn.1400c46bc
test rax, rax
je 0x1400397f0
mov word [rax + 2], si
lea r8, str.AsusLinkWP2P.exe
mov edx, 0x104
lea rcx, [rbp + 0x360]
call fcn.1400d6ec0
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x570]
call fcn.1400c5120
lea rax, str.B9ECED6F.ASUSPCAssistant.asToastNotifier.exe
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x360]
lea r8, str.__s___toast___s___reset_btradio
mov edx, 0x200
lea rcx, [rbp + 0x570]
call fcn.140017d20
lea rdx, [rbp + 0x570]
lea rcx, str._AsusSync_CommMgr__SendBtRadioResetNotice_send_toast_:__s_n
call fcn.140095ab0
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x570]
call fcn.140097090
movzx eax, byte [r14 + 0x54]
test al, 0x20
jne 0x14003987a
or al, 0x20
mov byte [r14 + 0x54], al
mov byte [r14 + 0x793], 1
lea rcx, str._AsusSync_CommDev__DeviceBTServiceHandler___BT_Connection_is_unrecoverable_n
call fcn.140095ab0
jmp 0x14003a050
cmp al, 2
jne 0x14003a050
cmp qword [rdi + 0x1b0], 0
jne 0x14003997f
mov ecx, 0x400
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x58], rax
xor edx, edx
mov r8d, 0x400
mov rcx, rax
call fcn.1400c5120
lea rdx, [rdi + 0x78]
lea rcx, [rbp + 0x320]
call fcn.140013730
mov r8, qword [rdi + 0xc0]
mov rdx, rax
mov rcx, rbx
call fcn.14005ab30
nop
mov qword [rdi + 0x1b0], rax
lea rcx, [0x1400347a0]
mov qword [rax + 0x310], rcx
mov qword [rax + 0x318], rdi
mov rax, qword [rdi + 0x1b0]
lea rcx, [0x140034900]
mov qword [rax + 0x378], rcx
mov qword [rax + 0x380], rdi
mov rax, qword [rdi + 0x1b0]
lea rcx, [0x1400349b0]
mov qword [rax + 0x398], rcx
mov qword [rax + 0x3a0], rdi
mov rax, qword [rdi + 0x1b0]
lea rcx, [0x140035100]
mov qword [rax + 0x3d8], rcx
mov qword [rax + 0x3e0], rdi
mov rax, qword [rdi + 0x1b0]
lea rcx, [0x140035410]
mov qword [rax + 0x3b8], rcx
mov qword [rax + 0x3c0], rdi
jmp 0x14003a050
mov r9, qword [rdi + 0x1a8]
test r9, r9
je 0x140039aab
cmp dword [r9 + 0x238], 0x40000000
jne 0x140039aab
movzx edx, byte [r14 + 0x68]
mov eax, dword [r9 + 0x240]
cmp eax, edx
je 0x1400399fb
mov ecx, dword [r9 + 0x240]
mov eax, edx
xchg dword [r9 + 0x240], eax
cmp ecx, 0xffffffff
je 0x1400399fb
mov dword [rsp + 0x68], edx
mov qword [rsp + 0x70], r9
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_aa395f011fd69063ffc577b881f5774c___void___.0
mov qword [rbp + 0x40], rax
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rbp + 0x48], xmm0
lea rax, [rbp + 0x40]
mov qword [rbp + 0x78], rax
lea r8, [rbp + 0x40]
mov edx, 2
mov rcx, r9
call fcn.140011a50
mov rbx, qword [rdi + 0x1a8]
movzx eax, byte [rbx + 0x420]
test al, al
je 0x140039aab
mov eax, esi
xchg byte [rbx + 0x420], al
mov dword [rbx + 0x424], r15d
mov dword [rbx + 0x428], esi
mov dword [rbx + 0x42c], 0x12c
call fcn.14009a034
mov r14, rax
call fcn.14009a018
cmp r14, 0x989680
jne 0x140039a4c
imul rcx, rax, 0x64
jmp 0x140039a67
cqo
idiv r14
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv r14
add rcx, rax
mov qword [rbx + 0x2b0], rcx
mov dword [rbx + 0x430], esi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_f000f50daaf93570e0c4e01e68f75d45___void___.0
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rbx
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb8], rax
lea r8, [rbp + 0x80]
mov edx, 2
mov rcx, rbx
call fcn.140011a50
mov rax, qword [rdi + 0x1b0]
test rax, rax
je 0x140039eb0
cmp dword [rax + 0x10c], 0x40000000
jne 0x140039eb0
mov qword [rbp + 0xf0], rsi
mov rbx, rsi
mov qword [rbp + 0x100], rbx
mov r15, r13
mov qword [rbp + 0x108], r13
mov word [rbp + 0xf0], si
lea rcx, str.bthprops.cpl
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_1.dll_LoadLibraryW]
mov r14, rax
test rax, rax
je 0x140039c51
lea rdx, str.BluetoothFindFirstRadio
mov rcx, rax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r12, rax
lea rdx, str.BluetoothFindNextRadio
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov r13, rax
lea rdx, str.BluetoothGetRadioInfo
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rbp - 0x68], rax
lea rdx, str.BluetoothFindRadioClose
mov rcx, r14
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
test r12, r12
je 0x140039c4b
test r13, r13
je 0x140039c4b
cmp qword [rbp - 0x68], 0
je 0x140039c4b
test rax, rax
je 0x140039c4b
mov qword [rbp + 0xc0], rsi
mov dword [rbp + 0xe8], 4
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xe8]
mov rax, r12
call qword [0x1400fac68]
mov r14, rax
test rax, rax
je 0x140039c4b
mov rdi, qword [rbp - 0x68]
mov dword [rbp + 0x110], 0x208
lea rdx, [rbp + 0x110]
mov rcx, qword [rbp + 0xc0]
mov rax, rdi
call qword [0x1400fac68]
test eax, eax
jne 0x140039c15
lea rax, [rbp + 0x120]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x140039bf0
lea rdx, [rbp + 0x120]
lea rcx, [rbp + 0xf0]
call fcn.140017c00
mov rbx, qword [rbp + 0x100]
lea rdx, [rbp + 0xc0]
mov rcx, r14
mov rax, r13
call qword [0x1400fac68]
test eax, eax
je 0x140039c31
test rbx, rbx
je 0x140039bb3
mov rcx, r14
mov rax, qword [rsp + 0x68]
call qword [0x1400fac68]
mov r15, qword [rbp + 0x108]
mov rdi, qword [rsp + 0x58]
mov r13d, 7
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], rsi
lea r14, [rbp + 0xf0]
cmp r15, 8
setae r12b
cmovae r14, qword [rbp + 0xf0]
mov r15, 0xffffffffffffffff
cmp rbx, 8
jae 0x140039c8d
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x78], xmm0
jmp 0x140039cd2
mov r13, rbx
or r13, 7
movabs rax, 0x7ffffffffffffffe
cmp r13, rax
cmova r13, rax
mov rdx, r13
add rdx, 1
cmovb rdx, r15
lea rcx, [rsp + 0x78]
call fcn.140017d80
mov qword [rsp + 0x78], rax
lea r8, [rbx*2 + 2]
mov rdx, r14
mov rcx, rax
call fcn.1400c4a50
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x78], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov rcx, qword [rdi + 0x1b0]
add rcx, 0x328
lea rax, [rsp + 0x78]
cmp rcx, rax
je 0x140039d17
lea rdx, [rsp + 0x78]
cmp r13, 8
cmovae rdx, qword [rsp + 0x78]
mov r8, rbx
call fcn.140017c00
mov r13, qword [rbp - 0x70]
cmp r13, 8
jb 0x140039d54
lea rdx, [r13*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039d4f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0c5
call fcn.1400c2470
mov rax, qword [rsp + 0x50]
movzx edx, byte [rax + 0x68]
mov r9, qword [rdi + 0x1b0]
mov eax, dword [r9 + 0x114]
cmp eax, edx
je 0x140039dba
mov ecx, dword [r9 + 0x114]
mov eax, edx
xchg dword [r9 + 0x114], eax
cmp ecx, 0xffffffff
je 0x140039dba
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], r9
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_418b56529673d0d5d417d24a5f3aabee___void___.0
mov qword [rbp - 0x60], rax
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rbp - 0x58], xmm0
lea rax, [rbp - 0x60]
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x60]
mov edx, 2
mov rcx, r9
call fcn.14005c9d0
mov rbx, qword [rdi + 0x1b0]
movzx eax, byte [rbx + 0x2e0]
test al, al
je 0x140039e6b
mov eax, esi
xchg byte [rbx + 0x2e0], al
mov dword [rbx + 0x2e4], r15d
mov dword [rbx + 0x2e8], esi
mov dword [rbx + 0x2ec], 0x12c
call fcn.14009a034
mov r14, rax
call fcn.14009a018
cmp r14, 0x989680
jne 0x140039e0b
imul rax, rax, 0x64
jmp 0x140039e26
cqo
idiv r14
imul r8, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv r14
add rax, r8
mov qword [rbx + 0x170], rax
mov dword [rbx + 0x2f0], esi
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_da89a6914230d5640baf36304d26b931___void___.0
mov qword [rbp + 0x320], rax
mov qword [rbp + 0x328], rbx
lea rax, [rbp + 0x320]
mov qword [rbp + 0x358], rax
lea r8, [rbp + 0x320]
mov edx, 2
mov rcx, rbx
call fcn.14005c9d0
nop
test r12b, r12b
je 0x140039eb0
mov rax, qword [rbp + 0x108]
lea rdx, [rax*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039eab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a0a7
call fcn.1400c2470
mov rax, qword [rdi + 0x1b0]
test rax, rax
je 0x14003a04b
test dword [rax + 0x10c], 0x20000000
je 0x140039f03
cmp qword [rdi + 0x118], 0
je 0x14003a04b
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___Close_BT_rfcomm_client_module_because_GATT_Service_is_connected._n
call fcn.140095ab0
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x140039ef7
call fcn.14002f890
mov qword [rdi + 0x118], rsi
jmp 0x14003a04b
mov rcx, qword [rdi + 0xf0]
test rcx, rcx
je 0x140039f19
call fcn.14008d9d0
cmp eax, 7
jmp 0x140039f8e
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x140039fb1
mov byte [rcx + 0x85], 0
mov rax, qword [rcx + 0x87]
test rax, rax
je 0x140039f8b
mov eax, dword [rax + 4]
mov dword [rcx], eax
cmp eax, 7
jg 0x140039f8b
mov rax, r15
nop dword [rax]
inc rax
cmp byte [rcx + rax + 0x41], 0
jne 0x140039f50
test rax, rax
je 0x140039f8b
mov qword [rcx + 0x2d], 0xffffffffffffffff
mov qword [rcx + 0x35], 0xffffffffffffffff
mov dword [rcx + 0x3d], r15d
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + 0x41], xmm0
movups xmmword [rcx + 0x51], xmm0
movups xmmword [rcx + 0x61], xmm0
mov qword [rcx + 0x71], rax
mov dword [rcx + 0x79], eax
cmp dword [rcx], 7
jl 0x140039fb1
mov rcx, qword [rdi + 0x118]
test rcx, rcx
je 0x14003a04b
call fcn.14002f890
mov qword [rdi + 0x118], rsi
jmp 0x14003a04b
cmp qword [rdi + 0x118], 0
jne 0x14003a04b
mov ecx, 0x68
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov qword [rbx + 0x60], rax
movzx ecx, byte [rdi + 0x50]
mov rax, qword [rdi + 0x98]
movups xmm0, xmmword [0x1401161c8]
movups xmmword [rbx + 8], xmm0
mov byte [rbx + 0x18], 0
mov dword [rbx + 0x1c], esi
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x30], r15
mov word [rbx + 0x38], 0
mov byte [rbx + 0x3a], 0
mov byte [rbx + 0x3b], cl
mov byte [rbx + 0x3c], 0
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x50], rsi
mov qword [rbx + 0x58], rsi
mov qword [rbx + 0x60], rsi
mov rcx, rbx
call fcn.14002aa90
nop
mov qword [rdi + 0x118], rbx
mov r14, qword [rsp + 0x50]
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x14003a07d
cmp byte [rax + 0x3c], 0
je 0x14003a07d
movzx eax, byte [r14 + 0x54]
test al, 0x40
jne 0x14003a07d
or al, 0x40
mov byte [r14 + 0x54], al
lea rcx, str._AsusSync_CommMgr__DeviceBTServiceHandler___detect_device_unpaired._n
call fcn.140095ab0
mov rcx, qword [rbp + 0x970]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0xad0]
add rsp, 0xa80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400c8b64
int3
call fcn.1400c8b64
int3
call fcn.1400c8b64
int3
call fcn.1400c8b64
int3
call fcn.1400c8b64
nop
call fcn.1400c8b64
nop
int3