Function at 0x140046670
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 - 0x168]
sub rsp, 0x268
mov rax, qword [0x140105bc0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov qword [rbp - 0x60], rdx
mov r12, rcx
mov r14, qword [rbp + 0x1d8]
mov dword [rbp + 0x104], 0
mov qword [rsp + 0x20], r14
movzx r9d, byte [rbp + 0x1d0]
call fcn.1400585c0
test al, al
je 0x140046cb3
mov r9, rdi
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.1400480f0
test al, al
je 0x140046cac
lea rdx, [rdi + 0x48]
mov rcx, rbx
call fcn.140047db0
test al, al
je 0x140046cac
mov r13d, dword [rdi + 0x20]
cmp r13d, 0xcc
je 0x140046a72
mov rcx, rsi
mov r15, qword [rsi + 0x18]
cmp r15, 0xf
jbe 0x140046726
mov rcx, qword [rsi]
mov rbx, qword [rsi + 0x10]
cmp rbx, 4
jne 0x140046747
mov r8, rbx
lea rdx, str.HEAD
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140046a72
mov rcx, rsi
cmp r15, 0xf
jbe 0x140046753
mov rcx, qword [rsi]
cmp rbx, 7
jne 0x140046770
mov r8, rbx
lea rdx, str.CONNECT
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140046a72
lea eax, [r13 - 0x12d]
cmp eax, 0x62
ja 0x14004678b
cmp byte [r12 + 0x241], 0
je 0x14004678b
mov al, 1
jmp 0x14004678d
xor al, al
mov byte [rbp + 0x100], al
mov rcx, qword [rsi + 0x1b8]
test rcx, rcx
je 0x1400467bc
test al, al
jne 0x1400467bc
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
test al, al
jne 0x1400467bc
mov dword [r14], 7
jmp 0x140046cb3
cmp qword [rsi + 0x1f8], 0
je 0x1400467ff
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_8c88a3df46b01d71d8ef5c0ff51bab49___bool__char_const____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__.0
mov qword [rbp + 0x30], rax
lea rax, [rbp + 0x100]
mov qword [rbp + 0x38], rax
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], r14
lea rax, [rbp + 0x30]
mov qword [rbp + 0x68], rax
lea r15, [rbp + 0x30]
mov ebx, 1
lea r13, [rbp + 0x68]
mov rcx, qword [rbp - 0x18]
jmp 0x140046823
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_4c84074cd69ef7a113fa1311e3ab4a77___bool__char_const____ptr64__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__.0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rdi
lea rcx, [rbp - 0x50]
mov qword [rbp - 0x18], rcx
lea r15, [rbp - 0x50]
mov ebx, 2
lea r13, [rbp - 0x18]
mov qword [rbp + 0x148], 0
mov r8, qword [r15 + 0x38]
test r8, r8
je 0x140046878
cmp r8, r15
jne 0x140046a3c
mov rax, qword [r8]
lea rdx, [rbp + 0x110]
mov rcx, r8
call qword [rax + reloc.WS2_32.dll_htonl]
mov qword [rbp + 0x148], rax
mov rcx, qword [r13]
test rcx, rcx
je 0x140046874
mov rax, qword [rcx]
cmp rcx, r15
setne dl
call qword [rax + 0x20]
mov qword [r15 + 0x38], 0
mov rcx, qword [rbp - 0x18]
xor r15d, r15d
test bl, 2
je 0x14004689c
and ebx, 0xfffffffd
test rcx, rcx
je 0x14004689c
mov rax, qword [rcx]
lea rdx, [rbp - 0x50]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp - 0x18], r15
test bl, 1
je 0x1400468ba
mov rcx, qword [rbp + 0x68]
test rcx, rcx
je 0x1400468ba
mov rax, qword [rcx]
lea rdx, [rbp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rsp + 0x30], rsi
lea rax, [rbp + 0x100]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r14
mov qword [rbp + 0xb8], r15
lea rdx, [rbp + 0x110]
lea rcx, [rbp + 0x80]
call fcn.140026b60
lea rax, [rbp + 0x80]
mov qword [rbp + 0x70], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_f0a65666dc9b03b1b99cc705250459b7___bool__unsigned_long_long_unsigned___int64___unsigned_long_long_unsigned___int64__.0
mov qword [rbp - 0x10], rax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbp - 8], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rbp + 8], xmm1
lea rax, [rbp - 0x10]
mov qword [rbp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rbp + 0x78], rax
movzx ebx, byte [r12 + 0x291]
mov qword [rbp + 0x108], 0xffffffffffffffff
mov qword [rsp + 0x48], rdi
mov rax, qword [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x108]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x60], rax
lea rax, [rbp + 0x104]
mov qword [rsp + 0x68], rax
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rsp + 0x58]
movaps xmmword [rbp - 0x80], xmm1
movsd xmm0, qword [rsp + 0x68]
movsd qword [rbp - 0x70], xmm0
mov qword [rbp + 0xf8], r15
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0xc0]
call fcn.140026b60
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
movzx r9d, bl
lea r8, [rbp + 0xc0]
lea rdx, [rbp + 0x104]
mov rcx, rdi
call fcn.140014d50
movzx ebx, al
mov rcx, qword [rbp + 0x28]
test rcx, rcx
je 0x1400469e4
mov r8, qword [rcx]
lea rax, [rbp - 0x10]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov qword [rbp + 0x28], r15
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140046a03
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
test bl, bl
jne 0x140046a53
cmp dword [r14], 7
je 0x140046a14
mov dword [r14], 4
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x140046cb3
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x140046cb3
mov qword [rbp + 0x148], r8
xor r15d, r15d
mov qword [r13], r15
mov rcx, qword [rbp - 0x18]
jmp 0x14004687b
mov rcx, qword [rbp + 0x148]
test rcx, rcx
je 0x140046a72
mov rax, qword [rcx]
lea rdx, [rbp + 0x110]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 0xa
lea rdx, str.Connection
lea rcx, [rsp + 0x70]
call fcn.140008090
lea r8, [rsp + 0x70]
lea rdx, [rsp + 0x30]
lea rcx, [rdi + 0x48]
call fcn.140010db0
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140046aeb
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140046ae6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046ae6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c2298
movdqa xmm0, xmmword [0x1400d6af0]
movdqu xmmword [rbp - 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rsp + 0x30]
cmp rdx, qword [rsp + 0x38]
je 0x140046b19
add rdx, 0x40
cmp qword [rdx + 0x18], 0xf
jbe 0x140046b20
mov rdx, qword [rdx]
jmp 0x140046b20
lea rdx, [0x1400d6b4b]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140046b40
lea rcx, [rsp + 0x48]
call fcn.140008090
lea rcx, [rsp + 0x48]
mov rbx, qword [rsp + 0x48]
mov r15, qword [rsp + 0x60]
cmp r15, 0xf
cmova rcx, rbx
mov r8, qword [rsp + 0x58]
cmp r8, 5
jne 0x140046b86
lea rdx, str.close
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140046bd6
mov rcx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140046b93
mov rcx, qword [rdi]
mov r8, qword [rdi + 0x10]
cmp r8, 8
jne 0x140046bdb
lea rdx, str.HTTP_1.0
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140046bdb
lea rcx, [rdi + 0x28]
cmp qword [rdi + 0x40], 0xf
jbe 0x140046bbc
mov rcx, qword [rdi + 0x28]
mov r8, qword [rdi + 0x38]
cmp r8, 0x16
jne 0x140046bd6
lea rdx, str.Connection_established
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140046bdb
mov r14b, 1
jmp 0x140046bde
xor r14b, r14b
cmp r15, 0xf
jbe 0x140046c18
lea rdx, [r15 + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140046c10
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140046c10
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400c2298
test r14b, r14b
je 0x140046c8f
lea rbx, [r12 + 0x60]
mov qword [rsp + 0x30], rbx
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140046ce8
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
je 0x140046cd8
mov rax, qword [r12]
mov r8b, 1
lea rdx, [r12 + 0x50]
mov rcx, r12
call qword [rax + 0x18]
mov rcx, qword [r12 + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140046c6d
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [r12 + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x140046c87
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r12 + 0x50], 0xffffffffffffffff
mov rcx, rbx
call sub.MSVCP140.dll__Mtx_unlock
mov rcx, qword [r12 + 0x408]
test rcx, rcx
je 0x140046ca8
mov rax, qword [rcx]
mov r8, rdi
mov rdx, rsi
call qword [rax + reloc.WS2_32.dll_recv]
mov al, 1
jmp 0x140046cb5
mov dword [r14], 4
xor al, al
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1400c23b0
add rsp, 0x268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3