Function at 0x14002a950
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.1400a4e70
sub rsp, rax
movaps xmmword [rsp + 0x1260], xmm6
movaps xmmword [rsp + 0x1250], xmm7
mov rax, qword [0x14012e080]
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 - 0x50], rdx
mov r13, qword [rbp + 0x11e0]
mov edi, 1
mov dword [rbp - 0x10], edi
lea rcx, [rbp + 0x10]
call fcn.140027d60
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 0x14002a9ed
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x14002b9ca
lea rdx, str.http
call fcn.1400d4ac0
test eax, eax
sete al
test al, al
je 0x14002b9ca
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 0x14002aa39
mov eax, ebx
jmp 0x14002aa47
cmp al, dil
jne 0x14002b986
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x118], edi
cmp qword [rsi + 0x98], 0
jne 0x14002aa66
lea rdx, [0x14010ae18]
jmp 0x14002aa77
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x14002aa77
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x14002aa89
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14002b9eb
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 - 0x40]
mov qword [rsp + 0x50], r15
mov qword [rbp + 0xd8], r15
xor eax, eax
movups xmmword [rbp - 8], xmm0
mov qword [rbp + 8], rax
movdqu xmmword [rbp + 0x58], xmm0
xor ecx, ecx
mov qword [rbp + 0x68], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x14002abcd
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x14002ba29
shl rdi, 6
test rdi, rdi
jne 0x14002ab14
mov ebx, ecx
jmp 0x14002ab51
cmp rdi, 0x1000
jb 0x14002ab46
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14002ba2f
call fcn.1400a4190
test rax, rax
je 0x14002ba35
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14002ab51
mov rcx, rdi
call fcn.1400a4190
mov rbx, rax
mov qword [rbp + 0x58], rbx
mov qword [rbp + 0x60], rbx
lea rax, [rbx + rdi]
mov qword [rbp + 0x68], rax
lea rax, [rbp + 0x58]
mov qword [rbp + 0x10], rax
mov r15, qword [r13 + 8]
mov rdi, qword [r13]
xorps xmm0, xmm0
movups xmmword [rbp + 0x18], xmm0
mov qword [rbp + 0x18], rbx
mov qword [rbp + 0x20], rbx
lea rax, [rbp + 0x58]
mov qword [rbp + 0x28], rax
cmp rdi, r15
je 0x14002abbf
nop dword [rax]
mov qword [rbp - 0x60], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.1400099a0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.1400099a0
nop
add rbx, 0x40
mov qword [rbp + 0x20], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x14002ab90
mov qword [rbp + 0x60], rbx
mov ebx, 2
mov r15, qword [rsp + 0x50]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x38]
lea rdx, [rsi + 8]
lea rcx, [rbp - 8]
call fcn.14002a060
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x14002ac03
cmp al, 1
jne 0x14002bc01
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 0x14002ba3b
mov dword [rbp - 0x34], edi
lea r8, [rbp - 0x34]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x14002ba66
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x14002ac94
lea rcx, [rsp + 0x38]
call fcn.140027d60
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 0x14002aca3
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 0x14002ace1
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002ad36
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x14002acc0
mov ebx, 1
mov rdi, qword [rbp]
mov r15, qword [rbp - 8]
sub rdi, r15
je 0x14002ae16
test r14, r14
js 0x14002ad9c
lea rcx, [rsp + 0x38]
call fcn.140027d60
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 0x14002ada3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14002bac6
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140029910
mov dword [rbp - 0x34], 4
lea rax, [rbp - 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14002ba9b
mov edx, dword [rbp - 0x10]
test edx, edx
jne 0x14002b9a7
jmp 0x14002ace6
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140029910
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 0x14002ae01
nop dword [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002adf8
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 0x14002add0
jmp 0x14002ae01
cmp ebx, 0xffffffff
je 0x14002baf1
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x14002ae16
mov ebx, 1
jmp 0x14002acf7
mov word [rbp - 0x38], 0xa0d
mov dword [rbp - 0x30], 0xa0d0a0d
mov r15, qword [rsp + 0x40]
xorps xmm0, xmm0
movups xmmword [r15 + 8], xmm0
mov qword [r15 + 0x18], r13
mov qword [r15 + 0x20], select
mov byte [r15 + 8], 0
mov qword [r15 + 0x28], r13
mov qword [r15 + 0x30], r13
mov qword [r15 + 0x38], r13
mov qword [r15 + 0x40], r13
mov qword [r15 + 0x48], r13
mov qword [r15 + 0x50], r13
mov dword [rbp - 0x10], 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r13
xor r13b, r13b
mov byte [rsp + 0x31], r13b
xor ebx, ebx
mov edi, ebx
mov qword [rsp + 0x38], rbx
mov byte [rsp + 0x30], bl
mov r12d, ebx
mov dword [rbp - 0x34], eax
jmp 0x14002ae92
mov r15, qword [rsp + 0x40]
xor ebx, ebx
test r14, r14
js 0x14002aecd
lea rcx, [rbp - 0x60]
call fcn.140027d60
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rbp - 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 0x14002aed4
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140029910
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 0x14002af3b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14002af32
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 0x14002af03
jmp 0x14002af3b
cmp ebx, 0xffffffff
je 0x14002bb1c
movsxd r9, ebx
test ebx, ebx
je 0x14002b8d1
lea r8, [rbp + 0x140]
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x28]
call fcn.140034f90
mov rbx, qword [rbp - 0x20]
test r13b, r13b
jne 0x14002b50b
mov rax, rbx
mov rcx, rbx
mov r10, qword [rbp - 0x28]
sub rcx, r10
cmp rcx, 4
jl 0x14002afac
lea r11, [rbx - 4]
mov r9, r10
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x30]
mov r8, r9
sub r8, rcx
nop
movzx ecx, byte [rdx]
cmp byte [r8 + rdx], cl
jne 0x14002b14a
inc rdx
lea rcx, [rbp - 0x2c]
cmp rdx, rcx
jne 0x14002af90
mov rax, r9
cmp rax, rbx
je 0x14002b81d
lea rbx, [rax + 2]
mov r8, rbx
mov rdx, r10
lea rcx, [rbp + 0xe0]
call fcn.140030890
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.140010ef0
nop
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.140030b20
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 r11d, r11d
mov qword [rbp + 0x98], r11
mov qword [rbp + 0xa0], socket
mov byte [rbp + 0x88], r11b
movups xmm2, xmmword [rbp + 0xa8]
movups xmmword [rbp + 0x38], xmm2
movups xmm1, xmmword [rbp + 0xb8]
movups xmmword [rbp + 0x48], xmm1
mov qword [rbp + 0xb8], r11
mov qword [rbp + 0xc0], socket
mov byte [rbp + 0xa8], r11b
lea rax, [rbp + 0x58]
movq r8, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq r9, xmm0
cmp r9, 0xf
cmova rax, r8
movq r10, xmm6
cmp r10, 0x11
jne 0x14002b15b
mov rcx, qword [rax]
movabs rdx, 0x726566736e617274
sub rcx, rdx
jne 0x14002b0dd
mov rcx, qword [rax + 8]
movabs rdx, 0x6e69646f636e652d
sub rcx, rdx
jne 0x14002b0dd
movzx ecx, byte [rax + 0x10]
mov eax, 0x67
movzx eax, al
sub rcx, rax
test rcx, rcx
sete al
test al, al
je 0x14002b15b
lea rdx, [rbp + 0x38]
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 0x14002bb47
mov ecx, dword [rdx]
sub ecx, 0x6e756863
jne 0x14002b133
movzx ecx, word [rdx + 4]
mov eax, 0x656b
sub ecx, eax
jne 0x14002b133
movzx ecx, byte [rdx + 6]
sub ecx, 0x64
test ecx, ecx
sete al
test al, al
je 0x14002bb47
mov byte [rsp + 0x30], 1
jmp 0x14002b25d
cmp r9, r11
je 0x14002afac
inc r9
jmp 0x14002af81
lea rdx, [rbp + 0x58]
cmp r9, 0xf
cmova rdx, r8
cmp r10, 0xe
jne 0x14002b25d
mov rcx, qword [rdx]
movabs rax, 0x2d746e65746e6f63
sub rcx, rax
jne 0x14002b19f
mov ecx, dword [rdx + 8]
mov eax, 0x676e656c
sub rcx, rax
jne 0x14002b19f
movzx ecx, word [rdx + 0xc]
mov eax, 0x6874
movzx eax, ax
sub rcx, rax
test rcx, rcx
sete al
test al, al
je 0x14002b25d
lea rcx, [rbp + 0x38]
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 + 0x38]
cmp rdx, 0xf
cmova rax, r8
mov r15, r11
mov qword [rsp + 0x38], r11
cmp rax, rcx
je 0x14002b21d
nop dword [rax]
movsx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002bb7a
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 0x14002b1f0
mov byte [rsp + 0x31], 1
mov qword [rbp + 0x10], r15
lea rcx, [r13 + 0x40]
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r15, rax
jbe 0x14002b25d
movabs rax, 0x7fffffffffffffff
cmp r15, rax
ja 0x14002bb9b
lea rdx, [rbp + 0x10]
call fcn.1400311b0
movups xmm1, xmmword [rbp + 0x48]
movups xmm2, xmmword [rbp + 0x38]
xor r11d, r11d
movaps xmmword [rsp + 0x60], xmm7
movaps xmmword [rsp + 0x70], xmm6
mov qword [rbp + 0x68], r11
mov qword [rbp + 0x70], select
mov byte [rbp + 0x58], 0
movaps xmmword [rbp - 0x80], xmm2
movaps xmmword [rbp - 0x70], xmm1
mov qword [rbp + 0x48], r11
mov qword [rbp + 0x50], select
mov byte [rbp + 0x38], 0
mov rdx, qword [r13 + 0x30]
cmp rdx, qword [r13 + 0x38]
je 0x14002b2c1
movups xmmword [rdx], xmm7
movups xmmword [rdx + 0x10], xmm6
mov r15d, select
mov byte [rsp + 0x60], 0
movups xmmword [rdx + 0x20], xmm2
movups xmmword [rdx + 0x30], xmm1
mov edx, r15d
mov byte [rbp - 0x80], 0
add qword [r13 + 0x30], 0x40
jmp 0x14002b2d8
lea r8, [rsp + 0x60]
lea rcx, [r13 + 0x28]
call fcn.140035950
mov rdx, qword [rbp - 0x68]
mov r15, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14002b30f
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b30a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bba1
call fcn.1400a44dc
cmp r15, 0xf
jbe 0x14002b349
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bba1
call fcn.1400a44dc
nop
mov rdx, qword [rbp + 0x50]
cmp rdi, rbx
je 0x14002b3ae
cmp rdx, 0xf
jbe 0x14002b389
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b384
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bba7
call fcn.1400a44dc
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], select
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x88]
call fcn.14002a8a0
jmp 0x14002b000
cmp rdx, 0xf
jbe 0x14002b3e5
inc rdx
mov rcx, qword [rbp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b3e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bba7
call fcn.1400a44dc
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x50], select
mov byte [rbp + 0x38], 0
lea rcx, [rbp + 0x88]
call fcn.14002a8a0
lea rdx, [rbx + 2]
mov r15, qword [rbp - 0x28]
mov rbx, qword [rbp - 0x20]
cmp r15, rdx
je 0x14002b42f
sub rbx, rdx
mov r8, rbx
mov rcx, r15
call fcn.1400d3fe0
add rbx, r15
mov qword [rbp - 0x20], rbx
mov r15, qword [rbp - 0x28]
mov r13b, 1
mov rdx, qword [rbp + 0x108]
cmp rdx, 0xf
jbe 0x14002b47b
inc rdx
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b46e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbad
call fcn.1400a44dc
mov rbx, qword [rbp - 0x20]
mov r15, qword [rbp - 0x28]
mov rdi, qword [rsp + 0x38]
cmp byte [rsp + 0x30], 0
je 0x14002b6f1
mov r8d, dword [rbp - 0x34]
nop
test r12, r12
je 0x14002b514
sub rbx, r15
mov rdi, r12
cmp rbx, r12
cmovb rdi, rbx
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rcx + 0x48]
mov r9, rdi
mov r8, r15
add rcx, 0x40
call fcn.140034f90
mov r15, qword [rbp - 0x28]
lea rdx, [r15 + rdi]
mov rbx, qword [rbp - 0x20]
cmp r15, rdx
je 0x14002b4e4
sub rbx, rdx
mov r8, rbx
mov rcx, r15
call fcn.1400d3fe0
add rbx, r15
mov qword [rbp - 0x20], rbx
mov r15, qword [rbp - 0x28]
sub r12, rdi
mov r8d, dword [rbp - 0x34]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x34], r8d
cmp r15, rbx
mov rdi, qword [rsp + 0x38]
jne 0x14002b490
jmp 0x14002ae8b
mov r15, qword [rbp - 0x28]
jmp 0x14002b480
test r8b, r8b
je 0x14002b568
mov rax, rbx
sub rax, r15
cmp rax, 2
mov rdi, qword [rsp + 0x38]
jb 0x14002ae8b
movzx eax, word [rbp - 0x38]
cmp ax, word [r15]
sete al
test al, al
je 0x14002bbb3
xor al, al
mov dword [rbp - 0x34], eax
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x14002b568
sub rbx, rdx
mov r8, rbx
mov rcx, r15
call fcn.1400d3fe0
add rbx, r15
mov qword [rbp - 0x20], rbx
mov r15, qword [rbp - 0x28]
mov rcx, rbx
mov rax, rbx
sub rax, r15
cmp rax, 2
jl 0x14002b5a8
lea r10, [rbx - 2]
mov r9, r15
nop
lea rax, [rbp - 0x38]
lea rdx, [rbp - 0x38]
mov r8, r9
sub r8, rdx
nop
movzx edx, byte [rax]
cmp byte [r8 + rax], dl
jne 0x14002b5d4
inc rax
lea rdx, [rbp - 0x36]
cmp rax, rdx
jne 0x14002b590
mov rcx, r9
cmp rcx, rbx
mov rdi, qword [rsp + 0x38]
je 0x14002ae8b
xor r12d, r12d
cmp r15, rcx
je 0x14002b60d
mov rax, r15
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x14002b5de
lea rdx, [r8 - 0x30]
jmp 0x14002b5fe
cmp r9, r10
je 0x14002b5a8
inc r9
jmp 0x14002b580
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x14002b5ed
lea rdx, [r8 - 0x37]
jmp 0x14002b5fe
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x14002bbd4
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x14002b5c1
lea rdx, [rcx + 2]
cmp r15, rdx
je 0x14002b62f
sub rbx, rdx
mov r8, rbx
mov rcx, r15
call fcn.1400d3fe0
add rbx, r15
mov qword [rbp - 0x20], rbx
mov r15, qword [rbp - 0x28]
test r12, r12
jne 0x14002b48b
test r15, r15
je 0x14002b681
mov rdx, qword [rbp - 0x18]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x14002b669
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbf5
mov rcx, r15
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b691
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002b6db
mov rdx, qword [rbp + 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b6c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbfb
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x40]
jmp 0x14002b7ea
sub rbx, r15
mov rdx, qword [rsp + 0x40]
mov rdx, qword [rdx + 0x48]
mov r9, rbx
mov r8, r15
mov r15, qword [rsp + 0x40]
lea rcx, [r15 + 0x40]
call fcn.140034f90
mov rcx, qword [rbp - 0x28]
cmp rcx, qword [rbp - 0x20]
je 0x14002b71f
mov qword [rbp - 0x20], rcx
cmp byte [rsp + 0x31], 0
je 0x14002ae90
mov rax, qword [r15 + 0x48]
sub rax, qword [r15 + 0x40]
cmp rax, rdi
jb 0x14002ae90
test rcx, rcx
je 0x14002b781
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b76c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbf5
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b791
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002b7db
mov rdx, qword [rbp + 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b7c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbfb
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, r15
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.1400a4170
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 r10, r10
je 0x14002b866
mov rdx, qword [rbp - 0x18]
sub rdx, r10
mov rax, r10
cmp rdx, 0x1000
jb 0x14002b84e
add rdx, 0x27
mov r10, qword [r10 - 8]
sub rax, r10
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbf5
mov rcx, r10
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b876
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002b8c0
mov rdx, qword [rbp + 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b8ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbfb
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x14002b7e7
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14002b91b
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b906
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbf5
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], 0
cmp rsi, 0xffffffffffffffff
je 0x14002b92b
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14002b975
mov rdx, qword [rbp + 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002b960
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002bbfb
call fcn.1400a44dc
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], 0
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x14002b7e7
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x18]
call fcn.140029800
lea rdx, [0x14012c1e8]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
nop
lea r9, str.Failed_to_connect
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 0x18]
call fcn.140029800
lea rdx, [0x14012c1e8]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
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 + 0x18]
call fcn.14002f760
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.1400272a0
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
nop
call fcn.14000a400
int3
call fcn.140007a80
int3
call fcn.1400aa3b0
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.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
int3
lea rcx, [rsp + 0x48]
call fcn.140029a70
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_option
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_send_data
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_read_data
lea rcx, [rsp + 0x60]
call fcn.140027360
lea rdx, [0x14012bf70]
lea rcx, [rsp + 0x60]
call fcn.1400a640c
nop
lea r8, [rbp + 0x38]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x60]
call fcn.14002f760
nop
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.14002c010
lea rdx, [0x14012c230]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp + 0x18]
call fcn.140029a80
lea rdx, [0x14012c230]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
int3
call fcn.14000a400
int3
call fcn.1400aa3b0
nop
call fcn.1400aa3b0
nop
call fcn.1400aa3b0
int3
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0x18]
call fcn.140029a80
lea rdx, [0x14012c230]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp + 0x18]
call fcn.140029a80
lea rdx, [0x14012c230]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
nop
call fcn.1400aa3b0
nop
call fcn.1400aa3b0
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x18]
call fcn.140029800
lea rdx, [0x14012c1e8]
lea rcx, [rbp + 0x18]
call fcn.1400a640c
int3