Function at 0x14002a7a0
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 - 0x1168]
mov eax, 0x1268
call fcn.1400a4b80
sub rsp, rax
movaps xmmword [rsp + 0x1250], xmm6
movaps xmmword [rsp + 0x1240], xmm7
mov rax, qword [0x14012d080]
xor rax, rsp
mov qword [rbp + 0x1130], 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 + 0x11d0]
mov edi, 1
mov dword [rbp - 0x34], edi
lea rcx, [rbp - 0x18]
call fcn.140027bb0
mov rcx, rax
mov r14, qword [rbp + 0x11d8]
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 0x14002a83d
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x14002b7bd
lea rdx, str.http
call fcn.1400d47d0
test eax, eax
jne 0x14002b7bd
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movzx eax, byte [rsi + 1]
mov ebx, 2
test al, al
jne 0x14002a884
mov eax, ebx
jmp 0x14002a892
cmp al, dil
jne 0x14002b77b
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x104], eax
mov dword [rbp + 0x108], edi
cmp qword [rsi + 0x98], 0
jne 0x14002a8b1
lea rdx, [0x140109e28]
jmp 0x14002a8c2
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x14002a8c2
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x14002a8d4
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14002b7de
xorps xmm0, xmm0
movups xmmword [rbp + 0xc0], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0xc0], rax
mov r15, qword [rbp - 0x60]
mov qword [rsp + 0x50], r15
mov qword [rbp + 0xc8], 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 0x14002aa1f
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x14002b81c
shl rdi, 6
test rdi, rdi
jne 0x14002a961
mov ebx, ecx
jmp 0x14002a99e
cmp rdi, 0x1000
jb 0x14002a993
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14002b822
call fcn.1400a3ea0
test rax, rax
je 0x14002b828
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14002a99e
mov rcx, rdi
call fcn.1400a3ea0
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 - 0x18], 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 0x14002aa10
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 0x14002a9e0
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.140029eb0
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x14002aa56
cmp al, 1
jne 0x14002b9e8
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 0x14002b82e
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 0x14002b857
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x14002aae7
lea rcx, [rsp + 0x38]
call fcn.140027bb0
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 0x14002aaf6
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 0x14002ab33
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002ab8f
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002ab12
mov ebx, 1
mov rdi, qword [rbp - 0x28]
mov r15, qword [rbp - 0x30]
sub rdi, r15
je 0x14002ac6a
nop dword [rax]
test r14, r14
js 0x14002abf5
lea rcx, [rsp + 0x38]
call fcn.140027bb0
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 0x14002abfc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002b8b3
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140029760
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 0x14002b88a
mov edx, dword [rbp - 0x34]
test edx, edx
jne 0x14002b79c
jmp 0x14002ab38
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140029760
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 0x14002ac55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002ac4c
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 0x14002ac24
jmp 0x14002ac55
cmp ebx, 0xffffffff
je 0x14002b8dc
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x14002ac6a
mov ebx, 1
jmp 0x14002ab50
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 0x14002ace5
mov rdi, qword [rsp + 0x40]
xor ebx, ebx
test r14, r14
js 0x14002ad22
lea rcx, [rsp + 0x60]
call fcn.140027bb0
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 0x14002ad29
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140029760
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x130]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14002ad90
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002ad87
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x130]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14002ad58
jmp 0x14002ad90
cmp ebx, 0xffffffff
je 0x14002b905
movsxd r9, ebx
test ebx, ebx
je 0x14002b6c6
lea r8, [rbp + 0x130]
mov rdx, qword [rbp - 0x48]
lea rcx, [rbp - 0x50]
call fcn.140034d70
test r13b, r13b
jne 0x14002b302
mov r11, qword [rbp - 0x48]
mov rax, r11
mov rcx, r11
mov r9, qword [rbp - 0x50]
sub rcx, r9
cmp rcx, 4
jl 0x14002adf7
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 0x14002adf4
cmp r8, r10
je 0x14002adf7
inc r8
jmp 0x14002ade0
mov rax, r8
cmp rax, r11
je 0x14002b612
lea rbx, [rax + 2]
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0xd0]
call fcn.140030670
nop
mov rdi, qword [rbp + 0xd0]
mov eax, dword [rbp + 0xd8]
mov r13, qword [rsp + 0x40]
mov dword [r13], eax
movzx eax, word [rbp + 0xdc]
mov word [r13 + 4], ax
lea rdx, [rbp + 0xe0]
lea rcx, [r13 + 8]
call fcn.140010e60
nop dword [rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x70]
call fcn.140030900
nop
mov rdi, qword [rbp + 0x70]
movups xmm7, xmmword [rbp + 0x78]
movups xmmword [rbp + 0x50], xmm7
movups xmm6, xmmword [rbp + 0x88]
movups xmmword [rbp + 0x60], xmm6
xor r9d, r9d
mov qword [rbp + 0x88], r9
mov qword [rbp + 0x90], socket
mov byte [rbp + 0x78], r9b
movups xmm2, xmmword [rbp + 0x98]
movups xmmword [rbp + 0x30], xmm2
movups xmm1, xmmword [rbp + 0xa8]
movups xmmword [rbp + 0x40], xmm1
mov qword [rbp + 0xa8], r9
mov qword [rbp + 0xb0], socket
mov byte [rbp + 0x98], r9b
lea rax, [rbp + 0x50]
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 0x14002af68
movabs r10, 0x726566736e617274
cmp qword [rax], r10
jne 0x14002af68
movabs r10, 0x6e69646f636e652d
cmp qword [rax + 8], r10
jne 0x14002af68
cmp byte [rax + 0x10], 0x67
jne 0x14002af68
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 0x14002b92e
cmp dword [rdx], 0x6e756863
jne 0x14002b92e
cmp word [rdx + 4], 0x656b
jne 0x14002b92e
cmp byte [rdx + 6], 0x64
jne 0x14002b92e
mov byte [rsp + 0x30], 1
jmp 0x14002b05d
lea rax, [rbp + 0x50]
cmp rdx, 0xf
cmova rax, rcx
cmp r8, 0xe
jne 0x14002b05d
movabs rcx, 0x2d746e65746e6f63
cmp qword [rax], rcx
jne 0x14002b05d
cmp dword [rax + 8], 0x676e656c
jne 0x14002b05d
cmp word [rax + 0xc], 0x6874
jne 0x14002b05d
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 0x14002b01d
nop word [rax + rax]
movsx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002b961
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 0x14002aff0
mov byte [rsp + 0x31], 1
mov qword [rbp - 0x18], r15
lea rcx, [r13 + 0x40]
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r15, rax
jbe 0x14002b05d
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x14002b982
lea rdx, [rbp - 0x18]
call fcn.140030f90
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 + 0x60], r9
mov qword [rbp + 0x68], select
mov byte [rbp + 0x50], 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 0x14002b0be
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 0x14002b0d3
lea r8, [rbp - 0x10]
lea rcx, [r13 + 0x28]
call fcn.140035730
mov rdx, qword [rbp + 0x28]
mov r15, qword [rbp + 8]
cmp rdx, 0xf
jbe 0x14002b10a
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b105
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b988
call fcn.1400a41ec
cmp r15, 0xf
jbe 0x14002b143
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b13d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b988
call fcn.1400a41ec
nop
mov rdx, qword [rbp + 0x48]
cmp rdi, rbx
je 0x14002b1a5
cmp rdx, 0xf
jbe 0x14002b183
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b17e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b98e
call fcn.1400a41ec
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x78]
call fcn.14002a6f0
jmp 0x14002ae50
cmp rdx, 0xf
jbe 0x14002b1dc
inc rdx
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b1d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b98e
call fcn.1400a41ec
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], select
mov byte [rbp + 0x30], 0
lea rcx, [rbp + 0x78]
call fcn.14002a6f0
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x14002b223
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d3cf0
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
mov r13b, 1
mov rdx, qword [rbp + 0xf8]
cmp rdx, 0xf
jbe 0x14002b26f
inc rdx
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b262
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b994
call fcn.1400a41ec
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
mov r15, qword [rsp + 0x38]
cmp byte [rsp + 0x30], 0
je 0x14002b4e6
mov r8d, dword [rbp - 0x58]
test r12, r12
je 0x14002b30f
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.140034d70
mov rdi, qword [rbp - 0x50]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x48]
cmp rdi, rdx
je 0x14002b2db
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d3cf0
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 0x14002b283
jmp 0x14002acde
mov rbx, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x50]
jmp 0x14002b274
test r8b, r8b
je 0x14002b362
mov rax, rbx
sub rax, rdi
cmp rax, 2
mov r15, qword [rsp + 0x38]
jb 0x14002acde
movzx eax, word [rbp - 0x54]
cmp ax, word [rdi]
sete al
test al, al
je 0x14002b99a
xor al, al
mov dword [rbp - 0x58], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x14002b362
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d3cf0
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 0x14002b39b
lea r8, [rbx - 2]
mov rdx, rdi
nop dword [rax + rax]
movzx eax, word [rbp - 0x54]
cmp ax, word [rdx]
sete al
test al, al
jne 0x14002b398
cmp rdx, r8
je 0x14002b39b
inc rdx
jmp 0x14002b380
mov rcx, rdx
cmp rcx, rbx
mov r15, qword [rsp + 0x38]
je 0x14002acde
xor r12d, r12d
cmp rdi, rcx
je 0x14002b402
mov rax, rdi
nop dword [rax]
nop dword [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002b3d3
lea rdx, [r8 - 0x30]
jmp 0x14002b3f3
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x14002b3e2
lea rdx, [r8 - 0x37]
jmp 0x14002b3f3
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x14002b9bb
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x14002b3c0
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x14002b424
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call fcn.1400d3cf0
add rbx, rdi
mov qword [rbp - 0x48], rbx
mov rdi, qword [rbp - 0x50]
test r12, r12
jne 0x14002b27f
test rdi, rdi
je 0x14002b476
mov rdx, qword [rbp - 0x40]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x14002b45e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9dc
mov rcx, rdi
call fcn.1400a41ec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b486
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b4d0
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b4bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9e2
call fcn.1400a41ec
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 0x14002b5df
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.140034d70
mov rcx, qword [rbp - 0x50]
cmp rcx, qword [rbp - 0x48]
je 0x14002b514
mov qword [rbp - 0x48], rcx
cmp byte [rsp + 0x31], 0
je 0x14002ace3
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r15
jb 0x14002ace3
test rcx, rcx
je 0x14002b576
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b561
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9dc
call fcn.1400a41ec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b586
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b5d0
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b5bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9e2
call fcn.1400a41ec
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 + 0x1130]
xor rcx, rsp
call fcn.1400a3e80
movaps xmm6, xmmword [rsp + 0x1250]
movaps xmm7, xmmword [rsp + 0x1240]
add rsp, 0x1268
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test r9, r9
je 0x14002b65b
mov rdx, qword [rbp - 0x40]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x14002b643
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9dc
mov rcx, r9
call fcn.1400a41ec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b66b
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b6b5
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b6a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9e2
call fcn.1400a41ec
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 0x14002b5dc
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x14002b710
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b6fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9dc
call fcn.1400a41ec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b720
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14002b76a
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b755
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002b9e2
call fcn.1400a41ec
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 0x14002b5dc
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.140029650
lea rdx, [0x14012b1d8]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x10]
call fcn.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x10]
call fcn.140029650
lea rdx, [0x14012b1d8]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
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.14002f540
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1400270f0
lea rdx, [0x14012af60]
lea rcx, [rsp + 0x68]
call fcn.1400a6114
nop
call fcn.14000a4f0
int3
call fcn.140007a80
int3
call fcn.1400aa0c0
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.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
int3
lea rcx, [rsp + 0x48]
call fcn.1400298c0
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.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
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.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x10]
call fcn.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
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.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
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.1400271b0
lea rdx, [0x14012af60]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
nop
lea r8, [rbp + 0x30]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x68]
call fcn.14002f540
nop
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14002bdf0
lea rdx, [0x14012b220]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp - 0x10]
call fcn.1400298d0
lea rdx, [0x14012b220]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
int3
call fcn.14000a4f0
int3
call fcn.1400aa0c0
nop
call fcn.1400aa0c0
nop
call fcn.1400aa0c0
int3
lea rdx, str.Invalid_chunk
lea rcx, [rbp - 0x10]
call fcn.1400298d0
lea rdx, [0x14012b220]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp - 0x10]
call fcn.1400298d0
lea rdx, [0x14012b220]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
nop
call fcn.1400aa0c0
nop
call fcn.1400aa0c0
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x10]
call fcn.140029650
lea rdx, [0x14012b1d8]
lea rcx, [rbp - 0x10]
call fcn.1400a6114
int3