Function at 0x180067320
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 - 0x1178]
mov eax, 0x1278
call fcn.1800858f0
sub rsp, rax
movaps xmmword [rsp + 0x1260], xmm6
movaps xmmword [rsp + 0x1250], xmm7
mov rax, qword [0x1800a7040]
xor rax, rsp
mov qword [rbp + 0x1140], rax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rbp - 0x70], rdx
mov r13, qword [rbp + 0x11e0]
mov edi, 1
mov dword [rbp - 0x34], edi
lea rcx, [rbp + 0x50]
call fcn.180064370
mov rcx, rax
mov r14, qword [rbp + 0x11e8]
imul rax, r14, 0xf4240
add rax, qword [rcx]
mov qword [rsp + 0x58], rax
mov r8, qword [rsi + 0x18]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0xf
jbe 0x1800673bd
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x180068388
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x180068388
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 0x180067404
mov eax, ebx
jmp 0x180067412
cmp al, dil
jne 0x180068346
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x118], edi
cmp qword [rsi + 0x98], 0
jne 0x180067431
lea rdx, [0x180098048]
jmp 0x180067442
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x180067442
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x180067454
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1800683a9
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0xd0], rax
mov r15, qword [rbp - 0x60]
mov qword [rsp + 0x50], r15
mov qword [rbp + 0xd8], r15
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
movdqu xmmword [rsp + 0x68], xmm0
xor ecx, ecx
mov qword [rsp + 0x78], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x1800675af
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x1800683e7
shl rdi, 6
test rdi, rdi
jne 0x1800674e1
mov ebx, ecx
jmp 0x180067521
cmp rdi, 0x1000
jb 0x180067516
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x1800683ed
call fcn.180084658
test rax, rax
je 0x18006750f
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x180067521
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.180084658
mov rbx, rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
lea rax, [rbx + rdi]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x68]
mov qword [rbp + 0x50], 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 - 8], rbx
lea rax, [rsp + 0x68]
mov qword [rbp], rax
cmp rdi, r15
je 0x1800675a0
nop dword [rax]
nop word [rax + rax]
mov qword [rsp + 0x60], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.18000fd50
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.18000fd50
nop
add rbx, 0x40
mov qword [rbp - 8], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x180067570
mov qword [rsp + 0x70], rbx
mov ebx, 2
mov r15, qword [rsp + 0x50]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x30]
call fcn.1800668e0
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x1800675e6
cmp al, 1
jne 0x18006858f
mov ebx, reloc.WS2_32.dll_socket
mov edi, 1
mov r8d, 6
mov edx, edi
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x1800683f3
mov dword [rbp - 0x58], edi
lea r8, [rbp - 0x58]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x18006841c
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x180067677
lea rcx, [rsp + 0x38]
call fcn.180064370
mov r12, qword [rsp + 0x58]
mov rcx, r12
sub rcx, qword [rsp + 0x38]
mov rax, rbx
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 0x180067686
mov rbx, 0xffffffffffffffff
mov r12, qword [rsp + 0x58]
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 0x1800676c3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18006771f
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800676a2
mov ebx, 1
mov rdi, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
sub rdi, r15
je 0x1800677fa
nop dword [rax]
test r14, r14
js 0x180067785
lea rcx, [rsp + 0x38]
call fcn.180064370
mov rcx, r12
sub rcx, qword [rsp + 0x38]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, r13
jmp 0x18006778c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x180068478
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.180066190
mov dword [rbp - 0x58], 4
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x34]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x18006844f
mov edx, dword [rbp - 0x34]
test edx, edx
jne 0x180068367
jmp 0x1800676c8
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.180066190
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 0x1800677e5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1800677dc
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 0x1800677b4
jmp 0x1800677e5
cmp ebx, 0xffffffff
je 0x1800684a1
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x1800677fa
mov ebx, 1
jmp 0x1800676e0
mov word [rbp - 0x54], 0xa0d
mov dword [rbp - 0x38], 0xa0d0a0d
mov rdi, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], select
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 - 0x34], 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov qword [rbp - 0x40], r13
xor r13b, r13b
mov byte [rsp + 0x31], r13b
xor ebx, ebx
mov r15d, ebx
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x30], bl
mov r12d, ebx
mov dword [rbp - 0x58], eax
jmp 0x180067875
mov rdi, qword [rsp + 0x40]
xor ebx, ebx
test r14, r14
js 0x1800678b2
lea rcx, [rsp + 0x60]
call fcn.180064370
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rsp + 0x60]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, rbx
jmp 0x1800678b9
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180066190
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 0x180067920
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x180067917
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 0x1800678e8
jmp 0x180067920
cmp ebx, 0xffffffff
je 0x1800684ca
movsxd r9, ebx
test ebx, ebx
je 0x18006828b
lea r8, [rbp + 0x140]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.180082b60
test r13b, r13b
jne 0x180067eaf
mov r11, qword [rbp - 0x48]
mov rax, r11
mov rcx, r11
mov r9, qword [rbp - 0x50]
sub rcx, r9
cmp rcx, 4
jl 0x180067987
lea r10, [r11 - 4]
mov r8, r9
mov ecx, dword [rbp - 0x38]
nop dword [rax]
cmp ecx, dword [r8]
sete dl
test dl, dl
jne 0x180067984
cmp r8, r10
je 0x180067987
inc r8
jmp 0x180067970
mov rax, r8
cmp rax, r11
je 0x1800681d7
lea rbx, [rax + 2]
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0xe0]
call fcn.180081850
nop
mov rdi, qword [rbp + 0xe0]
mov eax, dword [rbp + 0xe8]
mov r13, qword [rsp + 0x40]
mov dword [r13], eax
movzx eax, word [rbp + 0xec]
mov word [r13 + 4], ax
lea rdx, [rbp + 0xf0]
lea rcx, [r13 + 8]
call fcn.18001d8c0
nop dword [rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.180081ac0
nop
mov rdi, qword [rbp + 0x80]
movups xmm7, xmmword [rbp + 0x88]
movups xmmword [rbp + 0x58], xmm7
movups xmm6, xmmword [rbp + 0x98]
movups xmmword [rbp + 0x68], xmm6
xor r9d, r9d
mov qword [rbp + 0x98], r9
mov qword [rbp + 0xa0], select
mov byte [rbp + 0x88], r9b
movups xmm2, xmmword [rbp + 0xa8]
movups xmmword [rbp + 0x30], xmm2
movups xmm1, xmmword [rbp + 0xb8]
movups xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0xb8], r9
mov qword [rbp + 0xc0], select
mov byte [rbp + 0xa8], r9b
lea rax, [rbp + 0x58]
movq rcx, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
cmova rax, rcx
movq r8, xmm6
cmp r8, 0x11
jne 0x180067b04
movabs r10, 0x726566736e617274
cmp qword [rax], r10
jne 0x180067b04
movabs r10, 0x6e69646f636e652d
cmp qword [rax + 8], r10
jne 0x180067b04
cmp byte [rax + 0x10], 0x67
jne 0x180067b04
lea rdx, [rbp + 0x30]
movq rcx, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq rax, xmm1
cmp rax, 7
jne 0x1800684f3
cmp dword [rdx], 0x6e756863
jne 0x1800684f3
cmp word [rdx + 4], 0x656b
jne 0x1800684f3
cmp byte [rdx + 6], 0x64
jne 0x1800684f3
mov byte [rsp + 0x30], 1
jmp 0x180067bfd
lea rax, [rbp + 0x58]
cmp rdx, 0xf
cmova rax, rcx
cmp r8, 0xe
jne 0x180067bfd
movabs rcx, 0x2d746e65746e6f63
cmp qword [rax], rcx
jne 0x180067bfd
cmp dword [rax + 8], 0x676e656c
jne 0x180067bfd
cmp word [rax + 0xc], 0x6874
jne 0x180067bfd
lea rcx, [rbp + 0x30]
movq r8, xmm2
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0xf
cmova rcx, r8
movq rax, xmm1
add rcx, rax
lea rax, [rbp + 0x30]
cmp rdx, 0xf
cmova rax, r8
mov r15, r9
mov qword [rsp + 0x38], r9
cmp rax, rcx
je 0x180067bbd
nop word [rax + rax]
movsx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x180068526
lea edx, [r8 - 0x30]
movsxd r8, edx
lea rdx, [r15 + r15*4]
lea r15, [r8 + rdx*2]
mov qword [rsp + 0x38], r15
inc rax
cmp rax, rcx
jne 0x180067b90
mov byte [rsp + 0x31], 1
mov qword [rbp + 0x50], r15
lea rcx, [r13 + 0x40]
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r15, rax
jbe 0x180067bfd
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x180068547
lea rdx, [rbp + 0x50]
call fcn.180082330
movups xmm1, xmmword [rbp + 0x40]
movups xmm2, xmmword [rbp + 0x30]
xor r9d, r9d
movaps xmmword [rbp - 0x10], xmm7
movaps xmmword [rbp], xmm6
mov qword [rbp + 0x68], r9
mov qword [rbp + 0x70], select
mov byte [rbp + 0x58], 0
movaps xmmword [rbp + 0x10], xmm2
movaps xmmword [rbp + 0x20], xmm1
mov qword [rbp + 0x40], r9
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
mov rdx, qword [r13 + 0x30]
cmp rdx, qword [r13 + 0x38]
je 0x180067c5e
movups xmmword [rdx], xmm7
movups xmmword [rdx + 0x10], xmm6
mov r15d, select
mov byte [rbp - 0x10], 0
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm1
mov edx, r15d
mov byte [rbp + 0x10], 0
add qword [r13 + 0x30], 0x40
jmp 0x180067c73
lea r8, [rbp - 0x10]
lea rcx, [r13 + 0x28]
call fcn.180083b50
mov rdx, qword [rbp + 0x28]
mov r15, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x180067caa
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067ca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800681c2
call fcn.180084530
cmp r15, 0xf
jbe 0x180067ce3
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067cdd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800681c2
call fcn.180084530
nop
mov rdx, qword [rbp + 0x48]
cmp rdi, rbx
je 0x180067d48
cmp rdx, 0xf
jbe 0x180067d23
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067d1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800681c9
call fcn.180084530
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x88]
call fcn.180067270
jmp 0x1800679e0
cmp rdx, 0xf
jbe 0x180067d7f
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067d7a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800681c9
call fcn.180084530
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x88]
call fcn.180067270
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x180067dc9
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
mov r13b, 1
mov rdx, qword [rbp + 0x108]
cmp rdx, 0xf
jbe 0x180067e15
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180067e08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800681d0
call fcn.180084530
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov r15, qword [rsp + 0x38]
cmp byte [rsp + 0x30], 0
je 0x180068096
mov r8d, dword [rbp - 0x58]
nop dword [rax]
test r12, r12
je 0x180067ebc
sub rbx, rdi
mov r15, r12
cmp rbx, r12
cmovb r15, rbx
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + 0x48]
mov r9, r15
mov r8, rdi
add rcx, 0x40
call fcn.180082b60
mov rdi, qword [rbp - 0x50]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x180067e88
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
sub r12, r15
mov r8d, dword [rbp - 0x58]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x58], r8d
cmp rdi, rbx
mov r15, qword [rsp + 0x38]
jne 0x180067e30
jmp 0x18006786e
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
jmp 0x180067e1a
test r8b, r8b
je 0x180067f0f
mov rax, rbx
sub rax, rdi
cmp rax, 2
mov r15, qword [rsp + 0x38]
jb 0x18006786e
movzx eax, word [rbp - 0x54]
cmp ax, word [rdi]
sete al
test al, al
je 0x18006854d
xor al, al
mov dword [rbp - 0x58], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x180067f0f
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
mov rcx, rbx
mov rax, rbx
sub rax, rdi
cmp rax, 2
jl 0x180067f4b
lea r8, [rbx - 2]
mov rdx, rdi
nop word [rax + rax]
movzx eax, word [rbp - 0x54]
cmp ax, word [rdx]
sete al
test al, al
jne 0x180067f48
cmp rdx, r8
je 0x180067f4b
inc rdx
jmp 0x180067f30
mov rcx, rdx
cmp rcx, rbx
mov r15, qword [rsp + 0x38]
je 0x18006786e
xor r12d, r12d
cmp rdi, rcx
je 0x180067fb2
mov rax, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x180067f83
lea rdx, [r8 - 0x30]
jmp 0x180067fa3
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x180067f92
lea rdx, [r8 - 0x37]
jmp 0x180067fa3
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x18006856e
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x180067f70
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x180067fd4
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
test r12, r12
jne 0x180067e25
test rdi, rdi
je 0x180068026
mov rdx, qword [rbp - 0x40]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18006800e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800682bc
mov rcx, rdi
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x180068036
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180068080
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006806b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180068319
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x40]
jmp 0x18006818f
sub rbx, rdi
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x48]
mov r9, rbx
mov r8, rdi
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 0x40]
call fcn.180082b60
mov rcx, qword [rbp - 0x50]
cmp rcx, qword [rbp - 0x48]
je 0x1800680c4
mov qword [rbp - 0x48], rcx
cmp byte [rsp + 0x31], 0
je 0x180067873
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r15
jb 0x180067873
test rcx, rcx
je 0x180068126
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068111
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800682bc
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x180068136
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180068180
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006816b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180068319
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.180084510
movaps xmm6, xmmword [rsp + 0x1260]
movaps xmm7, xmmword [rsp + 0x1250]
add rsp, 0x1278
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
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 0x180068220
mov rdx, qword [rbp - 0x40]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x180068208
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800682bc
mov rcx, r9
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x180068230
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x18006827a
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068265
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180068319
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18006818c
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1800682d8
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800682c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800682c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x1800682e8
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x180068335
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180068320
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180068320
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180084530
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18006818c
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.180066080
lea rdx, [0x1800a4548]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x10]
call fcn.180066080
lea rdx, [0x1800a4548]
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.18001dd80
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1800647f0
lea rdx, [0x1800a4418]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.180013080
int3
call fcn.180003350
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea rcx, [rbp - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x48]
call fcn.1800662f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
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 - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
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 - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
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 - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
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 - 0x10]
call fcn.180064910
lea rdx, [0x1800a4418]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x30]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x68]
call fcn.18001dd80
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.1800689a0
lea rdx, [0x1800a4590]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp - 0x10]
call fcn.180066300
lea rdx, [0x1800a4590]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.180013080
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp - 0x10]
call fcn.180066300
lea rdx, [0x1800a4590]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp - 0x10]
call fcn.180066300
lea rdx, [0x1800a4590]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.180066080
lea rdx, [0x1800a4548]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
int3