Function at 0x14002a6f0
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.1400a4b00
sub rsp, rax
movaps xmmword [rsp + 0x1260], xmm6
movaps xmmword [rsp + 0x1250], xmm7
mov rax, qword [0x14012c080]
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.140027b00
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 0x14002a78d
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x14002b72d
lea rdx, str.http
call fcn.1400d5200
test eax, eax
jne 0x14002b72d
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 0x14002a7d4
mov eax, ebx
jmp 0x14002a7e2
cmp al, dil
jne 0x14002b6eb
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x118], edi
cmp qword [rsi + 0x98], 0
jne 0x14002a801
lea rdx, [0x14010acd8]
jmp 0x14002a812
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x14002a812
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x14002a824
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 0x14002b74e
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 0x14002a96f
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x14002b78c
shl rdi, 6
test rdi, rdi
jne 0x14002a8b1
mov ebx, ecx
jmp 0x14002a8ee
cmp rdi, 0x1000
jb 0x14002a8e3
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14002b792
call fcn.1400a3e20
test rax, rax
je 0x14002b798
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14002a8ee
mov rcx, rdi
call fcn.1400a3e20
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 0x14002a960
nop
mov qword [rsp + 0x60], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.140009a90
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.140009a90
nop
add rbx, 0x40
mov qword [rbp - 8], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x14002a930
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.140029e00
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x14002a9a6
cmp al, 1
jne 0x14002b958
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 0x14002b79e
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 0x14002b7c7
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x14002aa37
lea rcx, [rsp + 0x38]
call fcn.140027b00
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 0x14002aa46
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 0x14002aa83
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002aadf
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002aa62
mov ebx, 1
mov rdi, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
sub rdi, r15
je 0x14002abba
nop dword [rax]
test r14, r14
js 0x14002ab45
lea rcx, [rsp + 0x38]
call fcn.140027b00
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 0x14002ab4c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002b823
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1400296b0
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 0x14002b7fa
mov edx, dword [rbp - 0x34]
test edx, edx
jne 0x14002b70c
jmp 0x14002aa88
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1400296b0
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 0x14002aba5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002ab9c
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 0x14002ab74
jmp 0x14002aba5
cmp ebx, 0xffffffff
je 0x14002b84c
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x14002abba
mov ebx, 1
jmp 0x14002aaa0
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 0x14002ac35
mov rdi, qword [rsp + 0x40]
xor ebx, ebx
test r14, r14
js 0x14002ac72
lea rcx, [rsp + 0x60]
call fcn.140027b00
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 0x14002ac79
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.1400296b0
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 0x14002ace0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002acd7
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 0x14002aca8
jmp 0x14002ace0
cmp ebx, 0xffffffff
je 0x14002b875
movsxd r9, ebx
test ebx, ebx
je 0x14002b636
lea r8, [rbp + 0x140]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.140034ce0
test r13b, r13b
jne 0x14002b26f
mov r11, qword [rbp - 0x48]
mov rax, r11
mov rcx, r11
mov r9, qword [rbp - 0x50]
sub rcx, r9
cmp rcx, 4
jl 0x14002ad47
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 0x14002ad44
cmp r8, r10
je 0x14002ad47
inc r8
jmp 0x14002ad30
mov rax, r8
cmp rax, r11
je 0x14002b582
lea rbx, [rax + 2]
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0xe0]
call fcn.1400305e0
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.140010e60
nop dword [rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140030870
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], socket
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], socket
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 0x14002aec4
movabs r10, 0x726566736e617274
cmp qword [rax], r10
jne 0x14002aec4
movabs r10, 0x6e69646f636e652d
cmp qword [rax + 8], r10
jne 0x14002aec4
cmp byte [rax + 0x10], 0x67
jne 0x14002aec4
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 0x14002b89e
cmp dword [rdx], 0x6e756863
jne 0x14002b89e
cmp word [rdx + 4], 0x656b
jne 0x14002b89e
cmp byte [rdx + 6], 0x64
jne 0x14002b89e
mov byte [rsp + 0x30], 1
jmp 0x14002afbd
lea rax, [rbp + 0x58]
cmp rdx, 0xf
cmova rax, rcx
cmp r8, 0xe
jne 0x14002afbd
movabs rcx, 0x2d746e65746e6f63
cmp qword [rax], rcx
jne 0x14002afbd
cmp dword [rax + 8], 0x676e656c
jne 0x14002afbd
cmp word [rax + 0xc], 0x6874
jne 0x14002afbd
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 0x14002af7d
nop word [rax + rax]
movsx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002b8d1
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 0x14002af50
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 0x14002afbd
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x14002b8f2
lea rdx, [rbp + 0x50]
call fcn.140030f00
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 0x14002b01e
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 0x14002b033
lea r8, [rbp - 0x10]
lea rcx, [r13 + 0x28]
call fcn.1400356a0
mov rdx, qword [rbp + 0x28]
mov r15, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14002b06a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b065
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b8f8
call fcn.1400a416c
cmp r15, 0xf
jbe 0x14002b0a3
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b09d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b8f8
call fcn.1400a416c
nop
mov rdx, qword [rbp + 0x48]
cmp rdi, rbx
je 0x14002b108
cmp rdx, 0xf
jbe 0x14002b0e3
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b0de
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b8fe
call fcn.1400a416c
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x88]
call fcn.14002a640
jmp 0x14002ada0
cmp rdx, 0xf
jbe 0x14002b13f
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b13a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b8fe
call fcn.1400a416c
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x88]
call fcn.14002a640
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x14002b189
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d4720
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 0x14002b1d5
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b1c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b904
call fcn.1400a416c
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov r15, qword [rsp + 0x38]
cmp byte [rsp + 0x30], 0
je 0x14002b456
mov r8d, dword [rbp - 0x58]
nop dword [rax]
test r12, r12
je 0x14002b27c
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.140034ce0
mov rdi, qword [rbp - 0x50]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x14002b248
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d4720
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 0x14002b1f0
jmp 0x14002ac2e
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
jmp 0x14002b1da
test r8b, r8b
je 0x14002b2cf
mov rax, rbx
sub rax, rdi
cmp rax, 2
mov r15, qword [rsp + 0x38]
jb 0x14002ac2e
movzx eax, word [rbp - 0x54]
cmp ax, word [rdi]
sete al
test al, al
je 0x14002b90a
xor al, al
mov dword [rbp - 0x58], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x14002b2cf
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d4720
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 0x14002b30b
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 0x14002b308
cmp rdx, r8
je 0x14002b30b
inc rdx
jmp 0x14002b2f0
mov rcx, rdx
cmp rcx, rbx
mov r15, qword [rsp + 0x38]
je 0x14002ac2e
xor r12d, r12d
cmp rdi, rcx
je 0x14002b372
mov rax, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002b343
lea rdx, [r8 - 0x30]
jmp 0x14002b363
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x14002b352
lea rdx, [r8 - 0x37]
jmp 0x14002b363
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x14002b92b
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x14002b330
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x14002b394
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d4720
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
test r12, r12
jne 0x14002b1e5
test rdi, rdi
je 0x14002b3e6
mov rdx, qword [rbp - 0x40]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002b3ce
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b94c
mov rcx, rdi
call fcn.1400a416c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b3f6
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b440
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b42b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b952
call fcn.1400a416c
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 0x14002b54f
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.140034ce0
mov rcx, qword [rbp - 0x50]
cmp rcx, qword [rbp - 0x48]
je 0x14002b484
mov qword [rbp - 0x48], rcx
cmp byte [rsp + 0x31], 0
je 0x14002ac33
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r15
jb 0x14002ac33
test rcx, rcx
je 0x14002b4e6
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b4d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b94c
call fcn.1400a416c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b4f6
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b540
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b52b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b952
call fcn.1400a416c
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.1400a3e00
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
test r9, r9
je 0x14002b5cb
mov rdx, qword [rbp - 0x40]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x14002b5b3
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b94c
mov rcx, r9
call fcn.1400a416c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b5db
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b625
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b610
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b952
call fcn.1400a416c
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 0x14002b54c
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14002b680
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b66b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b94c
call fcn.1400a416c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b690
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b6da
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b6c5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b952
call fcn.1400a416c
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 0x14002b54c
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.1400295a0
lea rdx, [0x14012ab60]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x10]
call fcn.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x10]
call fcn.1400295a0
lea rdx, [0x14012ab60]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
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.14002f4b0
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140027040
lea rdx, [0x14012a8e8]
lea rcx, [rsp + 0x68]
call fcn.1400a6094
nop
call fcn.14000a4f0
int3
call fcn.140007a80
int3
call fcn.1400aa040
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.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
int3
lea rcx, [rsp + 0x48]
call fcn.140029810
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.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
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.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x10]
call fcn.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
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.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
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.140027100
lea rdx, [0x14012a8e8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
nop
lea r8, [rbp + 0x30]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x68]
call fcn.14002f4b0
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002bd60
lea rdx, [0x14012aba8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp - 0x10]
call fcn.140029820
lea rdx, [0x14012aba8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
int3
call fcn.14000a4f0
int3
call fcn.1400aa040
nop
call fcn.1400aa040
nop
call fcn.1400aa040
int3
lea rdx, str.Invalid_chunk
lea rcx, [rbp - 0x10]
call fcn.140029820
lea rdx, [0x14012aba8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp - 0x10]
call fcn.140029820
lea rdx, [0x14012aba8]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
nop
call fcn.1400aa040
nop
call fcn.1400aa040
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.1400295a0
lea rdx, [0x14012ab60]
lea rcx, [rbp - 0x10]
call fcn.1400a6094
int3