Function at 0x140098740
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x80
mov rdi, rcx
mov eax, dword [rcx + 0x158]
cmp eax, 1
jne 0x1400989cf
cmp qword [rcx + 0x140], 0
jne 0x1400989c3
lea ecx, [rax + 0x4f]
call fcn.1400c2704
mov r14, rax
mov qword [rsp + 0x78], 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
xor esi, esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
lea r8d, [rsi + 0x24]
lea rdx, str.6884a8e3_a4f6_4792_afdc_31570748bf04
lea rcx, [rsp + 0x58]
call fcn.140017c00
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov qword [r14], 0xffffffffffffffff
mov qword [r14 + 8], 0xffffffffffffffff
mov qword [r14 + 0x10], 0xffffffffffffffff
mov word [r14 + 0x18], si
mov qword [r14 + 0x20], rdi
mov qword [r14 + 0x28], rsi
mov qword [r14 + 0x38], rsi
mov qword [r14 + 0x40], 7
mov word [r14 + 0x28], si
lea rax, [0x140099980]
mov qword [r14 + 0x48], rax
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov qword [r14 + 0x10], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [r14 + 8], rax
lea r8, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call fcn.14008ff50
mov rdx, rax
lea rcx, [r14 + 0x28]
call fcn.140013650
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140098894
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14009888f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098b52
call fcn.1400c2470
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400988ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400988e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140098b4c
call fcn.1400c2470
nop
mov qword [rdi + 0x140], r14
cmp byte [r14 + 0x18], 0
jne 0x140098923
mov byte [r14 + 0x18], 1
cmp qword [r14], 0xffffffffffffffff
jne 0x140098923
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
mov r9, r14
lea r8, [0x14008ff20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [r14], rax
mov ebx, esi
mov rcx, rdi
call fcn.140098f70
test al, al
jne 0x14009894f
cmp ebx, 0x64
ja 0x14009894f
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc ebx
mov rcx, rdi
call fcn.140098f70
test al, al
je 0x140098931
mov rax, qword [rdi + 0x140]
test rax, rax
je 0x140098b32
cmp byte [rax + 0x19], 0
je 0x140098b32
mov dl, 1
mov rcx, rdi
call fcn.140099200
mov byte [rdi + 0x1d5], 1
mov rax, qword [rdi + 0x148]
test rax, rax
jne 0x140098b32
nop word [rax + rax]
cmp esi, 0x64
ja 0x1400989ae
mov ecx, 0x64
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
inc esi
mov rax, qword [rdi + 0x148]
test rax, rax
je 0x140098990
test rax, rax
jne 0x140098b32
lea rcx, str._Aws_WiFiDirectHandler__StartHandler___wait_slave_connection_timeout_n
jmp 0x140098b2d
lea rcx, str._Aws_WiFiDirectHandler__StartHandler___PipeServer_already_exist_n
jmp 0x140098b2d
cmp eax, 2
jne 0x140098b32
cmp qword [rcx + 0x148], 0
jne 0x140098b26
lea ecx, [rax + 0x66]
call fcn.1400c2704
mov rbx, rax
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
movups xmmword [rbx + 0x10], xmm0
movups xmmword [rbx + 0x40], xmm0
movups xmmword [rbx + 0x50], xmm0
mov byte [rbx], al
mov qword [rbx + 8], 0xffffffffffffffff
mov qword [rbx + 0x10], 0xffffffffffffffff
mov qword [rbx + 0x18], 0xffffffffffffffff
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
mov qword [rbx + 0x40], 0xffffffffffffffff
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rbx + 0x20], xmm0
movups xmmword [rbx + 0x30], xmm0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x58], xmm0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x60], rax
xor esi, esi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
lea r8d, [rsi + 0x24]
lea rdx, str.6884a8e3_a4f6_4792_afdc_31570748bf04
lea rcx, [rsp + 0x38]
call fcn.140017c00
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14008f400
test eax, eax
jne 0x140098b1c
lea ecx, [rsi + 0x48]
call fcn.1400c2704
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
xor ecx, ecx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
mov qword [rax + 0x40], rcx
movzx ecx, byte [rdi]
mov byte [rsp + 0x20], cl
lea r9, [rsi - 1]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call fcn.14008ec40
mov qword [rdi + 0x148], rax
mov byte [rdi + 0x23], 1
jmp 0x140098b32
mov rcx, rbx
call fcn.14008ed20
jmp 0x140098b32
lea rcx, str._Aws_WiFiDirectHandler__StartHandler___m_pPipeConnection_already_exist_n
call fcn.140095ab0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
call fcn.1400c8b64
nop
call fcn.1400c8b64
int3