Function at 0x140098490
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], rbx
push rbp
lea rbp, [r11 - 0x188]
sub rsp, 0x280
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x170], rax
cmp byte [rcx + 1], 0
mov rbx, rcx
jne 0x140098539
cmp qword [rcx + 0x18], 0xffffffffffffffff
jne 0x140098539
cmp dword [rcx + 0x1fc], 0
jne 0x140098539
mov qword [r11 + 0x10], rsi
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [r11 + 0x18], rdi
mov r8d, 0x200
call fcn.1400c5120
xor esi, esi
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], esi
xor edx, edx
mov qword [rsp + 0x48], rsi
xor dil, dil
lea ecx, [rsi + 2]
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanOpenHandle]
test eax, eax
je 0x140098559
mov edx, eax
lea rcx, str._Aws_WiFiDirectHelper__GetDefaultWiFiAdapterName___WlanOpenHandle_failed_with_error:__u_n
call fcn.140095ab0
mov dword [rbx + 0x1fc], 3
mov rsi, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400c2450
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rbp
ret
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanEnumInterfaces]
test eax, eax
je 0x140098591
mov edx, eax
lea rcx, str._Aws_WiFiDirectHelper__GetDefaultWiFiAdapterName___WlanEnumInterfaces_failed_with_error:__u_n
call fcn.140095ab0
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanCloseHandle]
jmp 0x14009851f
mov rcx, qword [rsp + 0x40]
cmp dword [rcx], esi
jbe 0x1400985b5
lea r8, [rcx + 0x18]
mov edx, 0x100
lea rcx, [rsp + 0x70]
call fcn.1400cc908
mov rcx, qword [rsp + 0x40]
mov dil, 1
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanFreeMemory]
mov rcx, qword [rsp + 0x48]
xor edx, edx
mov qword [rsp + 0x40], rsi
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanCloseHandle]
test dil, dil
je 0x14009851f
xor edx, edx
mov dword [rsp + 0x60], esi
lea r9, [rsp + 0x40]
mov qword [rsp + 0x40], rsi
lea r8, [rsp + 0x60]
xor dil, dil
lea ecx, [rdx + 2]
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanOpenHandle]
test eax, eax
je 0x140098618
mov edx, eax
lea rcx, str._Aws_WiFiDirectHelper__GetDefaultWiFiRadioState___WlanOpenHandle_failed_with_error:__u_n
call fcn.140095ab0
mov dword [rbx + 0x1fc], 2
jmp 0x140098529
mov rcx, qword [rsp + 0x40]
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanEnumInterfaces]
test eax, eax
je 0x14009865d
mov edx, eax
lea rcx, str._Aws_WiFiDirectHelper__GetDefaultWiFiRadioState___WlanEnumInterfaces_failed_with_error:__u_n
call fcn.140095ab0
mov rcx, qword [rsp + 0x40]
xor edx, edx
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanCloseHandle]
mov dword [rbx + 0x1fc], 2
jmp 0x140098529
mov rdx, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x30], rsi
add rdx, 8
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
mov dword [rsp + 0x48], esi
lea r8d, [r9 + 4]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanQueryInterface]
test eax, eax
jne 0x1400986bd
mov rcx, qword [rsp + 0x58]
cmp dword [rcx + 8], 1
jne 0x1400986b2
cmp dword [rcx + 0xc], 1
jne 0x1400986b2
mov dil, 1
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanFreeMemory]
mov qword [rsp + 0x58], rsi
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanFreeMemory]
mov rcx, qword [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x50], rsi
call qword [sym.imp.ext_ms_win_networking_wlanapi_l1_1_0.dll_WlanCloseHandle]
cmp dil, 1
jne 0x140098609
cmp dword [rbx + 0x158], 1
jne 0x140098712
mov qword [rsp + 0x28], rsi
lea r8, [0x140099ca0]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
mov byte [rbx + 0x21], dil
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x28], rsi
lea r8, [0x140099ce0]
mov r9, rbx
mov dword [rsp + 0x20], esi
xor edx, edx
mov byte [rbx + 1], 1
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
mov qword [rbx + 0x18], rax
jmp 0x140098529