Function at 0x18000d1a0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1198]
mov eax, 0x1298
call fcn.180060d70
sub rsp, rax
movaps xmmword [rsp + 0x1280], xmm6
movaps xmmword [rsp + 0x1270], xmm7
movaps xmmword [rsp + 0x1260], xmm8
movaps xmmword [rsp + 0x1250], xmm9
mov rax, qword [0x18007b3c0]
xor rax, rsp
mov qword [rbp + 0x1140], rax
mov qword [rsp + 0x40], r9
mov qword [rbp - 0x20], r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rbp - 0x60], rdx
mov r13, qword [rbp + 0x1200]
mov edi, 1
mov dword [rbp + 8], edi
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18000d237
imul rax, rax, 0x64
jmp 0x18000d252
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r14, qword [rbp + 0x1208]
imul rcx, r14, 0xf4240
add rax, rcx
mov qword [rsp + 0x50], rax
mov r8, qword [rsi + 0x18]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0x10
jb 0x18000d27b
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x18000e284
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000e284
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movzx eax, byte [rsi + 1]
mov ebx, 2
test al, al
jne 0x18000d2c2
mov eax, ebx
jmp 0x18000d2d0
cmp al, dil
jne 0x18000e242
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x118], edi
cmp qword [rsi + 0x98], 0
jne 0x18000d2ef
lea rdx, [0x180067040]
jmp 0x18000d300
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0x10
jb 0x18000d300
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0x10
jb 0x18000d312
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000e2a5
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x100], rax
mov r15, qword [rbp - 0x50]
mov qword [rsp + 0x48], r15
mov qword [rbp + 0x108], r15
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
movdqu xmmword [rbp + 0x50], xmm0
xor ecx, ecx
mov qword [rbp + 0x60], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x18000d45d
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x18000e2e3
shl rdi, 6
cmp rdi, 0x1000
jb 0x18000d3c9
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x18000e2e9
call fcn.18005eb50
test rax, rax
je 0x18000d3c2
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18000d3de
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x18000d3db
mov rcx, rdi
call fcn.18005eb50
mov rbx, rax
jmp 0x18000d3de
mov rbx, rcx
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rbx
lea rax, [rdi + rbx]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 8], rax
mov r15, qword [r13 + 8]
mov rdi, qword [r13]
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x10], rbx
mov qword [rbp + 0x18], rbx
lea rax, [rbp + 0x50]
mov qword [rbp + 0x20], rax
cmp rdi, r15
je 0x18000d44f
nop word [rax + rax]
mov qword [rbp - 0x18], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.180002410
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.180002410
nop
add rbx, 0x40
mov qword [rbp + 0x18], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x18000d420
mov qword [rbp + 0x58], rbx
mov ebx, 2
mov r15, qword [rsp + 0x48]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rbp - 0x20]
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.18000c630
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x18000d492
cmp al, 1
jne 0x18000e48d
mov ebx, reloc.WS2_32.dll_socket
mov edi, 1
lea r8d, [rdi + 5]
mov edx, edi
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x18000e2ef
mov dword [rbp - 0x18], edi
lea r8, [rbp - 0x18]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x18000e31a
movabs rdi, 0x431bde82d7b634db
test r14, r14
js 0x18000d54e
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18000d502
imul rax, rax, 0x64
jmp 0x18000d51d
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r12, qword [rsp + 0x50]
mov rcx, r12
sub rcx, rax
mov rax, rdi
imul rcx
mov rbx, rdx
sar rbx, 0x12
mov rax, rbx
shr rax, 0x3f
add rbx, rax
test rbx, rbx
mov r13d, 0
cmovle rbx, r13
jmp 0x18000d55d
mov rbx, 0xffffffffffffffff
mov r12, qword [rsp + 0x50]
xor r13d, r13d
mov edi, dword [r15 + 0x10]
mov r15, qword [r15 + 0x20]
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x18000d5a1
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000d5d9
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18000d580
mov rdi, qword [rbp - 8]
mov r15, qword [rbp - 0x10]
sub rdi, r15
je 0x18000d6fe
test r14, r14
js 0x18000d682
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18000d63d
imul rax, rax, 0x64
jmp 0x18000d658
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18000e376
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.18000bee0
mov dword [rbp - 0x20], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 8]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x18000e34d
mov edx, dword [rbp + 8]
test edx, edx
jne 0x18000e263
jmp 0x18000d5a1
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, r12
sub rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, r13
jmp 0x18000d689
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.18000bee0
xor r9d, r9d
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000d6f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000d6e7
xor r9d, r9d
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18000d6b4
cdqe
add r15, rax
sub rdi, rax
jmp 0x18000d5ac
cmp ebx, 0xffffffff
je 0x18000e39f
movsxd rax, ebx
add r15, rax
sub rdi, rax
jmp 0x18000d5ac
mov word [rbp - 0x48], 0xa0d
mov dword [rbp - 0x28], 0xa0d0a0d
mov rdi, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], send
mov byte [rdi + 8], 0
mov qword [rdi + 0x28], r13
mov qword [rdi + 0x30], r13
mov qword [rdi + 0x38], r13
mov qword [rdi + 0x40], r13
mov qword [rdi + 0x48], r13
mov qword [rdi + 0x50], r13
mov dword [rbp + 8], 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x30], r13
xor r15b, r15b
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x32], r15b
mov qword [rbp - 0x20], r13
mov byte [rsp + 0x31], r15b
xor ecx, ecx
mov r12d, ecx
mov dword [rbp - 0x18], eax
jmp 0x18000d779
mov rdi, qword [rsp + 0x38]
test r14, r14
js 0x18000d7e8
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rbx, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rbx, 0x989680
jne 0x18000d79c
imul rax, rax, 0x64
jmp 0x18000d7b7
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, qword [rsp + 0x50]
sub rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
mov eax, 0
cmovle rdx, rax
jmp 0x18000d7ef
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18000bee0
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000d858
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000d84f
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18000d820
jmp 0x18000d858
cmp ebx, 0xffffffff
je 0x18000e3c8
movsxd r9, ebx
test ebx, ebx
je 0x18000e18f
lea r8, [rbp + 0x140]
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.1800122e0
test r15b, r15b
jne 0x18000dd37
mov r8, qword [rbp - 0x38]
mov rax, r8
mov r9, qword [rbp - 0x40]
sub rax, r9
cmp rax, 4
jl 0x18000e047
lea rdx, [r8 - 4]
mov rbx, r9
mov eax, dword [rbp - 0x28]
cmp eax, dword [rbx]
sete cl
test cl, cl
jne 0x18000d8b9
cmp rbx, rdx
je 0x18000e047
inc rbx
jmp 0x18000d8a2
cmp rbx, r8
je 0x18000e047
add rbx, 2
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0x78]
call fcn.1800118b0
nop
mov rdi, qword [rbp + 0x78]
mov eax, dword [rbp + 0x80]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
movzx eax, word [rbp + 0x84]
mov word [rcx + 4], ax
lea rdx, [rbp + 0x88]
add rcx, 8
call fcn.180008230
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.180011b20
nop
mov rdi, qword [rbp + 0xb0]
movups xmm9, xmmword [rbp + 0xb8]
movups xmmword [rbp + 0x50], xmm9
movups xmm8, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x60], xmm8
xor eax, eax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], send
mov byte [rbp + 0xb8], al
movups xmm7, xmmword [rbp + 0xd8]
movups xmmword [rbp + 0x30], xmm7
movups xmm6, xmmword [rbp + 0xe8]
movups xmmword [rbp + 0x40], xmm6
mov qword [rbp + 0xe8], rax
mov qword [rbp + send0], 0xf
mov byte [rbp + 0xd8], al
lea rcx, [rbp + 0x50]
movdqa xmm0, xmm8
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
setae dl
mov byte [rsp + 0x30], dl
movq r15, xmm9
cmovae rcx, r15
movq r13, xmm8
cmp r13, 0x11
jne 0x18000da95
mov r8, r13
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000da90
lea rcx, [rbp + 0x30]
movq rdx, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rcx, rdx
movq rax, xmm6
cmp rax, 7
jne 0x18000e3f1
mov r8, rax
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000e3f1
mov byte [rsp + 0x31], 1
mov r13, qword [rbp - 0x20]
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rsp + 0x70], xmm8
xor r9d, r9d
mov qword [rbp + 0x60], r9
mov qword [rbp + 0x68], send
mov byte [rbp + 0x50], r9b
movaps xmmword [rbp - 0x80], xmm7
movaps xmmword [rbp - 0x70], xmm6
mov qword [rbp + 0x40], r9
mov qword [rbp + 0x48], send
mov byte [rbp + 0x30], r9b
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x30]
cmp rdx, qword [rcx + 0x38]
je 0x18000db86
movups xmmword [rdx], xmm9
movups xmmword [rdx + 0x10], xmm8
mov r15d, send
mov byte [rsp + 0x60], r9b
movups xmmword [rdx + 0x20], xmm7
movups xmmword [rdx + 0x30], xmm6
mov edx, r15d
mov byte [rbp - 0x80], r9b
add qword [rcx + 0x30], 0x40
jmp 0x18000db9d
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 0x50]
test dl, dl
cmovne rcx, r15
cmp r13, 0xe
jne 0x18000da15
mov r8, r13
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000da15
lea r9, [rbp + 0x30]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
setae dl
movq rcx, xmm7
cmovae r9, rcx
movq rax, xmm6
add r9, rax
lea rax, [rbp + 0x30]
test dl, dl
cmovne rax, rcx
xor ecx, ecx
mov r13d, ecx
mov qword [rbp - 0x20], rcx
cmp rax, r9
je 0x18000db40
nop dword [rax]
nop word [rax + rax]
movsx edx, byte [rax]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x18000e424
lea ecx, [rdx - 0x30]
movsxd rdx, ecx
lea rcx, [r13*4]
add rcx, r13
lea r13, [rdx + rcx*2]
mov qword [rbp - 0x20], r13
inc rax
cmp rax, r9
jne 0x18000db10
mov byte [rsp + 0x32], 1
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r13, rax
jbe 0x18000da19
movabs rax, 0x7fffffffffffffff
cmp r13, rax
ja 0x18000e445
mov rdx, r13
call fcn.1800102b0
movups xmm6, xmmword [rbp + 0x40]
movups xmm7, xmmword [rbp + 0x30]
jmp 0x18000da19
lea r8, [rsp + 0x60]
add rcx, 0x28
call fcn.180012980
mov rdx, qword [rbp - 0x68]
mov r15, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x18000dbd4
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000dbcf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e032
call fcn.18005ef14
cmp r15, 0x10
jb 0x18000dc0e
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000dc08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e032
call fcn.18005ef14
nop
mov rdx, qword [rbp + 0x48]
cmp rdi, rbx
je 0x18000dc70
cmp rdx, 0x10
jb 0x18000dc4e
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000dc49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e039
call fcn.18005ef14
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], send
mov byte [rbp + 0x30], al
lea rcx, [rbp + 0xb8]
call fcn.18000a960
jmp 0x18000d902
cmp rdx, 0x10
jb 0x18000dca7
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000dca2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e039
call fcn.18005ef14
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], send
mov byte [rbp + 0x30], al
lea rcx, [rbp + 0xb8]
call fcn.18000a960
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
cmp rdi, rdx
je 0x18000dcee
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
mov r15b, 1
mov byte [rsp + 0x30], r15b
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0x10
jb 0x18000dd3f
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000dd32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e040
call fcn.18005ef14
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
cmp byte [rsp + 0x31], 0
je 0x18000df98
mov r8d, dword [rbp - 0x18]
nop
test r12, r12
je 0x18000ddcd
sub rbx, rdi
mov r15, r12
cmp rbx, r12
cmovb r15, rbx
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x48]
mov r9, r15
mov r8, rdi
add rcx, 0x40
call fcn.1800122e0
mov rdi, qword [rbp - 0x40]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x38]
cmp rdi, rdx
je 0x18000dda4
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
sub r12, r15
mov r8d, dword [rbp - 0x18]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x18], r8d
cmp rdi, rbx
movzx r15d, byte [rsp + 0x30]
je 0x18000d774
jmp 0x18000dd50
test r8b, r8b
je 0x18000de21
mov rax, rbx
sub rax, rdi
cmp rax, 2
movzx r15d, byte [rsp + 0x30]
jb 0x18000d774
movzx eax, word [rbp - 0x48]
cmp ax, word [rdi]
sete al
test al, al
je 0x18000e44b
xor al, al
mov dword [rbp - 0x18], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x18000de21
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
mov rcx, rbx
mov rax, rbx
sub rax, rdi
cmp rax, 2
jl 0x18000de5b
lea r8, [rbx - 2]
mov rdx, rdi
nop word [rax + rax]
movzx eax, word [rbp - 0x48]
cmp ax, word [rdx]
sete al
test al, al
jne 0x18000de58
cmp rdx, r8
je 0x18000de5b
inc rdx
jmp 0x18000de40
mov rcx, rdx
cmp rcx, rbx
movzx r15d, byte [rsp + 0x30]
je 0x18000d774
xor r15d, r15d
mov r12d, r15d
cmp rdi, rcx
je 0x18000dec2
mov rax, rdi
nop dword [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x18000de93
lea rdx, [r8 - 0x30]
jmp 0x18000deb3
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x18000dea2
lea rdx, [r8 - 0x37]
jmp 0x18000deb3
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x18000e46c
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x18000de80
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x18000dee4
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
test r12, r12
jne 0x18000dd4a
test rdi, rdi
je 0x18000df32
mov rdx, qword [rbp - 0x30]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18000df1e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e1c0
mov rcx, rdi
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000df82
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000df71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e219
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], r15
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x38]
jmp 0x18000e0f1
sub rbx, rdi
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x48]
mov r9, rbx
mov r8, rdi
mov rdi, rcx
lea rcx, [rcx + 0x40]
call fcn.1800122e0
mov rax, qword [rbp - 0x38]
mov rcx, qword [rbp - 0x40]
cmp rcx, rax
cmovne rax, rcx
mov qword [rbp - 0x38], rax
cmp byte [rsp + 0x32], 0
je 0x18000d779
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r13
jb 0x18000d779
test rcx, rcx
je 0x18000e12c
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e01a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e1c0
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
jmp 0x18000e12e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test r9, r9
je 0x18000e090
mov rdx, qword [rbp - 0x30]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x18000e078
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e1c0
mov rcx, r9
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
jmp 0x18000e092
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000e0e2
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e0d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e219
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.18005eb30
lea r11, [rsp + 0x1298]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000e17e
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e16d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000e219
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18000e0ee
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18000e1dc
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e1c7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e1c7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
xor ebx, ebx
mov qword [rbp - 0x30], rbx
jmp 0x18000e1de
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000e231
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000e220
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000e220
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18005ef14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18000e0ee
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x10]
call fcn.18000be10
lea rdx, [0x180077d00]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x50]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 0x10]
call fcn.18000be10
lea rdx, [0x180077d00]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea r8, [rsi + 0x68]
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp + 0x10]
call fcn.180002620
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.180009f90
lea rdx, [0x180077af0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1800050d0
int3
call fcn.180002090
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea rcx, [rsp + 0x60]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x40]
call fcn.18000c040
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp + 0x78]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_option
lea rcx, [rbp + 0x50]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x50]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_send_data
lea rcx, [rbp + 0x50]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_read_data
lea rcx, [rbp + 0x78]
call fcn.18000a0b0
lea rdx, [0x180077af0]
lea rcx, [rbp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x30]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x60]
call fcn.180002620
nop
mov rdx, rax
lea rcx, [rbp + 0x10]
call fcn.18000e8a0
lea rdx, [0x180077d48]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp + 0x10]
call fcn.18000c050
lea rdx, [0x180077d48]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1800050d0
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0x10]
call fcn.18000c050
lea rdx, [0x180077d48]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp + 0x10]
call fcn.18000c050
lea rdx, [0x180077d48]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x10]
call fcn.18000be10
lea rdx, [0x180077d00]
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3