Function at 0x140034398
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rsi, r8
mov r14, rdx
mov rdi, rcx
mov rcx, rdx
call fcn.140033ebc
test al, al
jne 0x1400343de
mov eax, 0x8000ffff
jmp 0x1400346a6
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
and qword [rbp + 0x17], 0
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x130]
call qword [0x1400f5e38]
lea r8, [rbp + 7]
mov rdx, rax
call fcn.140033f0c
mov ebx, eax
mov dword [rbp + 0x7f], eax
mov r15, qword [rbp + 7]
test eax, eax
js 0x140034696
lea r8, [rbp - 0x19]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.websocket.dll_WebSocketCreateServerHandle]
mov ebx, eax
mov dword [rbp + 0x7f], eax
test eax, eax
js 0x14003463b
lea rax, [rbp + 0x7f]
mov qword [rbp - 9], rax
lea rax, [rbp - 0x19]
mov qword [rbp - 1], rax
movups xmm0, xmmword [rbp - 9]
movdqu xmmword [rbp + 0x27], xmm0
mov byte [rbp + 0x37], 1
and qword [rbp - 9], 0
and dword [rbp - 0x11], 0
mov rax, qword [rbp + 0xf]
sub rax, r15
sar rax, 5
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 9]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.websocket.dll_WebSocketBeginServerHandshake]
mov ebx, eax
mov dword [rbp + 0x7f], eax
test eax, eax
js 0x1400345d0
mov r9, r14
mov r8d, dword [rbp - 0x11]
mov rdx, qword [rbp - 9]
call fcn.140034100
mov ebx, eax
mov dword [rbp + 0x7f], eax
test eax, eax
js 0x14003462b
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.websocket.dll_WebSocketEndServerHandshake]
mov ebx, eax
mov dword [rbp + 0x7f], eax
test eax, eax
js 0x140034589
mov qword [rdi + 8], r14
mov rax, qword [rbp - 0x19]
mov qword [rdi + 0x10], rax
mov rcx, qword [rdi + 0x80]
cmp rcx, rsi
je 0x140034522
test rsi, rsi
je 0x140034509
mov rax, qword [rsi]
mov rcx, rsi
mov rax, qword [rax + 8]
call qword [0x1400f5e38]
mov rcx, qword [rdi + 0x80]
mov qword [rdi + 0x80], rsi
test rcx, rcx
je 0x140034522
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x1400f5e38]
lea rcx, [rdi + 0x78]
mov edx, 1
call fcn.140035f64
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x140033be0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CreateThread]
mov rbx, rax
mov rcx, qword [rdi + 0x70]
cmp rax, rcx
je 0x140034572
test rcx, rcx
je 0x14003456e
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x1400346c3
mov qword [rdi + 0x70], rbx
cmp dword [rbp + 0x7f], 0
jge 0x140034582
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.websocket.dll_WebSocketDeleteHandle]
xor ebx, ebx
jmp 0x140034696
mov edi, 2
cmp dword [0x140142444], edi
jb 0x1400345aa
mov r8d, eax
lea rdx, str.Failed_to_complete_websocket_handshake:_0x_x
mov ecx, edi
call fcn.14003929c
mov ebx, dword [rbp + 0x7f]
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003462b
test byte [rcx + 0x1c], dil
je 0x14003462b
cmp byte [rcx + 0x19], dil
jb 0x14003462b
mov edx, reloc.WS2_32.dll_ntohs
jmp 0x140034615
mov edi, 2
cmp dword [0x140142444], edi
jb 0x1400345f1
mov r8d, eax
lea rdx, str.Failed_to_initiate_websocket_handshake:_0x_x
mov ecx, edi
call fcn.14003929c
mov ebx, dword [rbp + 0x7f]
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x14003462b
test byte [rcx + 0x1c], dil
je 0x14003462b
cmp byte [rcx + 0x19], dil
jb 0x14003462b
mov edx, 0x10
mov r9d, ebx
lea r8, [0x1400fde18]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov ebx, dword [rbp + 0x7f]
test ebx, ebx
jns 0x140034696
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.websocket.dll_WebSocketDeleteHandle]
jmp 0x140034693
mov edi, 2
cmp dword [0x140142444], edi
jb 0x14003465c
mov r8d, eax
lea rdx, str.Failed_to_create_websocket_handle:_0x_x
mov ecx, edi
call fcn.14003929c
mov ebx, dword [rbp + 0x7f]
lea rax, section..data
mov rcx, qword [section..data]
cmp rcx, rax
je 0x140034696
test byte [rcx + 0x1c], dil
je 0x140034696
cmp byte [rcx + 0x19], dil
jb 0x140034696
mov edx, 0x11
mov r9d, ebx
lea r8, [0x1400fde18]
mov rcx, qword [rcx + 0x10]
call fcn.140007608
mov ebx, dword [rbp + 0x7f]
test r15, r15
je 0x1400346a4
mov rcx, r15
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
mov eax, ebx
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call qword [sym.imp.api_ms_win_downlevel_kernel32_l1_1_0.dll_GetLastError]
nop
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.14002953c
int3