Function at 0x14003fc40
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 [0x14007c010]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov qword [rbp + 0x70], r9
mov rsi, r8
mov qword [rsp + 0x28], r8
mov qword [rbp + 0x78], rdx
mov qword [rbp + 0x68], rcx
mov rax, qword [rbp + 0x370]
mov qword [rsp + 0x38], rax
xor r12d, r12d
mov dword [rsp + 0x40], r12d
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
lea r8d, [r12 + 0x12]
lea rdx, str.Sec_WebSocket_Key1
lea rcx, [rsp + 0x68]
call fcn.14000ed90
nop
mov rbx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], r12b
jne 0x14003fda4
nop dword [rax]
nop dword [rax + rax]
lea r9, [r15 + 0x20]
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
setae r8b
cmovae rdx, qword [rsp + 0x68]
mov r13, qword [rsp + 0x78]
add r13, rdx
lea rbx, [rsp + 0x68]
test r8b, r8b
cmovne rbx, qword [rsp + 0x68]
cmp qword [r9 + 0x18], 0x10
jb 0x14003fd21
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x14003fd2b
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x14003fd76
cmp rbx, r13
je 0x14003fd86
movzx esi, byte [rbx]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov edi, eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp edi, eax
jl 0x14003fd7b
movzx esi, byte [r14]
movzx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov edi, eax
mov ecx, esi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp edi, eax
jl 0x14003fd86
inc r14
inc rbx
cmp r14, r12
jne 0x14003fd30
cmp rbx, r13
je 0x14003fd86
mov r15, qword [r15 + 0x10]
mov rbx, qword [rsp + 0x20]
jmp 0x14003fd91
mov rbx, r15
mov qword [rsp + 0x20], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x14003fce0
mov rsi, qword [rsp + 0x28]
xor r12d, r12d
lea rdi, [0x14007c0a8]
mov qword [rbp + 0x160], rdi
cmp byte [rbx + 0x19], 0
jne 0x14003fdd4
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x68]
call fcn.140005370
test al, al
jne 0x14003fdd4
cmp rbx, qword [rsi + 0x20]
lea rdx, [rbx + 0x40]
jne 0x14003fdd7
mov rdx, rdi
lea r8, [rbp + 0x2d0]
call fcn.1400426a0
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0x10
jb 0x14003fe23
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003fe1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003fe1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key2
lea rcx, [rbp - 0x78]
call fcn.14000ed90
nop
mov rbx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], 0
jne 0x14003ff2b
lea r9, [r15 + 0x20]
lea rdx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
setae r8b
cmovae rdx, qword [rbp - 0x78]
mov r13, qword [rbp - 0x68]
add r13, rdx
lea rsi, [rbp - 0x78]
test r8b, r8b
cmovne rsi, qword [rbp - 0x78]
cmp qword [r9 + 0x18], 0x10
jb 0x14003fe9d
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x14003fea7
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x14003fef6
nop dword [rax]
cmp rsi, r13
je 0x14003ff06
movzx edi, byte [rsi]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x14003fefb
movzx edi, byte [r14]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x14003ff06
inc r14
inc rsi
cmp r14, r12
jne 0x14003feb0
cmp rsi, r13
je 0x14003ff06
mov r15, qword [r15 + 0x10]
mov rbx, qword [rsp + 0x20]
jmp 0x14003ff11
mov rbx, r15
mov qword [rsp + 0x20], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x14003fe61
lea rdi, [0x14007c0a8]
mov rsi, qword [rsp + 0x28]
xor r12d, r12d
cmp byte [rbx + 0x19], 0
jne 0x14003ff4c
lea r8, [rbx + 0x20]
lea rdx, [rbp - 0x78]
call fcn.140005370
test al, al
jne 0x14003ff4c
cmp rbx, qword [rsi + 0x20]
lea rdx, [rbx + 0x40]
jne 0x14003ff4f
mov rdx, rdi
lea r8, [rbp + 0x2d4]
call fcn.1400426a0
nop
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x14003ff9a
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003ff95
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003ff95
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rsp + 0x48]
call fcn.14000ed90
mov rbx, qword [rsi + 0x20]
mov qword [rsp + 0x20], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], 0
jne 0x1400400a4
nop dword [rax + rax]
lea r9, [r15 + 0x20]
lea r13, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
setae r8b
cmovae r13, qword [rsp + 0x48]
add r13, qword [rsp + 0x58]
lea rsi, [rsp + 0x48]
test r8b, r8b
cmovne rsi, qword [rsp + 0x48]
cmp qword [r9 + 0x18], 0x10
jb 0x14004001f
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x140040029
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x140040076
nop
cmp rsi, r13
je 0x140040086
movzx edi, byte [rsi]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x14004007b
movzx edi, byte [r14]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x140040086
inc r14
inc rsi
cmp r14, r12
jne 0x140040030
cmp rsi, r13
je 0x140040086
mov r15, qword [r15 + 0x10]
mov rbx, qword [rsp + 0x20]
jmp 0x140040091
mov rbx, r15
mov qword [rsp + 0x20], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x14003ffe0
mov rsi, qword [rsp + 0x28]
xor r12d, r12d
cmp byte [rbx + 0x19], 0
jne 0x1400400c8
lea r8, [rbx + 0x20]
lea rdx, [rsp + 0x48]
call fcn.140005370
test al, al
jne 0x1400400c8
cmp rbx, qword [rsi + 0x20]
je 0x1400400c8
add rbx, 0x40
jmp 0x1400400cf
lea rbx, [0x14007c0a8]
mov rax, qword [rsp + 0x60]
cmp rax, 0x10
jb 0x140040110
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004010b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004010b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], 0
mov rax, qword [rbx + 0x10]
mov r8d, 8
cmp qword [rbx + 0x18], 0x10
jb 0x140040143
cmp rax, r8
cmovb r8, rax
add r8, qword [rbx]
mov rbx, qword [rbx]
jmp 0x14004014d
cmp rax, r8
cmovb r8, rax
add r8, rbx
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x2d8]
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movups xmmword [rbp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x58], xmm1
mov r8d, select
lea rdx, [rbp + 0x2d0]
lea rcx, [rbp + 0x48]
call fcn.14000ed90
nop
mov qword [rbp + 0x170], 0
mov dword [rbp + 0x178], 0x67452301
mov dword [rbp + 0x17c], 0xefcdab89
mov dword [rbp + 0x180], 0x98badcfe
mov dword [rbp + 0x184], 0x10325476
lea rdx, [rbp + 0x48]
cmp qword [rbp + 0x60], 0x10
cmovae rdx, qword [rbp + 0x48]
mov r8, qword [rbp + 0x58]
lea rcx, [rbp + 0x170]
call fcn.140010a80
lea rdx, [rbp + 0x2e0]
lea rcx, [rbp + 0x170]
call fcn.140010b90
xorps xmm0, xmm0
movups xmmword [rbp - 0x58], xmm0
movdqa xmm1, xmmword [0x14006aba0]
movdqu xmmword [rbp - 0x48], xmm1
mov byte [rbp - 0x58], 0
mov dword [rsp + 0x40], 1
xor r8d, r8d
lea edx, [r8 + 0x10]
lea rcx, [rbp - 0x58]
call fcn.140019130
lea rax, [rbp - 0x58]
cmp qword [rbp - 0x40], 0x10
cmovae rax, qword [rbp - 0x58]
movups xmm0, xmmword [rbp + 0x2e0]
movups xmmword [rax], xmm0
xorps xmm1, xmm1
movups xmmword [rbp + 0x80], xmm1
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x90], xmm0
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Sec_WebSocket_Key3
lea rcx, [rbp + 0x80]
call fcn.14000ed90
nop
lea r8, [rbp - 0x58]
lea rdx, [rbp + 0x80]
mov r14, qword [rsp + 0x38]
mov rcx, r14
call fcn.140006ab0
nop
mov rdx, qword [rbp + 0x98]
cmp rdx, 0x10
jb 0x1400402bd
inc rdx
mov rcx, qword [rbp + 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400402b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400402b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp + 0x90], xmm0
mov byte [rbp + 0x80], 0
mov rdx, qword [rbp - 0x40]
cmp rdx, 0x10
jb 0x140040312
inc rdx
mov rcx, qword [rbp - 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004030d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004030d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x58], 0
mov rdx, qword [rbp + 0x60]
cmp rdx, 0x10
jb 0x140040361
inc rdx
mov rcx, qword [rbp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004035c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004035c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x130], xmm1
mov r8d, 9
lea rdx, str.WebSocket
lea rcx, [rbp + 0x120]
call fcn.14000ed90
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
mov r8d, 7
lea rdx, [0x140067e40]
lea rcx, [rbp + 0xa0]
call fcn.14000ed90
nop
lea r8, [rbp + 0x120]
lea rdx, [rbp + 0xa0]
mov rcx, r14
call fcn.140006ab0
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x14004041a
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040415
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040415
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp + 0xb0], xmm0
mov byte [rbp + 0xa0], 0
mov rdx, qword [rbp + 0x138]
cmp rdx, 0x10
jb 0x140040475
inc rdx
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040470
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040470
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
mov r8d, 7
lea rdx, [0x140067e40]
lea rcx, [rbp + 0x28]
call fcn.14000ed90
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xd0], xmm1
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rbp + 0xc0]
call fcn.14000ed90
nop
lea r8, [rbp + 0x28]
lea rdx, [rbp + 0xc0]
mov rcx, r14
call fcn.140006ab0
nop
mov rdx, qword [rbp + 0xd8]
cmp rdx, 0x10
jb 0x140040522
inc rdx
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004051d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004051d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp + 0xd0], xmm0
mov byte [rbp + 0xc0], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140040577
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040572
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040572
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
mov r8d, shutdown
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp - 0x38]
call fcn.14000ed90
lea rdi, [r14 + 0x20]
mov qword [rsp + 0x20], rdi
mov rbx, qword [rdi]
mov qword [rsp + 0x30], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], 0
jne 0x140040689
nop dword [rax]
lea r9, [r15 + 0x20]
lea rdx, [rbp - 0x38]
cmp qword [rbp - 0x20], 0x10
setae r8b
cmovae rdx, qword [rbp - 0x38]
mov r13, qword [rbp - 0x28]
add r13, rdx
lea rsi, [rbp - 0x38]
test r8b, r8b
cmovne rsi, qword [rbp - 0x38]
cmp qword [r9 + 0x18], 0x10
jb 0x1400405fc
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x140040606
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x140040656
nop dword [rax + rax]
cmp rsi, r13
je 0x140040666
movzx edi, byte [rsi]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x14004065b
movzx edi, byte [r14]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x140040666
inc r14
inc rsi
cmp r14, r12
jne 0x140040610
cmp rsi, r13
je 0x140040666
mov r15, qword [r15 + 0x10]
mov rbx, qword [rsp + 0x30]
jmp 0x140040671
mov rbx, r15
mov qword [rsp + 0x30], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x1400405c0
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
xor r12d, r12d
cmp byte [rbx + 0x19], 0
jne 0x1400406ab
lea r8, [rbx + 0x20]
lea rdx, [rbp - 0x38]
call fcn.140005370
test al, al
jne 0x1400406ab
cmp rbx, qword [rdi]
je 0x1400406ab
add rbx, 0x50
jmp 0x1400406b2
lea rbx, [0x14007c0b8]
mov rbx, qword [rbx]
mov rax, qword [rbp - 0x20]
cmp rax, 0x10
jb 0x1400406f4
lea rdx, [rax + 1]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400406ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400406ef
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
test rbx, rbx
jne 0x140040910
xorps xmm0, xmm0
movups xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r12
mov qword [rbp], r12
lea r8d, [rbx + 6]
lea rdx, str.Origin
lea rcx, [rbp - 0x18]
call fcn.14000ed90
nop
mov rdi, qword [rsp + 0x28]
mov rbx, qword [rdi + 0x20]
mov qword [rsp + 0x30], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], 0
jne 0x140040804
nop
lea r9, [r15 + 0x20]
lea rdx, [rbp - 0x18]
cmp qword [rbp], 0x10
setae r8b
cmovae rdx, qword [rbp - 0x18]
mov r13, qword [rbp - 8]
add r13, rdx
lea rsi, [rbp - 0x18]
test r8b, r8b
cmovne rsi, qword [rbp - 0x18]
cmp qword [r9 + 0x18], 0x10
jb 0x14004077c
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x140040786
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x1400407d6
nop dword [rax + rax]
cmp rsi, r13
je 0x1400407e6
movzx edi, byte [rsi]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x1400407db
movzx edi, byte [r14]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x1400407e6
inc r14
inc rsi
cmp r14, r12
jne 0x140040790
cmp rsi, r13
je 0x1400407e6
mov r15, qword [r15 + 0x10]
mov rbx, qword [rsp + 0x30]
jmp 0x1400407f1
mov rbx, r15
mov qword [rsp + 0x30], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x140040740
mov rdi, qword [rsp + 0x28]
xor r12d, r12d
cmp byte [rbx + 0x19], 0
jne 0x14004082c
lea r8, [rbx + 0x20]
lea rdx, [rbp - 0x18]
call fcn.140005370
test al, al
jne 0x14004082c
cmp rbx, qword [rdi + 0x20]
je 0x14004082c
lea rax, [rbx + 0x40]
mov qword [rbp + 0x160], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf0], xmm1
mov r8d, shutdown
lea rdx, str.Sec_WebSocket_Origin
lea rcx, [rbp + 0xe0]
call fcn.14000ed90
nop
mov r8, qword [rbp + 0x160]
lea rdx, [rbp + 0xe0]
mov r14, qword [rsp + 0x38]
mov rcx, r14
call fcn.140006ab0
nop
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0x10
jb 0x1400408bb
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400408b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400408b6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp + 0xf0], xmm0
mov byte [rbp + 0xe0], 0
mov rdx, qword [rbp]
cmp rdx, 0x10
jb 0x140040910
inc rdx
mov rcx, qword [rbp - 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004090b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004090b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], r12
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rbp + 8]
call fcn.14000ed90
mov rsi, qword [rsp + 0x20]
mov rbx, qword [rsi]
mov qword [rbp + 0x160], rbx
mov r15, qword [rbx + 8]
cmp byte [r15 + 0x19], 0
jne 0x140040a1d
lea r9, [r15 + 0x20]
lea r13, [rbp + 8]
cmp qword [rbp + 0x20], 0x10
setae r8b
cmovae r13, qword [rbp + 8]
add r13, qword [rbp + 0x18]
lea rsi, [rbp + 8]
test r8b, r8b
cmovne rsi, qword [rbp + 8]
cmp qword [r9 + 0x18], 0x10
jb 0x14004098c
mov r12, qword [r9]
mov r14, r12
add r12, qword [r9 + 0x10]
jmp 0x140040996
mov r12, qword [r9 + 0x10]
add r12, r9
mov r14, r9
cmp r14, r12
je 0x1400409e6
nop dword [rax + rax]
cmp rsi, r13
je 0x1400409f8
movzx edi, byte [rsi]
movzx ecx, byte [r14]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x1400409eb
movzx edi, byte [r14]
movzx ecx, byte [rsi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov ebx, eax
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
cmp ebx, eax
jl 0x1400409f8
inc r14
inc rsi
cmp r14, r12
jne 0x1400409a0
cmp rsi, r13
je 0x1400409f8
mov r15, qword [r15 + 0x10]
mov rbx, qword [rbp + 0x160]
jmp 0x140040a05
mov rbx, r15
mov qword [rbp + 0x160], rbx
mov r15, qword [r15]
cmp byte [r15 + 0x19], 0
je 0x140040953
mov rsi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x38]
xor r12d, r12d
cmp byte [rbx + 0x19], 0
jne 0x140040a3f
lea r8, [rbx + 0x20]
lea rdx, [rbp + 8]
call fcn.140005370
test al, al
jne 0x140040a3f
cmp rbx, qword [rsi]
je 0x140040a3f
add rbx, 0x50
jmp 0x140040a46
lea rbx, [0x14007c0b8]
mov rbx, qword [rbx]
mov rax, qword [rbp + 0x20]
cmp rax, 0x10
jb 0x140040a88
lea rdx, [rax + 1]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040a83
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040a83
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
test rbx, rbx
jne 0x140040d1f
xorps xmm0, xmm0
movups xmmword [rbp + 0x160], xmm0
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
mov r8, qword [rsp + 0x28]
lea rdx, [rbp + 0x160]
call qword [rax + 0x60]
nop
mov rbx, qword [rbp + 0x160]
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp + 0x1d0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x1d0]
call fcn.140018a00
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140040ae7
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp + 0x1e0]
call fcn.14002efe0
lea rdi, [rbx + 0x20]
lea rdx, [0x140065130]
mov rcx, rax
call fcn.1400218c0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x140040b18
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call fcn.14002efe0
mov eax, 0x50
mov ecx, 0x1bb
cmp byte [rbx + 0x62], 0
cmovne ax, cx
cmp word [rbx + 0x60], ax
je 0x140040b5b
lea rdx, [0x14006512c]
lea rcx, [rbp + 0x1e0]
call fcn.1400218c0
movzx edx, word [rbx + 0x60]
mov rcx, rax
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]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x140040b6d
mov rdx, qword [rdx]
lea rcx, [rbp + 0x1e0]
call fcn.14002efe0
lea rdx, [rbp + 0x140]
lea rcx, [rbp + 0x1e8]
call fcn.14001ce10
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.14001cd60
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
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x110], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Location
lea rcx, [rbp + 0x100]
call fcn.14000ed90
nop
lea r8, [rbp + 0x140]
lea rdx, [rbp + 0x100]
mov rcx, r14
call fcn.140006ab0
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x140040c8b
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040c86
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040c86
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
movdqa xmm0, xmmword [0x14006aba0]
movdqu xmmword [rbp + 0x110], xmm0
mov byte [rbp + 0x100], 0
mov rdx, qword [rbp + 0x158]
cmp rdx, 0x10
jb 0x140040ce7
inc rdx
mov rcx, qword [rbp + 0x140]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040ce1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040ce1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
nop
mov rbx, qword [rbp + 0x168]
test rbx, rbx
je 0x140040d1f
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140040d1f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x140040d1f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
mov rbx, qword [rbp + 0x70]
cmp qword [rbx + 0x10], 0
je 0x140040dbd
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
mov r8d, reloc.WS2_32.dll_shutdown
lea rdx, str.Sec_WebSocket_Protocol
lea rcx, [rbp + 0x28]
call fcn.14000ed90
nop
lea rdx, [rbp + 0x28]
mov rcx, rsi
call fcn.1400188c0
cmp rax, rbx
je 0x140040d7f
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140040d73
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.14001d060
nop
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140040dbd
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040db8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040db8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14005ca90
mov rax, qword [rbp + 0x78]
mov dword [rax], r12d
lea rcx, [0x14007c068]
mov qword [rax + 8], rcx
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.14005ca70
add rsp, 0x408
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret