Function at 0x140084054
Capabilities:
Check for software breakpoints

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x98
mov rax, qword [0x1402ccee0]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rax, qword [rbp + 0x77]
mov rbx, r8
xor r8d, r8d
mov qword [rbp - 0x39], rdx
mov r12, rcx
mov dword [rbp - 0x41], r8d
mov rcx, qword [rbp + 0x7f]
mov r14d, r9d
mov rdi, qword [rax]
mov r15, rdx
mov qword [rbp - 0x31], rcx
mov r13d, r8d
test rdi, rdi
je 0x1400849b9
cmp qword [rdi + 0xe0], r8
je 0x1400849b9
cmp dword [rdi], r8d
je 0x1400840e4
cmp dword [rdi + 0xa8], r8d
jne 0x140084104
mov edx, dword [rbx]
mov r9, rdi
mov qword [rsp + 0x20], rcx
mov r8d, r14d
mov rcx, r15
call fcn.140083c00
mov dword [rbx], eax
jmp 0x1400849b9
cmp dword [rdi + 0xa8], r8d
jne 0x140084104
mov rcx, qword [rdi + 0x60]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x80]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor r8d, r8d
mov rax, qword [rdi + 0xe0]
mov rsi, r8
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x14008411a
mov rsi, qword [rcx]
cmp dword [rdi + 0xa8], r8d
jne 0x14008413e
mov rcx, qword [rdi + 0x60]
xor r8d, r8d
mov rcx, qword [rcx + 0x80]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor r8d, r8d
test rsi, rsi
jne 0x14008414b
mov dword [rbx], r14d
jmp 0x1400849b9
cmp dword [rdi + 0x80], r8d
jne 0x1400848c9
mov edx, dword [rbx]
mov eax, r14d
sub eax, edx
cmp eax, 4
jl 0x1400849a0
lea r9d, [rax - 4]
test r9d, r9d
js 0x1400849a0
mov r8d, edx
xor ecx, ecx
movsxd rax, r8d
cmp qword [rdi + 0xb8], rcx
je 0x14008418e
cmp byte [rax + r15], cl
je 0x140084195
jmp 0x1400841c7
cmp byte [rax + r15], 0xd
jne 0x1400841c7
lea eax, [rdx + 1]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xa
jne 0x1400841c5
lea eax, [rdx + 2]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xd
jne 0x1400841c5
lea eax, [rdx + 3]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xa
je 0x1400841d8
xor ecx, ecx
inc r13d
inc r8d
cmp r13d, r9d
jg 0x1400849a0
jmp 0x14008417a
xor r8d, r8d
test r12, r12
je 0x1400841f2
lea rdx, [rdi + 0xc0]
mov rcx, r12
call fcn.140076e3c
xor r8d, r8d
or dword [rdi + 0x9c], 0xffffffff
lea eax, [r13 + 4]
mov dword [rbp - 0x3d], eax
mov dword [rdi + 0xb0], eax
mov dword [rdi + 0xa0], 1
mov dword [rdi + 0x80], 1
cmp qword [rdi + 0xb8], r8
jne 0x14008423d
mov edx, dword [rbx]
mov r8d, r14d
sub r8d, dword [rbx]
mov rcx, r15
call fcn.14007b5f4
mov qword [rdi + 0xb8], rax
xor r8d, r8d
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x1400849a0
cmp qword [rcx], r8
jne 0x14008426b
cmp dword [rcx + 0x2c], 0xffffffff
je 0x14008426b
cmp dword [rdi + 0xa8], 1
jne 0x14008426b
mov eax, 0x190
jmp 0x1400849bb
mov eax, 0x1c
lea r8, [rdi + 0xc0]
xor edx, edx
lea r15d, [rax - 0xc]
cmp word [r8], dx
je 0x1400842a0
cmp word [r8], 0x17
lea edx, [rax + 2]
mov r9d, r15d
cmove r9d, eax
add rcx, 0x78
call section..text
xor edx, edx
lea eax, [rdx + 0x1c]
lea r8, [rdi + 0xf0]
cmp word [r8], dx
je 0x1400842d1
cmp word [r8], 0x17
mov edx, 0x1e
mov rcx, qword [rdi + 0xb8]
cmove r15, rax
add rcx, 0x96
mov r9, r15
call section..text
mov rax, qword [rdi + 0xb8]
mov r15, qword [rax + 0x68]
test r15, r15
je 0x1400843e0
cmp dword [r15 + 8], 0x11
jne 0x140084336
mov rcx, qword [r15]
lea rdx, str.transfer_encoding
mov r8d, reloc.WS2_32.dll_recvfrom
call fcn.1401b4b9c
test eax, eax
jne 0x140084336
cmp dword [r15 + 0x18], 7
jne 0x140084336
mov rcx, qword [r15 + 0x10]
lea r8d, [rax + 7]
lea rdx, str.chunked
call fcn.1401b4b9c
xor edx, edx
test eax, eax
jne 0x140084336
mov dword [rdi + 0xa0], edx
mov dword [rdi + 0x88], 1
cmp dword [r15 + 8], 0xa
jne 0x14008437f
mov rcx, qword [r15]
lea rdx, str.connection
mov r8d, 0xa
call fcn.1401b4b9c
test eax, eax
jne 0x14008437f
cmp dword [r15 + 0x18], 5
jne 0x14008437f
mov rcx, qword [r15 + 0x10]
lea r8d, [rax + 5]
lea rdx, str.close
call fcn.1401b4b9c
test eax, eax
jne 0x14008437f
mov dword [rdi + 0x98], 1
cmp dword [r15 + 8], 0xe
jne 0x1400843c7
mov rcx, qword [r15]
lea rdx, str.content_length
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.1401b4b9c
xor edx, edx
test eax, eax
jne 0x1400843c7
mov dword [rdi + 0xa0], edx
movsxd rcx, dword [r15 + 0x18]
mov rax, qword [r15 + 0x10]
mov byte [rcx + rax], dl
mov rcx, qword [r15 + 0x10]
call fcn.1401addd4
xor edx, edx
mov dword [rdi + 0x9c], eax
test eax, eax
js 0x1400843d0
mov r15, qword [r15 + 0x20]
jmp 0x1400842dc
mov dword [rdi + 0x9c], edx
mov eax, 0xfa1
jmp 0x1400849bb
mov rcx, qword [rdi + 0xb8]
mov rcx, qword [rcx + 0x40]
call fcn.1401b7408
xor r8d, r8d
comisd xmm0, xmmword [0x1402acac0]
jbe 0x14008441f
cmp dword [rdi + 0x88], r8d
jne 0x14008441f
cmp dword [rdi + 0x98], r8d
jne 0x14008441f
cmp dword [rdi + 0xa0], r8d
je 0x14008441f
mov qword [rdi + 0x9c], r8
mov r11, qword [rdi + 0xb8]
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x1400845cc
mov rax, qword [rsi + 0x78]
test rax, rax
jne 0x14008449e
mov r10, qword [rsi + 0x90]
mov dword [rbp - 0x3d], r8d
test r10, r10
je 0x140084491
lea rax, [rdi + 0x10c]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsi + 0x58]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x3d]
mov dword [rsp + 0x30], listen
mov dword [rsp + 0x28], r8d
mov r8, r11
mov qword [rsp + 0x20], rax
call r10
mov eax, dword [rdi + 0xb0]
add dword [rbx], eax
jmp 0x1400849b9
cmp ecx, 0x65
jne 0x140084599
cmp qword [rax + 0x10], r8
je 0x140084599
lea r8d, [rcx - 0x51]
xor r9d, r9d
mov rcx, r11
lea rdx, str.Sec_WebSocket_Accept
call fcn.14007cfd0
xor r15d, r15d
test rax, rax
je 0x14008457b
mov rcx, qword [rsi + 0x78]
mov r8, qword [rcx + 0x10]
sub r8, rax
movzx ecx, byte [rax]
movzx edx, byte [rax + r8]
sub ecx, edx
jne 0x1400844f1
inc rax
test edx, edx
jne 0x1400844de
test ecx, ecx
jne 0x14008457b
mov r14d, dword [rdi + 0xb0]
lea rcx, [rdi + 0x28]
lea r8, [rbp - 0x29]
mov dword [rbp - 0x3d], r15d
xor edx, edx
call fcn.140082988
mov rcx, rsi
mov dword [rdi], 1
call fcn.140083890
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140084573
mov r8, qword [rdi + 0xb8]
lea rax, [rdi + 0x10c]
mov qword [rsp + 0x48], rax
xor r9d, r9d
mov rax, qword [rsi + 0x58]
xor edx, edx
mov qword [rsp + 0x40], rax
mov rcx, rdi
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x3d]
mov dword [rsp + 0x30], listen
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call r10
add dword [rbx], r14d
jmp 0x1400849b9
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14008458c
call fcn.140075094
mov rcx, rdi
call fcn.1400829f0
jmp 0x1400849b9
cmp qword [rsi + 0x80], r8
jne 0x1400845e4
mov eax, dword [rdi + 0xb0]
mov dword [rdi + 0x80], r8d
add dword [rbx], eax
mov rcx, qword [rdi + 0xb8]
call fcn.14007b528
xor r8d, r8d
mov qword [rdi + 0xb8], r8
jmp 0x1400849a0
cmp ecx, 0xcc
je 0x1400845dc
cmp ecx, 0x130
jne 0x1400845e4
and qword [rdi + 0x9c], 0
cmp dword [rdi + 0xa8], r8d
je 0x140084606
cmp dword [rdi + 0x9c], 0xffffffff
jne 0x140084606
cmp dword [rdi + 0x88], r8d
jne 0x140084606
mov dword [rdi + 0x9c], r8d
mov rdx, qword [rdi + 0xe0]
mov rax, r8
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x14008461c
mov rax, qword [rcx]
test rdx, rdx
je 0x14008463e
test rax, rax
je 0x14008463e
cmp dword [rax + 0x88], r8d
je 0x14008463e
and qword [rdi + 0x9c], 0
mov dword [rdi + 0x88], r8d
mov eax, dword [rdi + 0x9c]
test eax, eax
jne 0x1400846af
mov dword [rdi + 0x78], 1
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x1400846a0
lea rax, [rdi + 0x10c]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor edx, edx
mov rax, qword [rsi + 0x58]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x41]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r8d
mov r8, r11
mov qword [rsp + 0x20], rax
call r10
xor r8d, r8d
lea eax, [r13 + 4]
add dword [rbx], eax
mov dword [rdi + 0x78], r8d
jmp 0x140084980
cmp dword [rdi + 0x88], r8d
jne 0x1400847ed
cmp eax, 0xffffffff
je 0x14008475c
mov eax, r14d
sub eax, dword [rbx]
sub eax, r13d
sub eax, 4
cmp eax, dword [rdi + 0x9c]
jl 0x14008475c
mov dword [rdi + 0x78], 1
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140084744
mov r9, qword [rbp - 0x39]
lea rcx, [rdi + 0x10c]
mov qword [rsp + 0x48], rcx
add r9, 4
movsxd rax, r13d
mov r8, r11
add r9, rax
xor edx, edx
mov rax, qword [rsi + 0x58]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x9c]
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
call r10
xor r8d, r8d
mov eax, dword [rbp - 0x41]
test eax, eax
jne 0x140084751
mov eax, dword [rdi + 0x9c]
add eax, 4
add eax, r13d
jmp 0x1400846a4
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x1400847bf
sub r14d, dword [rbx]
lea rcx, [rdi + 0x10c]
mov r9, qword [rbp - 0x39]
sub r14d, r13d
mov qword [rsp + 0x48], rcx
add r9, 4
movsxd rax, r13d
sub r14d, 4
add r9, rax
xor edx, edx
mov rax, qword [rsi + 0x58]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x41]
mov dword [rsp + 0x30], r8d
mov r8, r11
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rax
call r10
xor r8d, r8d
test r12, r12
je 0x1400847d0
cmp qword [r12 + 0x60], 0xffffffffffffffff
je 0x1400849a0
mov dword [rdi + 0xb0], r8d
mov ecx, dword [rbp - 0x41]
lea eax, [rcx + 4]
add eax, r13d
mov dword [rbx], eax
sub dword [rdi + 0x9c], ecx
jmp 0x1400848a2
mov r15, qword [rbp - 0x39]
cmp qword [rdi + 0x90], r8
jne 0x14008486f
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x14008486f
movsxd rax, r13d
lea rcx, [rdi + 0x10c]
mov qword [rsp + 0x48], rcx
lea r9, [r15 + 4]
add r9, rax
xor edx, edx
mov rax, qword [rsi + 0x58]
mov rcx, rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x41]
mov dword [rsp + 0x30], r8d
mov dword [rsp + 0x28], r8d
mov r8, r11
mov qword [rsp + 0x20], rax
call r10
xor eax, eax
cmp dword [rdi + 0x80], eax
jne 0x14008485e
mov eax, dword [rbp - 0x3d]
jmp 0x1400840dd
test r12, r12
je 0x14008486f
cmp qword [r12 + 0x60], 0xffffffffffffffff
je 0x1400849bb
sub r14d, dword [rbx]
lea r9, [rbp - 0x41]
movsxd r8, r13d
sub r14d, r13d
add r8, 4
sub r14d, 4
add r8, r15
mov dword [rsp + 0x20], r14d
mov rdx, rdi
mov rcx, r12
call fcn.1400831cc
mov ecx, dword [rbp - 0x41]
add ecx, 4
add ecx, r13d
mov dword [rbx], ecx
mov rcx, qword [rdi + 0xb8]
call fcn.14007c86c
mov rcx, qword [rdi + 0xb8]
mov rbx, rax
call fcn.14007b528
mov qword [rdi + 0xb8], rbx
jmp 0x1400849a0
cmp dword [rdi + 0x88], r8d
jne 0x14008498a
mov ecx, dword [rdi + 0xa0]
mov r15d, r8d
test ecx, ecx
jne 0x1400848f2
mov eax, r14d
sub eax, dword [rbx]
cmp eax, dword [rdi + 0x9c]
setge r15b
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140084955
sub r14d, dword [rbx]
test ecx, ecx
jne 0x140084912
mov eax, dword [rdi + 0x9c]
cmp r14d, eax
cmovge r14d, eax
mov r9, qword [rbp - 0x39]
lea rax, [rdi + 0x10c]
mov r8, qword [rdi + 0xb8]
xor edx, edx
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], rbx
call r10
xor r8d, r8d
test r12, r12
je 0x140084962
cmp qword [r12 + 0x60], 0xffffffffffffffff
je 0x1400849a0
cmp dword [rdi + 0xa0], r8d
jne 0x1400849a0
mov eax, dword [rbx]
sub dword [rdi + 0x9c], eax
mov eax, dword [rdi + 0x9c]
test r15d, r15d
je 0x1400849a0
add dword [rbx], eax
mov rdx, rdi
call fcn.140082f20
jmp 0x1400849a0
mov r9, rbx
mov dword [rsp + 0x20], r14d
mov r8, r15
mov rdx, rdi
mov rcx, r12
call fcn.1400831cc
test r12, r12
je 0x1400849ad
cmp qword [r12 + 0x60], 0xffffffffffffffff
je 0x1400849b9
mov rcx, qword [rbp - 0x31]
mov eax, dword [rdi + 0x10c]
mov dword [rcx], eax
xor eax, eax
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.1401a5d00
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret