Function at 0x140122e50
Capabilities:
Check http status code

Disassembly:
push rbp
push r12
push r14
push r15
lea rbp, [rsp - 0x3f]
sub rsp, 0xa8
mov rax, qword [0x14032aa00]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rcx
mov qword [rbp - 0x19], r8
mov ecx, dword [rdx + 0x54]
mov r12, r9
mov r15, rdx
cmp ecx, 0x190
ja case.0x140122ebd.103
je case.0x140122ebd.103
lea eax, [rcx - 0x64]
cmp eax, 0xd0
ja case.0x140122ebd.103
lea r8, [0x140000000]
movzx eax, byte [r8 + rax + 0x12337c]
mov edx, dword [r8 + rax*4 + 0x123374]
add rdx, r8
jmp rdx
cmp ecx, 0x65
jne case.0x140122ebd.103
cmp dword [r15 + 0x50], 0xb
je 0x140122ee1
mov edx, 7
mov rcx, r12
call fcn.140088650
jmp 0x140123020
mov qword [rsp + 0xe0], rbx
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0x98], rdi
call fcn.14011e570
mov rdi, qword [r15]
mov rbx, rax
mov rsi, r15
test rdi, rdi
je 0x140122f47
movups xmm0, xmmword [rax + 0x3b0]
movaps xmmword [rbp - 0x39], xmm0
nop word [rax + rax]
lea rdx, [rdi + 0x20]
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x49]
call fcn.140104380
test al, al
je 0x140122f3b
mov rdi, qword [rdi + 0x10]
jmp 0x140122f42
mov rsi, rdi
mov rdi, qword [rdi + 8]
test rdi, rdi
jne 0x140122f20
mov qword [rsp + 0x90], r13
cmp rsi, r15
je 0x140123358
movups xmm0, xmmword [rbx + 0x3b0]
mov eax, 0x30
lea r8, [rsi + 0x20]
test rsi, rsi
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x49]
movaps xmmword [rbp - 0x39], xmm0
cmove r8, rax
call fcn.140104440
test al, al
jne 0x140123358
xor eax, eax
lea rdx, [rsi - 0x10]
test rsi, rsi
lea r13, [r15 + 0x20]
cmove rdx, rax
cmp rdx, r13
je 0x140123358
movzx ecx, word [rdx + 0x30]
add rdx, 0x30
lea rax, [rdx - 0x30]
lea rax, [rax + rcx]
cmove rax, rcx
lea rcx, [rbp - 0x29]
add rax, 0x38
mov qword [rbp - 0x39], rax
movzx eax, word [rdx + 2]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rax, str.upgrade
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], 7
call fcn.14011b480
test al, al
jne 0x14012303b
mov edx, ntohl
mov rcx, r12
call fcn.140088650
mov r13, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1401ae6a0
add rsp, 0xa8
pop r15
pop r14
pop r12
pop rbp
ret
call fcn.14011e570
mov rdi, qword [r15]
mov rbx, rax
mov rsi, r15
test rdi, rdi
je 0x140123091
movups xmm0, xmmword [rax + 0x1420]
movaps xmmword [rbp - 0x29], xmm0
nop dword [rax]
lea rdx, [rdi + 0x20]
mov r13, rdi
lea r8, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140104380
test al, al
je 0x14012307e
mov rdi, qword [rdi + 0x10]
jmp 0x140123082
mov rdi, qword [rdi + 8]
test al, al
cmove rsi, r13
test rdi, rdi
jne 0x140123060
lea r13, [r15 + 0x20]
cmp rsi, r15
je 0x14012334e
movups xmm0, xmmword [rbx + 0x1420]
mov eax, 0x30
lea r8, [rsi + 0x20]
test rsi, rsi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
movaps xmmword [rbp - 0x29], xmm0
cmove r8, rax
call fcn.140104440
test al, al
jne 0x14012334e
test rsi, rsi
lea rdx, [rsi - 0x10]
mov eax, 0
cmove rdx, rax
cmp rdx, r13
je 0x14012334e
movzx ecx, word [rdx + 0x30]
add rdx, 0x30
lea rax, [rdx - 0x30]
lea rax, [rax + rcx]
cmove rax, rcx
lea rcx, [rbp - 0x29]
add rax, 0x38
mov qword [rbp - 0x39], rax
movzx eax, word [rdx + 2]
lea rdx, [rbp - 0x39]
mov qword [rbp - 0x31], rax
lea rax, str.websocket
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], 9
call fcn.14011b480
test al, al
jne 0x14012313e
mov edx, reloc.WS2_32.dll_listen
jmp 0x140122ff8
call fcn.14011e570
mov rdi, qword [r15]
mov rbx, rax
mov rsi, r15
test rdi, rdi
je 0x140123191
movups xmm0, xmmword [rax + 0x1190]
mov qword [rbp - 0x39], r13
movaps xmmword [rbp - 0x29], xmm0
lea rdx, [rdi + 0x20]
mov r13, rdi
lea r8, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140104380
test al, al
je 0x14012317e
mov rdi, qword [rdi + 0x10]
jmp 0x140123182
mov rdi, qword [rdi + 8]
test al, al
cmove rsi, r13
test rdi, rdi
jne 0x140123160
mov r13, qword [rbp - 0x39]
cmp rsi, r15
je 0x140123344
movups xmm0, xmmword [rbx + 0x1190]
mov eax, 0x30
lea r8, [rsi + 0x20]
test rsi, rsi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
movaps xmmword [rbp - 0x29], xmm0
cmove r8, rax
call fcn.140104440
test al, al
jne 0x140123344
test rsi, rsi
lea rbx, [rsi - 0x10]
mov esi, 0
cmove rbx, rsi
cmp rbx, r13
je 0x140123344
xor eax, eax
lea rdx, [rbp - 0x29]
xor cl, cl
mov qword [rbp + 8], rax
mov dword [rbp + 0x10], eax
xorps xmm0, xmm0
mov byte [rbp + 0x14], al
movzx eax, cl
mov byte [rbp - 9], cl
movups xmmword [rbp - 8], xmm0
mov byte [rbp + rax - 8], cl
mov rcx, qword [rbp - 0x19]
lea rax, [rcx + 1]
mov qword [rbp - 0x19], rax
movzx eax, byte [rcx]
lea rcx, [rbp - 9]
mov qword [rbp - 0x11], rax
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 0x29], xmm0
call fcn.140121d60
movzx ecx, word [rbx + 0x30]
lea r8, [rbx + 0x30]
movzx ebx, word [rbx + 0x32]
lea rdx, [r8 - 0x30]
movzx edi, byte [rbp - 9]
add rdx, rcx
test r8, r8
mov r8d, edi
cmove rdx, rcx
lea rcx, [rbp - 8]
add rdx, 0x38
cmp rbx, rdi
cmovb r8d, ebx
call fcn.1401e4800
test eax, eax
jne 0x14012333a
cmp rdi, rbx
jb 0x14012333a
ja 0x14012333a
lea rdi, [0x1403275b8]
mov dword [rbp - 0x19], esi
mov qword [rbp - 0x11], rdi
lea rcx, [rbp - 0x29]
movups xmm0, xmmword [rbp - 0x19]
mov rdx, r15
movups xmmword [r12], xmm0
call fcn.1400ca6e0
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [r14 + 0x58], xmm0
mov rcx, qword [r14 + 0x68]
cmp byte [r14 + 0x78], sil
je 0x1401232cc
lea rdx, [rcx + 0x28]
mov r9, 0xffffffffffffffff
mov rcx, qword [rcx + 0x58]
lea r8, [r14 + 0x80]
call fcn.1400b2630
mov byte [r14 + 0x78], sil
movabs rax, 0x7fffffffffffffff
lea rcx, [r14 + 0x30]
mov qword [r14 + 0x70], rax
xor edx, edx
and byte [r14 + 0x1c5], 0xfe
mov byte [r14 + 0x973], sil
mov word [r14 + 0xe0], si
mov qword [r14 + 0x8cc], rsi
mov qword [r14 + 0x8d4], 1
mov qword [r14 + 0x1b0], rsi
mov word [r14 + 0x8c9], 0x100
mov byte [r14 + 0x8cb], sil
mov word [r14 + 0x8dc], si
mov qword [r14 + 0x8f0], rsi
call fcn.140123be0
jmp 0x140123000
mov edx, setsockopt
jmp 0x140122ff8
mov edx, reloc.WS2_32.dll_select
jmp 0x140122ff8
mov edx, ntohl
jmp 0x140122ff8
mov edx, 0xa
jmp 0x140122ff8
mov edx, setsockopt
mov rcx, r12
call fcn.140088650
jmp 0x140123020