Function at 0x140037720
Capabilities:
Hash data with md5

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x308]
sub rsp, 0x408
mov rax, qword [0x140070040]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r13, r9
mov r14, r8
mov qword [rbp - 0x30], rdx
mov qword [rbp - 0x38], rcx
mov r15, qword [rbp + 0x370]
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rbp + 0x38], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x48], xmm1
lea r8d, [rsi + 0x12]
lea rdx, str.Sec_WebSocket_Key1
lea rcx, [rbp + 0x38]
call fcn.140024cf0
nop
mov rdi, qword [r14 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], sil
jne 0x1400377c3
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp + 0x38]
call fcn.140003530
test al, al
je 0x1400377b7
mov rbx, qword [rbx + 0x10]
jmp 0x1400377bd
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x1400377a0
lea r12, [0x140070180]
cmp byte [rdi + 0x19], 0
jne 0x1400377eb
lea r8, [rdi + 0x20]
lea rdx, [rbp + 0x38]
call fcn.140003530
test al, al
jne 0x1400377eb
cmp rdi, qword [r14 + 0x20]
lea rdx, [rdi + 0x40]
jne 0x1400377ee
mov rdx, r12
lea r8, [rbp + 0x2d0]
call fcn.140039f50
nop
mov rdx, qword [rbp + 0x50]
cmp rdx, 0xf
jbe 0x140037839
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037834
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037834
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key2
lea rcx, [rbp + 0x58]
call fcn.140024cf0
nop
mov rdi, qword [r14 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x140037893
nop dword [rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp + 0x58]
call fcn.140003530
test al, al
je 0x140037887
mov rbx, qword [rbx + 0x10]
jmp 0x14003788d
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140037870
cmp byte [rdi + 0x19], 0
jne 0x1400378b4
lea r8, [rdi + 0x20]
lea rdx, [rbp + 0x58]
call fcn.140003530
test al, al
jne 0x1400378b4
cmp rdi, qword [r14 + 0x20]
lea rdx, [rdi + 0x40]
jne 0x1400378b7
mov rdx, r12
lea r8, [rbp + 0x2d4]
call fcn.140039f50
nop
mov rdx, qword [rbp + 0x70]
cmp rdx, 0xf
jbe 0x140037902
inc rdx
mov rcx, qword [rbp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400378fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400378fd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x48], xmm1
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rbp - 0x58]
call fcn.140024cf0
mov rdi, qword [r14 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x140037963
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp - 0x58]
call fcn.140003530
test al, al
je 0x140037957
mov rbx, qword [rbx + 0x10]
jmp 0x14003795d
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140037940
cmp byte [rdi + 0x19], 0
jne 0x140037986
lea r8, [rdi + 0x20]
lea rdx, [rbp - 0x58]
call fcn.140003530
test al, al
jne 0x140037986
cmp rdi, qword [r14 + 0x20]
je 0x140037986
add rdi, 0x40
jmp 0x140037989
mov rdi, r12
mov rdx, qword [rbp - 0x40]
cmp rdx, 0xf
jbe 0x1400379c7
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400379c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400379c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], 8
mov rdx, rdi
lea rax, [rsp + 0x58]
lea r8, [rsp + 0x60]
cmp qword [rdi + 0x18], 0xf
jbe 0x140037a04
mov rdx, qword [rdi]
mov rdi, rdx
cmp rcx, 8
cmovae rax, r8
mov r8, qword [rax]
add r8, rdx
sub r8, rdi
mov rdx, rdi
lea rcx, [rbp + 0x2d8]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rbp + 0xd8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe8], xmm1
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rbp + 0xd8]
call fcn.140024cf0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov r8d, select
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp - 0x78]
call fcn.140024cf0
nop
mov qword [rbp + 0x170], rsi
mov dword [rbp + 0x178], 0x67452301
mov dword [rbp + 0x17c], 0xefcdab89
mov dword [rbp + 0x180], 0x98badcfe
mov dword [rbp + 0x184], 0x10325476
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0xf
cmova rdx, qword [rbp - 0x78]
mov r8, qword [rbp - 0x68]
lea rcx, [rbp + 0x170]
call fcn.140011c60
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x170]
call fcn.140011d70
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x20], 0
mov edx, select
mov r9d, edx
lea rcx, [rsp + 0x38]
call fcn.1400254a0
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0xf
cmova rax, qword [rsp + 0x38]
movups xmm0, xmmword [rbp + 0x2e0]
movups xmmword [rax], xmm0
lea r8, [rsp + 0x38]
lea rdx, [rbp + 0xd8]
mov rcx, r15
call fcn.140004c10
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x140037b83
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037b7e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037b7e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x60]
cmp rdx, 0xf
jbe 0x140037bd4
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037bcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037bcf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp - 0x68], xmm0
mov byte [rbp - 0x78], 0
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0xf
jbe 0x140037c29
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037c24
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037c24
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x108], xmm1
mov r8d, 9
lea rdx, str.WebSocket
lea rcx, [rbp + 0xf8]
call fcn.140024cf0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov r8d, 7
lea rdx, str.Upgrade
lea rcx, [rbp - 0x28]
call fcn.140024cf0
nop
lea r8, [rbp + 0xf8]
lea rdx, [rbp - 0x28]
mov rcx, r15
call fcn.140004c10
nop
mov rdx, qword [rbp - 0x10]
cmp rdx, 0xf
jbe 0x140037cd0
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037ccb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037ccb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp - 0x18], xmm0
mov byte [rbp - 0x28], 0
mov rdx, qword [rbp + 0x110]
cmp rdx, 0xf
jbe 0x140037d25
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037d20
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037d20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x128], xmm1
mov r8d, 7
lea rdx, str.Upgrade
lea rcx, [rbp + 0x118]
call fcn.140024cf0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 8], xmm1
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rbp - 8]
call fcn.140024cf0
nop
lea r8, [rbp + 0x118]
lea rdx, [rbp - 8]
mov rcx, r15
call fcn.140004c10
nop
mov rdx, qword [rbp + 0x10]
cmp rdx, 0xf
jbe 0x140037dcc
inc rdx
mov rcx, qword [rbp - 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037dc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037dc7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp + 8], xmm0
mov byte [rbp - 8], 0
mov rdx, qword [rbp + 0x130]
cmp rdx, 0xf
jbe 0x140037e21
inc rdx
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037e1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037e1c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x88], xmm1
mov r8d, shutdown
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0x78]
call fcn.140024cf0
mov rdi, qword [r15 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x140037e83
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp + 0x78]
call fcn.140003530
test al, al
je 0x140037e77
mov rbx, qword [rbx + 0x10]
jmp 0x140037e7d
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140037e60
lea rsi, [0x140070190]
cmp byte [rdi + 0x19], 0
jne 0x140037ead
lea r8, [rdi + 0x20]
lea rdx, [rbp + 0x78]
call fcn.140003530
test al, al
jne 0x140037ead
cmp rdi, qword [r15 + 0x20]
je 0x140037ead
add rdi, 0x50
jmp 0x140037eb0
mov rdi, rsi
mov rbx, qword [rdi]
mov rdx, qword [rbp + 0x90]
cmp rdx, 0xf
jbe 0x140037ef4
inc rdx
mov rcx, qword [rbp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037eef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037eef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
test rbx, rbx
jne 0x14003804d
xorps xmm0, xmm0
movups xmmword [rbp + 0x98], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xa8], xmm1
lea r8d, [rbx + 6]
lea rdx, str.Origin
lea rcx, [rbp + 0x98]
call fcn.140024cf0
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x28], xmm1
lea r8d, [rbx + 0x14]
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0x18]
call fcn.140024cf0
nop
mov rdi, qword [r14 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x140037f86
nop dword [rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp + 0x98]
call fcn.140003530
test al, al
je 0x140037f7a
mov rbx, qword [rbx + 0x10]
jmp 0x140037f80
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140037f60
cmp byte [rdi + 0x19], 0
jne 0x140037faa
lea r8, [rdi + 0x20]
lea rdx, [rbp + 0x98]
call fcn.140003530
test al, al
jne 0x140037faa
cmp rdi, qword [r14 + 0x20]
je 0x140037faa
lea r12, [rdi + 0x40]
mov r8, r12
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.140004c10
nop
mov rdx, qword [rbp + 0x30]
cmp rdx, 0xf
jbe 0x140037ff8
inc rdx
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140037ff3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140037ff3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp + 0x28], xmm0
mov byte [rbp + 0x18], 0
mov rdx, qword [rbp + 0xb0]
cmp rdx, 0xf
jbe 0x14003804d
inc rdx
mov rcx, qword [rbp + 0x98]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038048
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038048
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc8], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rbp + 0xb8]
call fcn.140024cf0
mov rdi, qword [r15 + 0x20]
mov rbx, qword [rdi + 8]
cmp byte [rbx + 0x19], 0
jne 0x1400380b6
nop dword [rax]
lea rdx, [rbx + 0x20]
lea r8, [rbp + 0xb8]
call fcn.140003530
test al, al
je 0x1400380aa
mov rbx, qword [rbx + 0x10]
jmp 0x1400380b0
mov rdi, rbx
mov rbx, qword [rbx]
cmp byte [rbx + 0x19], 0
je 0x140038090
cmp byte [rdi + 0x19], 0
jne 0x1400380da
lea r8, [rdi + 0x20]
lea rdx, [rbp + 0xb8]
call fcn.140003530
test al, al
jne 0x1400380da
cmp rdi, qword [r15 + 0x20]
je 0x1400380da
lea rsi, [rdi + 0x50]
mov rbx, qword [rsi]
mov rdx, qword [rbp + 0xd0]
cmp rdx, 0xf
jbe 0x140038121
inc rdx
mov rcx, qword [rbp + 0xb8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003811c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003811c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
test rbx, rbx
jne 0x1400383a8
xorps xmm0, xmm0
movups xmmword [rbp + 0x158], xmm0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rcx]
mov r8, r14
lea rdx, [rbp + 0x158]
call qword [rax + 0x60]
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea r8d, [rbx + 0x16]
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rsp + 0x68]
call fcn.140024cf0
nop
mov rbx, qword [rbp + 0x158]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x1d0]
call fcn.14001a0c0
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400381a5
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0x1e0]
call fcn.14002c440
lea rdx, [0x14005a760]
mov rcx, rax
call fcn.140022690
lea rdx, [rbx + 0x20]
cmp qword [rbx + 0x38], 0xf
jbe 0x1400381d3
mov rdx, qword [rbx + 0x20]
mov r8, qword [rbx + 0x30]
mov rcx, rax
call fcn.14002c440
movzx edi, word [rbx + 0x60]
mov eax, 0x50
mov ecx, 0x1bb
cmp byte [rbx + 0x62], 0
cmovne ax, cx
cmp di, ax
je 0x140038219
lea rdx, [0x14005a75c]
lea rcx, [rbp + 0x1e0]
call fcn.140022690
mov rcx, rax
movzx edx, di
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_short_int____ptr64]
lea rdx, [rbx + 0x40]
cmp qword [rbx + 0x58], 0xf
jbe 0x140038228
mov rdx, qword [rbx + 0x40]
mov r8, qword [rbx + 0x50]
lea rcx, [rbp + 0x1e0]
call fcn.14002c440
lea rdx, [rbp + 0x138]
lea rcx, [rbp + 0x1e8]
call fcn.14001ddf0
nop
mov rax, qword [rbp + 0x1d0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx + 0x1d0], rax
mov rax, qword [rbp + 0x1d0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx + 0x1cc], edx
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + 0x1e8], rax
lea rcx, [rbp + 0x1e8]
call fcn.14001dd40
lea rcx, [rbp + 0x1e8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x268]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea r8, [rbp + 0x138]
lea rdx, [rsp + 0x68]
mov rcx, r15
call fcn.140004c10
nop
mov rdx, qword [rbp + 0x150]
cmp rdx, 0xf
jbe 0x140038319
inc rdx
mov rcx, qword [rbp + 0x138]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038314
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038314
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
movdqa xmm0, xmmword [0x14005f5f0]
movdqu xmmword [rbp + 0x148], xmm0
mov byte [rbp + 0x138], 0
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x140038370
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003836a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003836a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
nop
mov rbx, qword [rbp + 0x160]
test rbx, rbx
je 0x1400383a8
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1400383a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1400383a8
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lea rbx, [r13 + 0x10]
cmp qword [rbx], 0
je 0x14003847b
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Protocol
lea rcx, [rsp + 0x68]
call fcn.140024cf0
nop
lea rcx, [r15 + 0x20]
lea rdx, [rsp + 0x68]
call fcn.1400199b0
cmp rax, r13
je 0x14003843c
cmp qword [r13 + 0x18], 0xf
jbe 0x1400383fd
mov r13, qword [r13]
mov rbx, qword [rbx]
mov rcx, qword [rax + 0x18]
cmp rbx, rcx
ja 0x14003842d
mov rdi, rax
cmp rcx, 0xf
jbe 0x140038415
mov rdi, qword [rax]
mov qword [rax + 0x10], rbx
mov r8, rbx
mov rdx, r13
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x14003843c
mov r9, r13
mov rdx, rbx
mov rcx, rax
call fcn.140024a20
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14003847b
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140038476
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140038476
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052050
mov rax, qword [rbp - 0x30]
mov dword [rax], 0
lea rcx, [0x140070108]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.140052030
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret