Function at 0x140099644
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 [0x1402aaed0]
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 0x140099fa9
cmp qword [rdi + 0xe0], r8
je 0x140099fa9
cmp dword [rdi], r8d
je 0x1400996d4
cmp dword [rdi + 0xa8], r8d
jne 0x1400996f4
mov edx, dword [rbx]
mov r9, rdi
mov qword [rsp + 0x20], rcx
mov r8d, r14d
mov rcx, r15
call fcn.1400991f0
mov dword [rbx], eax
jmp 0x140099fa9
cmp dword [rdi + 0xa8], r8d
jne 0x1400996f4
mov rcx, qword [rdi + 0x60]
or edx, 0xffffffff
mov rcx, qword [rcx + 0x88]
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 0x14009970a
mov rsi, qword [rcx]
cmp dword [rdi + 0xa8], r8d
jne 0x14009972e
mov rcx, qword [rdi + 0x60]
xor r8d, r8d
mov rcx, qword [rcx + 0x88]
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor r8d, r8d
test rsi, rsi
jne 0x14009973b
mov dword [rbx], r14d
jmp 0x140099fa9
cmp dword [rdi + 0x80], r8d
jne 0x140099eb9
mov edx, dword [rbx]
mov eax, r14d
sub eax, edx
cmp eax, 4
jl 0x140099f90
lea r9d, [rax - 4]
test r9d, r9d
js 0x140099f90
mov r8d, edx
xor ecx, ecx
movsxd rax, r8d
cmp qword [rdi + 0xb8], rcx
je 0x14009977e
cmp byte [rax + r15], cl
je 0x140099785
jmp 0x1400997b7
cmp byte [rax + r15], 0xd
jne 0x1400997b7
lea eax, [rdx + 1]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xa
jne 0x1400997b5
lea eax, [rdx + 2]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xd
jne 0x1400997b5
lea eax, [rdx + 3]
add eax, r13d
movsxd rcx, eax
cmp byte [rcx + r15], 0xa
je 0x1400997c8
xor ecx, ecx
inc r13d
inc r8d
cmp r13d, r9d
jg 0x140099f90
jmp 0x14009976a
xor r8d, r8d
test r12, r12
je 0x1400997e2
lea rdx, [rdi + 0xc0]
mov rcx, r12
call fcn.140089464
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 0x14009982d
mov edx, dword [rbx]
mov r8d, r14d
sub r8d, dword [rbx]
mov rcx, r15
call fcn.14008fbdc
mov qword [rdi + 0xb8], rax
xor r8d, r8d
mov rcx, qword [rdi + 0xb8]
test rcx, rcx
je 0x140099f90
cmp qword [rcx], r8
jne 0x14009985b
cmp dword [rcx + 0x2c], 0xffffffff
je 0x14009985b
cmp dword [rdi + 0xa8], 1
jne 0x14009985b
mov eax, 0x190
jmp 0x140099fab
mov eax, 0x1c
lea r8, [rdi + 0xc0]
xor edx, edx
lea r15d, [rax - 0xc]
cmp word [r8], dx
je 0x140099890
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 0x1400998c1
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 0x1400999d0
cmp dword [r15 + 8], 0x11
jne 0x140099926
mov rcx, qword [r15]
lea rdx, str.transfer_encoding
mov r8d, reloc.WS2_32.dll_recvfrom
call fcn.1401ca69c
test eax, eax
jne 0x140099926
cmp dword [r15 + 0x18], 7
jne 0x140099926
mov rcx, qword [r15 + 0x10]
lea r8d, [rax + 7]
lea rdx, str.chunked
call fcn.1401ca69c
xor edx, edx
test eax, eax
jne 0x140099926
mov dword [rdi + 0xa0], edx
mov dword [rdi + 0x88], 1
cmp dword [r15 + 8], 0xa
jne 0x14009996f
mov rcx, qword [r15]
lea rdx, str.connection
mov r8d, 0xa
call fcn.1401ca69c
test eax, eax
jne 0x14009996f
cmp dword [r15 + 0x18], 5
jne 0x14009996f
mov rcx, qword [r15 + 0x10]
lea r8d, [rax + 5]
lea rdx, str.close
call fcn.1401ca69c
test eax, eax
jne 0x14009996f
mov dword [rdi + 0x98], 1
cmp dword [r15 + 8], 0xe
jne 0x1400999b7
mov rcx, qword [r15]
lea rdx, str.content_length
mov r8d, reloc.WS2_32.dll_ntohl
call fcn.1401ca69c
xor edx, edx
test eax, eax
jne 0x1400999b7
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.1401c21a4
xor edx, edx
mov dword [rdi + 0x9c], eax
test eax, eax
js 0x1400999c0
mov r15, qword [r15 + 0x20]
jmp 0x1400998cc
mov dword [rdi + 0x9c], edx
mov eax, 0xfa1
jmp 0x140099fab
mov rcx, qword [rdi + 0xb8]
mov rcx, qword [rcx + 0x40]
call fcn.1401cce80
xor r8d, r8d
comisd xmm0, xmmword [0x14028a270]
jbe 0x140099a0f
cmp dword [rdi + 0x88], r8d
jne 0x140099a0f
cmp dword [rdi + 0x98], r8d
jne 0x140099a0f
cmp dword [rdi + 0xa0], r8d
je 0x140099a0f
mov qword [rdi + 0x9c], r8
mov r11, qword [rdi + 0xb8]
mov ecx, dword [r11 + 0x2c]
lea eax, [rcx - 0x64]
cmp eax, 0x63
ja 0x140099bbc
mov rax, qword [rsi + 0x78]
test rax, rax
jne 0x140099a8e
mov r10, qword [rsi + 0x90]
mov dword [rbp - 0x3d], r8d
test r10, r10
je 0x140099a81
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], select
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 0x140099fa9
cmp ecx, 0x65
jne 0x140099b89
cmp qword [rax + 0x10], r8
je 0x140099b89
lea r8d, [rcx - 0x51]
xor r9d, r9d
mov rcx, r11
lea rdx, str.Sec_WebSocket_Accept
call fcn.1400915b8
xor r15d, r15d
test rax, rax
je 0x140099b6b
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 0x140099ae1
inc rax
test edx, edx
jne 0x140099ace
test ecx, ecx
jne 0x140099b6b
mov r14d, dword [rdi + 0xb0]
lea rcx, [rdi + 0x28]
lea r8, [rbp - 0x29]
mov dword [rbp - 0x3d], r15d
xor edx, edx
call fcn.140097f70
mov rcx, rsi
mov dword [rdi], 1
call fcn.140098e80
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099b63
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], select
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rax
call r10
add dword [rbx], r14d
jmp 0x140099fa9
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x140099b7c
call fcn.1400876a4
mov rcx, rdi
call fcn.140097fd8
jmp 0x140099fa9
cmp qword [rsi + 0x80], r8
jne 0x140099bd4
mov eax, dword [rdi + 0xb0]
mov dword [rdi + 0x80], r8d
add dword [rbx], eax
mov rcx, qword [rdi + 0xb8]
call fcn.14008fb10
xor r8d, r8d
mov qword [rdi + 0xb8], r8
jmp 0x140099f90
cmp ecx, 0xcc
je 0x140099bcc
cmp ecx, 0x130
jne 0x140099bd4
and qword [rdi + 0x9c], 0
cmp dword [rdi + 0xa8], r8d
je 0x140099bf6
cmp dword [rdi + 0x9c], 0xffffffff
jne 0x140099bf6
cmp dword [rdi + 0x88], r8d
jne 0x140099bf6
mov dword [rdi + 0x9c], r8d
mov rdx, qword [rdi + 0xe0]
mov rax, r8
mov rcx, qword [rdx + 0x18]
test rcx, rcx
je 0x140099c0c
mov rax, qword [rcx]
test rdx, rdx
je 0x140099c2e
test rax, rax
je 0x140099c2e
cmp dword [rax + 0x88], r8d
je 0x140099c2e
and qword [rdi + 0x9c], 0
mov dword [rdi + 0x88], r8d
mov eax, dword [rdi + 0x9c]
test eax, eax
jne 0x140099c9f
mov dword [rdi + 0x78], 1
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099c90
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 0x140099f70
cmp dword [rdi + 0x88], r8d
jne 0x140099ddd
cmp eax, 0xffffffff
je 0x140099d4c
mov eax, r14d
sub eax, dword [rbx]
sub eax, r13d
sub eax, 4
cmp eax, dword [rdi + 0x9c]
jl 0x140099d4c
mov dword [rdi + 0x78], 1
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099d34
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 0x140099d41
mov eax, dword [rdi + 0x9c]
add eax, 4
add eax, r13d
jmp 0x140099c94
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099daf
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 0x140099dc0
cmp qword [r12 + 0x68], 0xffffffffffffffff
je 0x140099f90
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 0x140099e92
mov r15, qword [rbp - 0x39]
cmp qword [rdi + 0x90], r8
jne 0x140099e5f
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099e5f
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 0x140099e4e
mov eax, dword [rbp - 0x3d]
jmp 0x1400996cd
test r12, r12
je 0x140099e5f
cmp qword [r12 + 0x68], 0xffffffffffffffff
je 0x140099fab
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.1400987bc
mov ecx, dword [rbp - 0x41]
add ecx, 4
add ecx, r13d
mov dword [rbx], ecx
mov rcx, qword [rdi + 0xb8]
call fcn.140090e54
mov rcx, qword [rdi + 0xb8]
mov rbx, rax
call fcn.14008fb10
mov qword [rdi + 0xb8], rbx
jmp 0x140099f90
cmp dword [rdi + 0x88], r8d
jne 0x140099f7a
mov ecx, dword [rdi + 0xa0]
mov r15d, r8d
test ecx, ecx
jne 0x140099ee2
mov eax, r14d
sub eax, dword [rbx]
cmp eax, dword [rdi + 0x9c]
setge r15b
mov r10, qword [rsi + 0x90]
test r10, r10
je 0x140099f45
sub r14d, dword [rbx]
test ecx, ecx
jne 0x140099f02
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 0x140099f52
cmp qword [r12 + 0x68], 0xffffffffffffffff
je 0x140099f90
cmp dword [rdi + 0xa0], r8d
jne 0x140099f90
mov eax, dword [rbx]
sub dword [rdi + 0x9c], eax
mov eax, dword [rdi + 0x9c]
test r15d, r15d
je 0x140099f90
add dword [rbx], eax
mov rdx, rdi
call fcn.140098510
jmp 0x140099f90
mov r9, rbx
mov dword [rsp + 0x20], r14d
mov r8, r15
mov rdx, rdi
mov rcx, r12
call fcn.1400987bc
test r12, r12
je 0x140099f9d
cmp qword [r12 + 0x68], 0xffffffffffffffff
je 0x140099fa9
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.1401b98c0
add rsp, 0x98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret