Function at 0x140080b10
Capabilities:
Create thread
Terminate thread

Disassembly:
mov r11, rsp
push rbx
push r14
sub rsp, 0x268
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x250], rax
cmp byte [rcx + 0x918], 0
movzx r14d, dl
mov rbx, rcx
jne 0x140080e8d
mov qword [r11 + 0x10], rbp
lea rcx, str._AsusSync_MdnsMgr__CloseWsPipeConnection___In_r_n
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x18], r15
call fcn.140095ab0
xor edx, edx
mov byte [rbx + 0x918], 1
mov r8d, 0x208
lea rcx, [rsp + 0x40]
call fcn.1400c5120
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1400c46bc
xor r15d, r15d
test rax, rax
je 0x140080ba6
mov word [rax], r15w
mov edx, 0x5c
lea rcx, [rsp + 0x40]
call fcn.1400c46bc
test rax, rax
je 0x140080bbf
mov word [rax + 2], r15w
lea r8, [rbx + 0x236]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400d6ec0
lea r8, [0x140119f68]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400d6ec0
lea r8, [rbx + 0x43e]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.1400d6ec0
mov ecx, 0x28
call fcn.1400c2704
mov rdi, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
lea rcx, [rsp + 0x40]
xor eax, eax
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm0
mov qword [rdi + 0x20], rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.AsusLinkCloudConnection
mov qword [rdi + 8], rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r9, rdi
mov qword [rsp + 0x28], r15
lea r8, [0x14005a460]
mov qword [rdi + 0x18], rax
xor edx, edx
mov word [rdi + 0x20], r15w
xor ecx, ecx
mov dword [rsp + 0x20], r15d
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rdi], rax
test rax, rax
je 0x140080c88
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rdi], r15
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140080c9b
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi + 8], r15
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140080cae
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rdi + 0x18], r15
mov edx, 0x28
mov rcx, rdi
call fcn.1400c2470
lea rcx, [rbx + 0x1018]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rdx, qword [rbx + 0x1078]
mov esi, r15d
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
sar rax, 3
test rax, rax
je 0x140080d37
mov rdi, r15
nop word [rax + rax]
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
sar rax, 3
cmp rax, rdi
jbe 0x140080ea8
lfence
mov rax, qword [rdx]
mov rcx, qword [rax + rdi*8]
mov rcx, qword [rcx + 0x11]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rdx, qword [rbx + 0x1078]
inc esi
inc rdi
movsxd rax, esi
mov rcx, qword [rdx + 8]
sub rcx, qword [rdx]
sar rcx, 3
cmp rax, rcx
jb 0x140080cf0
lea rcx, [rbx + 0x1018]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
lea rcx, [rbx + 0xff0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
mov rcx, qword [rbx + 0x908]
cmp rcx, 0xffffffffffffffff
je 0x140080d6f
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x908], 0xffffffffffffffff
lea rcx, [rbx + 0xff0]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
cmp qword [rbx + 0x910], r15
je 0x140080df6
mov rcx, qword [rbx + 0x920]
test rcx, rcx
je 0x140080d97
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_SetEvent]
mov rcx, qword [rbx + 0x900]
cmp rcx, 0xffffffffffffffff
je 0x140080db5
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x900], 0xffffffffffffffff
test r14b, r14b
jne 0x140080df6
mov rcx, qword [rbx + 0x910]
mov edx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x140080de2
mov rcx, qword [rbx + 0x910]
xor edx, edx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateThread]
mov rcx, qword [rbx + 0x910]
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov qword [rbx + 0x910], r15
lea rcx, [rbx + 0x1040]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
lea rcx, str._AsusSync_MdnsMgr__ClearCloudRequestData___Clean
call fcn.140095ab0
mov rcx, qword [rbx + 0x6e0]
test rcx, rcx
je 0x140080e2c
mov edx, reloc.WS2_32.dll_WSAGetLastError
call fcn.1400c2470
mov qword [rbx + 0x6e0], r15
mov rcx, qword [rbx + 0x6d0]
mov dword [rbx + 0x6d8], r15d
test rcx, rcx
je 0x140080e4d
xor edx, edx
call fcn.1400c2470
mov qword [rbx + 0x6d0], r15
lea rcx, [rbx + 0x1040]
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
lea rcx, str._AsusSync_MdnsMgr__CloseWsPipeConnection___Out_r_n
mov byte [rbx + 0x919], 1
call fcn.140095ab0
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov rbp, qword [rsp + 0x288]
mov r15, qword [rsp + 0x260]
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x268
pop r14
pop rbx
ret
call fcn.14000a150
int3