Function at 0x140013df0
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 - 0x11a8]
mov eax, 0x12a8
call fcn.140079bc0
sub rsp, rax
movaps xmmword [rsp + 0x1290], xmm6
movaps xmmword [rsp + 0x1280], xmm7
movaps xmmword [rsp + 0x1270], xmm8
movaps xmmword [rsp + 0x1260], xmm9
mov rax, qword [0x1400c9438]
xor rax, rsp
mov qword [rbp + 0x1150], rax
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rbp - 0x30], rdx
mov r13, qword [rbp + 0x1210]
mov edi, 1
mov dword [rbp + 0x48], 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 0x140013e88
imul rax, rax, 0x64
jmp 0x140013ea3
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r14, qword [rbp + 0x1218]
imul rcx, r14, 0xf4240
add rax, rcx
mov qword [rbp - 0x80], rax
mov r8, qword [rsi + 0x18]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0x10
jb 0x140013ecb
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x140015025
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140015025
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movzx eax, byte [rsi + 1]
mov ebx, 2
test al, al
jne 0x140013f12
mov eax, ebx
jmp 0x140013f20
cmp al, dil
jne 0x140014fe1
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x124], eax
mov dword [rbp + 0x128], edi
cmp qword [rsi + 0x98], 0
jne 0x140013f3f
lea rdx, [0x1400b9b18]
jmp 0x140013f50
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0x10
jb 0x140013f50
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0x10
jb 0x140013f62
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x28]
lea r8, [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140015046
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
mov rax, qword [0x14007d748]
mov qword [rbp + 0x110], rax
mov r15, qword [rbp - 0x28]
mov qword [rsp + 0x50], r15
mov qword [rbp + 0x118], r15
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movdqu xmmword [rsp + 0x58], xmm0
xor ecx, ecx
mov qword [rsp + 0x68], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x1400140af
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x140015084
shl rdi, 6
cmp rdi, 0x1000
jb 0x14001401b
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x14001508a
call fcn.1400790f0
test rax, rax
je 0x140014014
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140014030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x14001402d
mov rcx, rdi
call fcn.1400790f0
mov rbx, rax
jmp 0x140014030
mov rbx, rcx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbx
lea rax, [rbx + rdi]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rbp + 0x48], rax
mov r15, qword [r13 + 8]
mov rdi, qword [r13]
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rbx
lea rax, [rsp + 0x58]
mov qword [rbp + 0x60], rax
cmp rdi, r15
je 0x1400140a0
mov qword [rbp], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.140022010
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.140022010
nop
add rbx, 0x40
mov qword [rbp + 0x58], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x140014071
mov qword [rsp + 0x60], rbx
mov ebx, 2
mov r15, qword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x10]
call fcn.1400134c0
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x1400140e6
cmp al, 1
jne 0x14001523e
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 + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140015090
mov dword [rbp - 0x1c], edi
lea r8, [rbp - 0x1c]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400150b9
movabs rdi, 0x431bde82d7b634db
test r14, r14
js 0x1400141a0
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 0x140014155
imul rax, rax, 0x64
jmp 0x140014170
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r12, qword [rbp - 0x80]
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 0x1400141ae
mov rbx, 0xffffffffffffffff
mov r12, qword [rbp - 0x80]
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 0x1400141f1
nop word [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140014229
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400141d0
mov rdi, qword [rbp + 0x18]
mov r15, qword [rbp + 0x10]
sub rdi, r15
je 0x14001434e
test r14, r14
js 0x1400142d2
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 0x14001428d
imul rax, rax, 0x64
jmp 0x1400142a8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14001511d
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140012e20
mov dword [rbp], 4
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x48]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400150f2
mov edx, dword [rbp + 0x48]
test edx, edx
jne 0x140015002
jmp 0x1400141f1
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 0x1400142d9
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.140012e20
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 0x140014340
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140014337
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 0x140014304
cdqe
add r15, rax
sub rdi, rax
jmp 0x1400141fc
cmp ebx, 0xffffffff
je 0x140015148
movsxd rax, ebx
add r15, rax
sub rdi, rax
jmp 0x1400141fc
mov word [rbp - 0x20], 0xa0d
mov dword [rbp + 8], 0xa0d0a0d
mov rdi, qword [rsp + 0x38]
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 + 0x48], 1
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x18], xmm1
mov qword [rbp - 8], r13
xor r13b, r13b
mov byte [rsp + 0x31], r13b
xor eax, eax
mov r15d, eax
mov qword [rbp], rax
mov byte [rsp + 0x30], al
mov r12d, eax
mov qword [rsp + 0x40], rax
mov dword [rbp - 0x1c], eax
jmp 0x1400143c9
mov rdi, qword [rsp + 0x38]
test r14, r14
js 0x140014437
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 0x1400143ec
imul rax, rax, 0x64
jmp 0x140014407
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, qword [rbp - 0x80]
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 0x14001443e
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140012e20
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400144a8
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14001449f
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140014470
jmp 0x1400144a8
cmp ebx, 0xffffffff
je 0x140015173
movsxd r9, ebx
test ebx, ebx
je 0x140014f28
lea r8, [rbp + 0x150]
mov rdx, qword [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.140023c40
test r13b, r13b
jne 0x140014b47
mov r8, qword [rbp - 0x10]
mov rax, r8
mov r9, qword [rbp - 0x18]
sub rax, r9
cmp rax, 4
jl 0x140014dd4
lea rdx, [r8 - 4]
mov rbx, r9
mov eax, dword [rbp + 8]
cmp eax, dword [rbx]
sete cl
test cl, cl
jne 0x140014509
cmp rbx, rdx
je 0x140014dd4
inc rbx
jmp 0x1400144f2
cmp rbx, r8
je 0x140014dd4
add rbx, 2
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0x90]
call fcn.140022a60
nop
mov rdi, qword [rbp + 0x90]
mov eax, dword [rbp + 0x98]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
movzx eax, word [rbp + 0x9c]
mov word [rcx + 4], ax
lea rdx, [rbp + 0xa0]
add rcx, 8
call fcn.140011490
xor r13d, r13d
nop dword [rax + rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xc0]
call fcn.140022cd0
nop
mov rdi, qword [rbp + 0xc0]
movups xmm9, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x28], xmm9
movups xmm8, xmmword [rbp + 0xd8]
movups xmmword [rbp + 0x38], xmm8
mov qword [rbp + 0xd8], r13
mov qword [rbp + 0xe0], select
mov byte [rbp + 0xc8], 0
lea r11, [rbp + 0x28]
movdqa xmm0, xmm8
psrldq xmm0, 8
movq rdx, xmm0
cmp rdx, 0x10
setae al
movq r12, xmm9
cmovae r11, r12
lea rcx, [rbp + 0x28]
movq r15, xmm8
test al, al
je 0x1400145e6
mov r9, r12
lea r10, [r15 + r12]
jmp 0x1400145ee
lea r10, [r15 + rcx]
lea r9, [rbp + 0x28]
cmp r9, r10
je 0x140014638
sub r11, r9
nop word [rax + rax]
movzx r8d, byte [r9]
lea edx, [r8 - 0x41]
lea eax, [r8 + 0x20]
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
mov byte [r11 + r9], cl
inc r9
cmp r9, r10
jne 0x140014600
mov rdx, qword [rbp + 0x40]
mov r15, qword [rbp + 0x38]
movups xmm8, xmmword [rbp + 0x38]
mov r12, qword [rbp + 0x28]
movups xmm9, xmmword [rbp + 0x28]
movups xmm7, xmmword [rbp + 0xe8]
movups xmmword [rbp + 0x70], xmm7
movups xmm6, xmmword [rbp + 0xf8]
movups xmmword [rbp + 0x80], xmm6
mov qword [rbp + 0xf8], r13
mov qword [rbp + 0x100], select
mov byte [rbp + 0xe8], 0
lea rcx, [rbp + 0x28]
cmp rdx, 0x10
setae r13b
cmovae rcx, r12
cmp r15, 0x11
jne 0x14001475f
mov r8, r15
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001475f
lea rcx, [rbp + 0x70]
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 0x1400151a2
mov r8, rax
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400151a2
mov byte [rsp + 0x30], 1
xor r13d, r13d
movaps xmmword [rbp - 0x70], xmm9
movaps xmmword [rbp - 0x60], xmm8
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], select
mov byte [rbp + 0x28], 0
movaps xmmword [rbp - 0x50], xmm7
movaps xmmword [rbp - 0x40], xmm6
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], select
mov byte [rbp + 0x70], 0
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x30]
cmp rdx, qword [rcx + 0x38]
je 0x14001484c
movups xmmword [rdx], xmm9
movups xmmword [rdx + 0x10], xmm8
mov r15d, select
mov byte [rbp - 0x70], 0
movups xmmword [rdx + 0x20], xmm7
movups xmmword [rdx + 0x30], xmm6
mov edx, r15d
mov byte [rbp - 0x50], 0
add qword [rcx + 0x30], 0x40
jmp 0x140014861
lea rcx, [rbp + 0x28]
test r13b, r13b
cmovne rcx, r12
cmp r15, 0xe
jne 0x1400146e5
mov r8, r15
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400146e5
lea r8, [rbp + 0x70]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
setae dl
movq rcx, xmm7
cmovae r8, rcx
movq r9, xmm6
add r9, r8
lea rax, [rbp + 0x70]
test dl, dl
cmovne rax, rcx
xor r13d, r13d
mov r8d, r13d
mov qword [rbp], r13
cmp rax, r9
je 0x1400147f9
nop
movsx edx, byte [rax]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x1400151d5
lea ecx, [rdx - 0x30]
movsxd rdx, ecx
lea rcx, [r8 + r8*4]
lea r8, [rdx + rcx*2]
mov qword [rbp], r8
inc rax
cmp rax, r9
jne 0x1400147d0
mov byte [rsp + 0x31], 1
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r8, rax
jbe 0x1400146e8
movabs rax, 0x7fffffffffffffff
cmp r8, rax
ja 0x1400151f6
mov rdx, r8
call fcn.140022310
movups xmm8, xmmword [rbp + 0x38]
movups xmm9, xmmword [rbp + 0x28]
movups xmm6, xmmword [rbp + 0x80]
movups xmm7, xmmword [rbp + 0x70]
jmp 0x1400146e8
lea r8, [rbp - 0x70]
add rcx, 0x28
call fcn.1400246c0
mov rdx, qword [rbp - 0x38]
mov r15, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x140014898
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014893
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014db8
call fcn.140079384
cmp r15, 0x10
jb 0x1400148d1
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400148cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014db8
call fcn.140079384
nop
mov rdx, qword [rbp + 0x88]
cmp rdi, rbx
je 0x14001498a
cmp rdx, 0x10
jb 0x140014918
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014913
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014dbf
call fcn.140079384
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], select
mov byte [rbp + 0x70], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140014969
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014964
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014dc6
call fcn.140079384
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], select
mov byte [rbp + 0x28], 0
lea rcx, [rbp + 0xc8]
call fcn.140013d40
jmp 0x140014560
cmp rdx, 0x10
jb 0x1400149c1
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400149bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014dbf
call fcn.140079384
mov qword [rbp + 0x80], r13
mov qword [rbp + 0x88], select
mov byte [rbp + 0x70], 0
mov rdx, qword [rbp + 0x40]
cmp rdx, 0x10
jb 0x140014a12
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014a0d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014dc6
call fcn.140079384
mov qword [rbp + 0x38], r13
mov qword [rbp + 0x40], select
mov byte [rbp + 0x28], 0
lea rcx, [rbp + 0xc8]
call fcn.140013d40
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x10]
cmp rdi, rdx
je 0x140014a58
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x10], rbx
mov rdi, qword [rbp - 0x18]
mov r13b, 1
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0x10
jb 0x140014aa4
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014a97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014dcd
call fcn.140079384
mov rbx, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
mov r15, qword [rbp]
mov r12, qword [rsp + 0x40]
cmp byte [rsp + 0x30], 0
je 0x140014d23
mov r8d, dword [rbp - 0x1c]
nop dword [rax]
test r12, r12
je 0x140014b54
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.140023c40
mov rdi, qword [rbp - 0x18]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x10]
cmp rdi, rdx
je 0x140014b18
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x10], rbx
mov rdi, qword [rbp - 0x18]
sub r12, r15
mov qword [rsp + 0x40], r12
mov r8d, dword [rbp - 0x1c]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x1c], r8d
cmp rdi, rbx
mov r15, qword [rbp]
je 0x1400143c4
jmp 0x140014ac0
mov rbx, qword [rbp - 0x10]
mov rdi, qword [rbp - 0x18]
jmp 0x140014aad
test r8b, r8b
je 0x140014ba6
mov rax, rbx
sub rax, rdi
cmp rax, 2
mov r15, qword [rbp]
jb 0x1400143c4
movzx eax, word [rbp - 0x20]
cmp ax, word [rdi]
sete al
test al, al
je 0x1400151fc
xor al, al
mov dword [rbp - 0x1c], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x140014ba6
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x10], rbx
mov rdi, qword [rbp - 0x18]
mov rcx, rbx
mov rax, rbx
sub rax, rdi
cmp rax, 2
jl 0x140014bdb
lea r8, [rbx - 2]
mov rdx, rdi
nop dword [rax]
movzx eax, word [rbp - 0x20]
cmp ax, word [rdx]
sete al
test al, al
jne 0x140014bd8
cmp rdx, r8
je 0x140014bdb
inc rdx
jmp 0x140014bc0
mov rcx, rdx
cmp rcx, rbx
mov r15, qword [rbp]
je 0x1400143c4
xor r15d, r15d
mov r12d, r15d
mov qword [rsp + 0x40], r15
cmp rdi, rcx
je 0x140014c47
mov rax, rdi
nop dword [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x140014c13
lea rdx, [r8 - 0x30]
jmp 0x140014c33
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x140014c22
lea rdx, [r8 - 0x37]
jmp 0x140014c33
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x14001521d
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
mov qword [rsp + 0x40], r12
inc rax
cmp rax, rcx
jne 0x140014c00
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x140014c69
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x10], rbx
mov rdi, qword [rbp - 0x18]
test r12, r12
jne 0x140014ab8
test rdi, rdi
je 0x140014cb7
mov rdx, qword [rbp - 8]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140014ca3
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f59
mov rcx, rdi
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
mov qword [rbp - 8], r15
cmp rsi, 0xffffffffffffffff
je 0x140014cc7
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140014d0d
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014cfc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014fb8
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r15
mov rcx, qword [rsp + 0x50]
call qword [0x14007d748]
nop
mov rax, qword [rsp + 0x38]
jmp 0x140014e84
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.140023c40
mov rcx, qword [rbp - 0x18]
cmp rcx, qword [rbp - 0x10]
je 0x140014d4f
mov qword [rbp - 0x10], rcx
cmp byte [rsp + 0x31], 0
je 0x1400143c9
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r15
jb 0x1400143c9
test rcx, rcx
je 0x140014ebf
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014da0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f59
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
jmp 0x140014ec1
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
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test r9, r9
je 0x140014e1d
mov rdx, qword [rbp - 8]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x140014e05
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014f59
mov rcx, r9
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
jmp 0x140014e1f
xor ebx, ebx
cmp rsi, 0xffffffffffffffff
je 0x140014e2f
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140014e75
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014e64
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014fb8
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
call qword [0x14007d748]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1150]
xor rcx, rsp
call fcn.1400790d0
lea r11, [rsp + 0x12a8]
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
cmp rsi, 0xffffffffffffffff
je 0x140014ed1
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140014f17
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014f06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140014fb8
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
call qword [0x14007d748]
nop
jmp 0x140014e81
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140014f75
mov rdx, qword [rbp - 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014f60
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014f60
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x18], xmm0
xor ebx, ebx
mov qword [rbp - 8], rbx
jmp 0x140014f77
xor ebx, ebx
cmp rsi, 0xffffffffffffffff
je 0x140014f87
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140014fd0
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014fbf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014fbf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079384
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
call qword [0x14007d748]
nop
jmp 0x140014e81
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c61d0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r9, str.Failed_to_connect
lea rcx, [rsp + 0x58]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c61d0]
lea rcx, [rbp + 0x50]
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 + 0x50]
call fcn.140022570
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x58]
call fcn.140012ac0
lea rdx, [0x1400c6078]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400222f0
int3
call fcn.140009df0
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea rcx, [rbp - 0x70]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x48]
call fcn.140012f80
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp + 0x90]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rbp + 0x90]
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, [rsp + 0x58]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rsp + 0x58]
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, [rsp + 0x58]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rsp + 0x58]
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, [rsp + 0x58]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rsp + 0x58]
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 + 0x90]
call fcn.140012b10
lea rdx, [0x1400c6078]
lea rcx, [rbp + 0x90]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x70]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x58]
call fcn.140022570
nop
mov rdx, rax
lea rcx, [rbp + 0x50]
call fcn.1400153a0
lea rdx, [0x1400c6218]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c6218]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400222f0
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c6218]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c6218]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x50]
call fcn.140012760
lea rdx, [0x1400c61d0]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3