Function at 0x140099700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x60
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, rcx
xor ebp, ebp
lea rcx, str._Aws_WiFiDirectHandler__RoutineTask_In
mov ebx, ebp
call fcn.140095ab0
mov byte [rdi + 0x22], 1
cmp byte [rdi + 0x21], bpl
je 0x14009995b
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r14
lea r14, [0x140099bd0]
nop
mov rcx, qword [rdi + 8]
mov edx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
movzx ecx, byte [rdi + 0x21]
test cl, cl
je 0x14009994b
cmp eax, 0x102
jne 0x14009993f
mov eax, dword [rdi + 0x1d6]
cmp ebx, eax
je 0x140099878
cmp dword [rdi + 0x158], 1
jne 0x140099872
cmp eax, 0x60000
jne 0x140099859
cmp dword [rdi + 0x1e6], 1
jne 0x140099872
cmp qword [rdi + 0x210], 0xffffffffffffffff
jne 0x140099872
mov rax, qword [rdi + 0x208]
test rax, rax
jne 0x1400997f9
lea ecx, [rax + 0x20]
call fcn.1400c2704
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
mov qword [rax], rdi
mov byte [rax + 8], bpl
mov qword [rax + 0x10], 0xffffffffffffffff
mov qword [rax + 0x18], r14
mov qword [rdi + 0x208], rax
test rax, rax
je 0x140099872
mov esi, ebp
nop dword [rax + rax]
movzx r8d, word [rdi + 0x26]
xor r9d, r9d
mov edx, dword [rdi + 0x1e2]
mov rcx, qword [rdi + 0x208]
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
call fcn.140094970
test eax, eax
je 0x140099872
movzx eax, byte [rdi + 0x21]
inc esi
test al, al
je 0x14009984e
mov ebx, ebp
cmp ebx, 0xa
jae 0x14009984e
mov ecx, 0x64
add ebx, 0xa
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
movzx eax, byte [rdi + 0x21]
test al, al
jne 0x140099833
cmp esi, 0xa
ja 0x140099872
test al, al
jne 0x140099800
jmp 0x140099872
cmp eax, 0x70000
jne 0x140099872
mov edx, dword [rdi + 0x1da]
lea rcx, str._Aws_WiFiDirectHandler__RoutineTas___WiFiDirect_connection_Stop__Event:_d
call fcn.140095ab0
mov ebx, dword [rdi + 0x1d6]
cmp dword [rdi + 0x158], 1
jne 0x140099939
cmp byte [rdi + 0x22], 1
jne 0x1400998f3
cmp byte [rdi + 0x23], bpl
je 0x140099939
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x140099939
cmp byte [rcx + 0x38], bpl
je 0x140099939
mov eax, dword [rdi + 0x150]
lea r8, [rdi + 0x24]
xorps xmm0, xmm0
mov dword [rsp + 0x38], eax
mov r9d, 0x11c
mov word [rsp + 0x3c], 0x301
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x3e], 0x11c
movdqu xmmword [rsp + 0x42], xmm0
call fcn.14008edc0
test al, al
je 0x140099939
mov byte [rdi + 0x22], bpl
movzx ecx, byte [rdi + 0x21]
jmp 0x140099943
cmp byte [rdi + 0x23], bpl
je 0x140099939
mov rcx, qword [rdi + 0x148]
test rcx, rcx
je 0x140099939
cmp byte [rcx + 0x38], bpl
je 0x140099939
mov eax, dword [rdi + 0x150]
lea rdx, [rsp + 0x38]
xorps xmm0, xmm0
mov dword [rsp + 0x38], eax
xor r9d, r9d
mov word [rsp + 0x3c], 0x101
xor r8d, r8d
mov dword [rsp + 0x3e], ebp
movdqu xmmword [rsp + 0x42], xmm0
call fcn.14008edc0
movzx ecx, byte [rdi + 0x21]
jmp 0x140099943
test eax, eax
je 0x14009994b
test cl, cl
jne 0x140099750
mov rsi, qword [rsp + 0x88]
mov r14, qword [rsp + 0x90]
lea rcx, str._Aws_WiFiDirectHandler__RoutineTask_Out
call fcn.140095ab0
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x60
pop rdi
pop rbp
pop rbx
ret