Function at 0x1400aae70
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1200]
mov eax, 0x1300
call fcn.1400c6950
sub rsp, rax
mov r12, r9
mov rbx, r8
mov r14, rcx
mov r15d, 1
mov dword [rsp + 0x54], r15d
lea rcx, [rbp + 0x1240]
call fcn.14005be10
mov rsi, qword [rbp + 0x1268]
imul rcx, rsi, 0xf4240
add rcx, qword [rax]
mov qword [rbp + 0x20], rcx
lea rcx, [r14 + 8]
cmp qword [r14 + 0x20], 0xf
jbe 0x1400aaede
mov rcx, qword [r14 + 8]
mov r8, qword [r14 + 0x18]
cmp r8, 4
jne 0x1400ac30d
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400ac30d
xorps xmm0, xmm0
movups xmmword [rbp + 0x1b0], xmm0
movups xmmword [rbp + 0x1c0], xmm0
movups xmmword [rbp + 0x1d0], xmm0
movzx eax, byte [r14 + 1]
mov r13d, reloc.WS2_32.dll_socket
test al, al
jne 0x1400aaf2d
lea eax, [r13 - 0x15]
jmp 0x1400aaf39
cmp al, r15b
jne 0x1400ac2c3
mov eax, r13d
mov dword [rbp + 0x1b4], eax
mov dword [rbp + 0x1b8], r15d
lea rdx, [r14 + 0x68]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400aaf54
mov rdx, qword [rdx]
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 0xf
jbe 0x1400aaf63
mov rcx, qword [r14 + 0x48]
lea r9, [rbp + 0x98]
lea r8, [rbp + 0x1b0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400ac32e
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x160], rax
mov rax, qword [rbp + 0x98]
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x168], rax
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rax, 1
jb 0x1400ac37d
cmp qword [rbx + 0x18], 0xf
jbe 0x1400aafc7
mov rbx, qword [rbx]
mov qword [rsp + 0x30], r15
lea rax, [0x1400ddb58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rbp + 0x1e0]
call fcn.14004cca0
nop
lea rdx, [r14 + 0x88]
cmp qword [r14 + 0xa0], 0xf
jbe 0x1400ab005
mov rdx, qword [r14 + 0x88]
mov r8, qword [r14 + 0x98]
lea rcx, [rbp + 0x1e0]
call fcn.14004fde0
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x108], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xf8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x108], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], bl
lea r8d, [rbx + 0xb]
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp + 0xf8]
call fcn.14004fde0
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x38], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x38], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], send
mov byte [rax], bl
mov eax, 0x1c01
mov dword [rsp + 0x48], eax
lea rcx, [rbp + 0xf8]
call fcn.14004bc40
nop
lea rcx, [rbp + 0x1e0]
call fcn.14004bc40
mov rax, qword [rbp + 0x1260]
mov rbx, qword [rax]
mov r15, qword [rax + 8]
cmp rbx, r15
je 0x1400ab157
lea rdx, [0x1400d3cb0]
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 2
jb 0x1400ac389
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x1400ab101
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x50]
call fcn.14004cca0
or dword [rsp + 0x48], 4
lea rdx, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rdx, qword [rbp - 0x50]
mov r8, qword [rbp - 0x40]
lea rcx, [rbp + 0x28]
call fcn.14004fde0
nop
lea rcx, [rbp - 0x50]
call fcn.14004bc40
add rbx, 0x20
cmp rbx, r15
lea rdx, [0x1400d3cb0]
jne 0x1400ab0e0
mov r8, qword [r12 + 8]
sub r8, qword [r12]
lea r9, [rbp - 0x3b]
movabs r10, 0xcccccccccccccccd
nop
dec r9
mov rax, r10
mul r8
shr rdx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8, rdx
test rdx, rdx
jne 0x1400ab170
lea r8, [rbp - 0x3b]
mov rdx, r9
lea rcx, [rbp + 0xd0]
call fcn.140050cf0
mov ebx, dword [rsp + 0x48]
or ebx, 0x18
lea rax, [r14 + 0x28]
mov rcx, qword [rax + 0x10]
sub rdi, rcx
cmp rdi, 6
jb 0x1400ac383
cmp qword [rax + 0x18], 0xf
jbe 0x1400ab1d3
mov rax, qword [rax]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp + 0x138]
call fcn.14004cca0
or ebx, 0x20
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp + 0x138]
call fcn.14004fde0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x190], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x1a0], xmm1
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], r15b
or ebx, 0x40
lea r9, [rbp + 0xd0]
lea r8, [rbp + 0x190]
lea rcx, [rbp + 0x70]
call fcn.1400770c0
bts ebx, 7
lea r8d, [r15 + 4]
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0x70]
call fcn.14004fde0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x170], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x180], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], send
mov byte [rax], r15b
or ebx, 2
mov dword [rsp + 0x48], ebx
lea rdx, [rbp + 0x170]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x28]
call fcn.14004fde0
nop
lea rcx, [rbp + 0x170]
call fcn.14004bc40
nop
lea rcx, [rbp + 0x70]
call fcn.14004bc40
nop
lea rcx, [rbp + 0x190]
call fcn.14004bc40
nop
lea rcx, [rbp + 0x138]
call fcn.14004bc40
nop
lea rcx, [rbp + 0xd0]
call fcn.14004bc40
lea rdi, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rdi, qword [rbp + 0x28]
add rdi, qword [rbp + 0x38]
lea rbx, [rbp + 0x28]
cmp qword [rbp + 0x40], 0xf
cmova rbx, qword [rbp + 0x28]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r15
sub rdi, rbx
je 0x1400ab360
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.14006d170
mov r8, rdi
mov rdx, rbx
mov rbx, qword [rbp - 0x68]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rdx, [rbx + rdi]
mov qword [rbp - 0x60], rdx
jmp 0x1400ab364
mov rdx, qword [rbp - 0x60]
mov r8, qword [r12]
mov r9, qword [r12 + 8]
sub r9, r8
lea rcx, [rbp - 0x68]
call fcn.1400ae0e0
movzx eax, byte [r14 + 1]
test al, al
jne 0x1400ab38a
mov r13d, 2
jmp 0x1400ab392
cmp al, 1
jne 0x1400ac574
mov ebx, 1
lea r8d, [rbx + 5]
mov edx, ebx
mov ecx, r13d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
mov qword [rbp + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x1400ac38f
mov dword [rbp + 0x1268], ebx
lea r8, [rbp + 0x1268]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400ac3c8
movabs rbx, 0x431bde82d7b634db
test rsi, rsi
js 0x1400ab429
lea rcx, [rbp + 0x1240]
call fcn.14005be10
mov r12, qword [rbp + 0x20]
mov rcx, r12
sub rcx, qword [rbp + 0x1240]
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 0x1400ab437
mov rbx, 0xffffffffffffffff
mov r12, qword [rbp + 0x20]
xor r13d, r13d
mov rax, qword [rbp + 0x18]
mov r14d, dword [rax + 0x10]
mov r15, qword [rax + 0x20]
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400ab478
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400ab4d3
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400ab457
mov ebx, 1
mov r14, qword [rbp - 0x60]
mov r15, qword [rbp - 0x68]
sub r14, r15
je 0x1400ab5b6
nop
test rsi, rsi
js 0x1400ab540
lea rcx, [rbp + 0x1240]
call fcn.14005be10
mov rcx, r12
sub rcx, qword [rbp + 0x1240]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, r13
jmp 0x1400ab547
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400ac43f
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.1400aa420
mov dword [rbp + 0x1240], 4
lea rax, [rbp + 0x1240]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400ac40b
mov edx, dword [rsp + 0x54]
test edx, edx
jne 0x1400ac2e4
jmp 0x1400ab47d
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rbp + 0x10]
call fcn.1400aa420
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400ab5a1
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400ab598
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400ab570
jmp 0x1400ab5a1
cmp ebx, 0xffffffff
je 0x1400ac473
movsxd rax, ebx
add r15, rax
sub r14, rax
je 0x1400ab5b6
mov ebx, 1
jmp 0x1400ab490
mov word [rsp + 0x44], 0xa0d
mov rax, qword [rbp + 0x1248]
mov dword [rax], r13d
lea rcx, [rax + 8]
mov qword [rbp + 0xb0], rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], send
mov byte [rcx], 0
mov qword [rax + 0x28], r13
mov qword [rax + 0x30], r13
mov qword [rax + 0x38], r13
mov qword [rax + 0x40], r13
mov qword [rax + 0x48], r13
mov qword [rax + 0x50], r13
mov eax, dword [rsp + 0x48]
or eax, 1
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x54], eax
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
mov dword [rsp + 0x4c], r13d
mov byte [rbp + 0x1240], 0
mov qword [rbp + 0x48], r13
mov byte [rbp + 0x1268], 0
mov r15, r13
mov qword [rbp - 0x30], r13
xor r13b, r13b
mov dword [rsp + 0x50], r13d
mov r14, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
test rsi, rsi
js 0x1400ab68a
lea rcx, [rbp + 0xa0]
call fcn.14005be10
mov rcx, qword [rbp + 0x20]
sub rcx, qword [rbp + 0xa0]
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 0x1400ab691
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rbp + 0x10]
call fcn.1400aa420
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400ab6f8
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400ab6ef
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x200]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400ab6c0
jmp 0x1400ab6f8
cmp ebx, 0xffffffff
je 0x1400ac4a7
movsxd r9, ebx
test ebx, ebx
je 0x1400ac21d
lea r8, [rbp + 0x200]
mov rdx, r14
lea rcx, [rbp - 0x28]
call fcn.1400ae0e0
mov r12, qword [rbp - 0x28]
mov r14, qword [rbp - 0x20]
cmp dword [rsp + 0x4c], 2
je 0x1400abe23
nop dword [rax]
mov rbx, r14
mov rcx, r14
sub rcx, r12
movzx eax, word [rsp + 0x44]
cmp rcx, 2
jl 0x1400ab76c
lea r8, [r14 - 2]
cmp ax, word [r12]
sete cl
mov rdx, r12
test cl, cl
jne 0x1400ab769
cmp rdx, r8
je 0x1400ab76c
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400ab757
mov rbx, rdx
cmp rbx, r14
je 0x1400abeaf
mov r8, rbx
mov rdx, r12
lea rcx, [rsp + 0x78]
call fcn.1400adec0
nop
lea rdx, [rbx + 2]
cmp r12, rdx
je 0x1400ab7a4
sub r14, rdx
mov r8, r14
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r14, r12
mov qword [rbp - 0x20], r14
mov rdx, qword [rbp - 0x78]
test rdx, rdx
je 0x1400abe08
mov ebx, dword [rsp + 0x4c]
test ebx, ebx
jne 0x1400ab98a
mov dword [rsp + 0x4c], 1
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
seta r9b
cmova rcx, qword [rsp + 0x78]
add rdx, rcx
lea rcx, [rsp + 0x78]
test r9b, r9b
cmovne rcx, qword [rsp + 0x78]
mov r8b, 0x20
call fcn.1400c70f0
lea rcx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
seta r10b
mov r8, qword [rsp + 0x78]
cmova rcx, r8
mov r9, qword [rbp - 0x78]
add rcx, r9
cmp rax, rcx
je 0x1400abdf9
lea rbx, [rax + 1]
lea rdx, [rsp + 0x78]
test r10b, r10b
cmovne rdx, r8
add rdx, r9
mov r8b, 0x20
mov rcx, rbx
call fcn.1400c70f0
mov r15, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xor eax, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
cmp rbx, r15
jne 0x1400ab861
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], send
mov byte [rbp + 0x50], al
jmp 0x1400ab874
mov r8, r15
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.14004bfd0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r13, rax
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0xf
cmova rbx, qword [rbp + 0x50]
xor eax, eax
mov dword [r13], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 0xa8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp + 0xa8]
je 0x1400ac11d
cmp dword [r13], 0x22
je 0x1400ac10f
mov rcx, qword [rbp + 0x1248]
mov dword [rcx], eax
lea rax, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
seta r10b
mov r8, qword [rsp + 0x78]
cmova rax, r8
mov r9, qword [rbp - 0x78]
add rax, r9
cmp r15, rax
je 0x1400ab97c
lea rdx, [r15 + 1]
lea rax, [rsp + 0x78]
test r10b, r10b
cmovne rax, r8
lea r8, [rax + r9]
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
cmp rdx, r8
jne 0x1400ab924
mov qword [rbp - 0x38], send
mov byte [rbp - 0x50], al
jmp 0x1400ab930
sub r8, rdx
lea rcx, [rbp - 0x50]
call fcn.14004bfd0
lea rdx, [rbp - 0x50]
mov rcx, qword [rbp + 0xb0]
call fcn.140069c80
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x1400ab97c
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ab976
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac108
call fcn.1400c62ec
nop
lea rcx, [rbp + 0x50]
call fcn.14004bc40
jmp 0x1400abdf9
cmp ebx, 1
jne 0x1400abdf9
mov rbx, qword [rbp + 0x1248]
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
je 0x1400ab9b8
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.14004c7c0
add qword [rbx + 0x30], 0x20
jmp 0x1400ab9c9
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.14006c230
lea r15, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
seta byte [rsp + 0x40]
cmova r15, qword [rsp + 0x78]
mov r13, qword [rbp - 0x78]
test r13, r13
je 0x1400aba04
mov r8, r13
mov edx, 0x3a
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400aba04
sub rbx, r15
jmp 0x1400aba0b
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1400ac51d
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
xor eax, eax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov r8, rbx
cmp r13, rbx
cmovb r8, r13
lea rdx, [rsp + 0x78]
cmp byte [rsp + 0x40], al
cmovne rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x10]
call fcn.14004bfd0
mov r15d, dword [rsp + 0x48]
bts r15d, 8
mov dword [rsp + 0x54], r15d
lea r11, [rbp - 0x10]
cmp qword [rbp + 8], 0xf
seta cl
mov r9, qword [rbp - 0x10]
cmova r11, r9
lea rdx, [rbp - 0x10]
mov r10, qword [rbp]
test cl, cl
je 0x1400aba7c
add r10, r9
jmp 0x1400aba83
add r10, rdx
lea r9, [rbp - 0x10]
cmp r9, r10
je 0x1400abab2
sub r11, r9
nop dword [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 [r9 + r11], cl
inc r9
cmp r9, r10
jne 0x1400aba90
inc rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xor r13d, r13d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov rax, qword [rbp - 0x78]
cmp rax, rbx
jb 0x1400ac517
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rdx, qword [rsp + 0x78]
add rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14004bfd0
bts r15d, 9
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x54], r15d
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
seta r9b
mov r8, qword [rsp + 0x58]
cmova rdx, r8
mov r15, qword [rsp + 0x68]
add rdx, r15
lea rax, [rsp + 0x58]
test r9b, r9b
cmovne rax, r8
cmp rax, rdx
je 0x1400abb5a
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x1400abb52
cmp cl, 9
jne 0x1400abb5a
inc rax
cmp rax, rdx
jne 0x1400abb45
lea rcx, [rsp + 0x58]
mov rdx, r13
test r9b, r9b
je 0x1400abb79
sub rax, r8
mov rcx, r15
sub rcx, r13
cmp rcx, rax
cmovb rax, rcx
jmp 0x1400abb88
sub rax, rcx
cmp r15, rax
cmovb rax, r15
lea r8, [rsp + 0x58]
lea rcx, [r8 + rdx]
sub r15, rax
mov r8, r15
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x68], r15
lea r9, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
seta r11b
mov r10, qword [rsp + 0x58]
cmova r9, r10
add r9, r15
lea rcx, [rsp + 0x58]
test r11b, r11b
je 0x1400abbd3
mov rcx, r10
mov rax, r10
jmp 0x1400abbd8
lea rax, [rsp + 0x58]
lea rdx, [r15 + rax]
cmp rdx, rcx
je 0x1400abbfd
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x1400abbf5
cmp r8b, 9
jne 0x1400abbfd
mov rdx, rax
cmp rax, rcx
jne 0x1400abbe1
lea rax, [rsp + 0x58]
sub r9, rdx
test r11b, r11b
je 0x1400abc0f
sub rdx, r10
jmp 0x1400abc17
sub rdx, rax
lea r10, [rsp + 0x58]
mov rax, r15
sub rax, rdx
cmp rax, r9
cmovb r9, rax
lea rcx, [r10 + rdx]
sub r15, r9
mov r8, r15
sub r8, rdx
inc r8
lea rdx, [rcx + r9]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x68], r15
lea rcx, [rbp - 0x10]
mov rbx, qword [rbp + 8]
cmp rbx, 0xf
seta al
mov byte [rsp + 0x40], al
cmova rcx, qword [rbp - 0x10]
mov r13, qword [rbp]
cmp r13, 0xe
jne 0x1400abd0c
mov r8, r13
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400abd07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15, rax
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rbx, qword [rsp + 0x58]
xor r13d, r13d
mov dword [rax], r13d
lea r8d, [r13 + 0xa]
lea rdx, [rbp + 0xb8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0xb8]
je 0x1400ac139
cmp dword [r15], 0x22
je 0x1400ac12b
mov edx, eax
mov qword [rbp + 0x48], rdx
mov byte [rbp + 0x1240], 1
mov qword [rbp + 0xc0], rdx
mov rcx, qword [rbp + 0x1248]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp rdx, rax
jbe 0x1400abd01
lea rdx, [rbp + 0xc0]
call fcn.1400adff0
mov rbx, qword [rbp + 8]
jmp 0x1400abd6c
movzx eax, byte [rsp + 0x40]
lea rcx, [rbp - 0x10]
test al, al
cmovne rcx, qword [rbp - 0x10]
cmp r13, 0x11
jne 0x1400abd69
mov r8, r13
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400abd69
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rcx, qword [rsp + 0x58]
cmp r15, 7
jne 0x1400ac4e1
mov r8, r15
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400ac4e1
mov byte [rbp + 0x1268], 1
xor r13d, r13d
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400abdad
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400abda4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac147
call fcn.1400c62ec
mov rbx, qword [rbp + 8]
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], send
mov byte [rsp + 0x58], 0
cmp rbx, 0xf
jbe 0x1400abdf9
lea rdx, [rbx + 1]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400abdf3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac14e
call fcn.1400c62ec
nop
lea rcx, [rsp + 0x78]
call fcn.14004bc40
jmp 0x1400ab730
mov dword [rsp + 0x4c], 2
lea rcx, [rsp + 0x78]
call fcn.14004bc40
mov r15, qword [rbp - 0x30]
mov r13d, dword [rsp + 0x50]
movzx eax, word [rsp + 0x44]
cmp byte [rbp + 0x1268], 0
je 0x1400ac004
test r15, r15
je 0x1400abec8
mov rax, r14
sub rax, r12
mov rbx, r15
cmp rax, r15
cmovb rbx, rax
mov rcx, qword [rbp + 0x1248]
mov rdx, qword [rcx + 0x48]
mov r9, rbx
mov r8, r12
add rcx, 0x40
call fcn.1400ae0e0
lea rdx, [r12 + rbx]
cmp r12, rdx
je 0x1400abe86
sub r14, rdx
mov r8, r14
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r14, r12
mov qword [rbp - 0x20], r14
sub r15, rbx
mov qword [rbp - 0x30], r15
movzx r13d, r13b
mov eax, 1
cmove r13d, eax
mov dword [rsp + 0x50], r13d
cmp r12, r14
je 0x1400ab645
movzx eax, word [rsp + 0x44]
jmp 0x1400abe35
cmp dword [rsp + 0x4c], 2
mov r15, qword [rbp - 0x30]
mov r13d, dword [rsp + 0x50]
jne 0x1400ab645
jmp 0x1400abe28
test r13b, r13b
je 0x1400abf19
mov rcx, r14
sub rcx, r12
cmp rcx, 2
jb 0x1400ab645
cmp ax, word [r12]
sete cl
test cl, cl
je 0x1400ac553
xor r13b, r13b
mov dword [rsp + 0x50], r13d
lea rdx, [r12 + 2]
cmp r12, rdx
je 0x1400abf19
sub r14, rdx
mov r8, r14
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r14, r12
mov qword [rbp - 0x20], r14
movzx eax, word [rsp + 0x44]
mov rbx, r14
mov rcx, r14
sub rcx, r12
cmp rcx, 2
jl 0x1400abf55
lea r8, [r14 - 2]
cmp ax, word [r12]
sete cl
mov rdx, r12
test cl, cl
jne 0x1400abf52
nop dword [rax + rax]
cmp rdx, r8
je 0x1400abf55
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400abf40
mov rbx, rdx
cmp rbx, r14
je 0x1400ab645
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0x118]
call fcn.1400adec0
nop
lea rdx, [rbx + 2]
cmp r12, rdx
je 0x1400abf8f
sub r14, rdx
mov r8, r14
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r14, r12
mov qword [rbp - 0x20], r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15, rax
lea rbx, [rbp + 0x118]
cmp qword [rbp + 0x130], 0xf
cmova rbx, qword [rbp + 0x118]
xor eax, eax
mov dword [r15], eax
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0xc8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0xc8]
je 0x1400ac20f
cmp dword [r15], 0x22
je 0x1400ac201
mov r15d, eax
mov qword [rbp - 0x30], r15
lea rcx, [rbp + 0x118]
test eax, eax
je 0x1400ac155
call fcn.14004bc40
movzx eax, word [rsp + 0x44]
jmp 0x1400abe35
mov r9, r14
sub r9, r12
mov rbx, qword [rbp + 0x1248]
mov rdx, qword [rbx + 0x48]
mov r8, r12
lea rcx, [rbx + 0x40]
call fcn.1400ae0e0
cmp r12, r14
cmovne r14, r12
mov qword [rbp - 0x20], r14
cmp byte [rbp + 0x1240], 0
je 0x1400ab645
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
cmp rax, qword [rbp + 0x48]
jb 0x1400ab645
test r12, r12
je 0x1400ac086
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x1400ac07d
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac24b
mov rcx, r12
call fcn.1400c62ec
nop
cmp rdi, 0xffffffffffffffff
je 0x1400ac096
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400ac0d1
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac0cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400ac29c
call fcn.1400c62ec
nop
lea rcx, [rbp + 0x28]
call fcn.14004bc40
nop
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rbp + 0x1248]
mov rbx, qword [rsp + 0x1350]
add rsp, 0x1300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
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 fcn.14004bc40
nop
test r12, r12
je 0x1400ac199
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x1400ac190
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ac190
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.1400c62ec
nop
cmp rdi, 0xffffffffffffffff
je 0x1400ac1a9
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400ac1e7
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac1e1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ac1e1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c62ec
nop
lea rcx, [rbp + 0x28]
call fcn.14004bc40
nop
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400ac0e6
lea rcx, str.stoul_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
lea rcx, str.invalid_stoul_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
nop
test r12, r12
je 0x1400ac25b
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x1400ac252
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ac252
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.1400c62ec
nop
cmp rdi, 0xffffffffffffffff
je 0x1400ac26b
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400ac2a9
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400ac2a3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400ac2a3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c62ec
nop
lea rcx, [rbp + 0x28]
call fcn.14004bc40
nop
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400ac0e6
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x68]
call fcn.1400aa260
lea rdx, [0x1400f6c80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400aa250
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x70]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x68]
call fcn.1400aa260
lea rdx, [0x1400f6c80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, [r14 + 0x48]
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp + 0xd0]
call fcn.14004cc30
mov rdi, rax
call fcn.1400aa250
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
mov r9, rdi
mov r8, rbx
lea rcx, [rbp + 0x138]
call fcn.1400a9f20
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x138]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14004adb0
nop
call fcn.14004adb0
nop
call fcn.14004adb0
nop
call fcn.1400aa250
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
lea r9, str.Failed_to_create_socket
mov r8, rbx
lea rcx, [rbp + 0xd0]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp + 0x10]
call fcn.1400aa570
call fcn.1400aa250
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
mov r8, rbx
lea rcx, [rbp + 0x138]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x138]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400aa250
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_option
mov r8, rbx
lea rcx, [rbp + 0x70]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400aa250
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
mov r8, rbx
lea rcx, [rbp + 0x70]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400aa250
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_send_data
mov r8, rbx
lea rcx, [rbp + 0x70]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400aa250
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_read_data
mov r8, rbx
lea rcx, [rbp + 0xd0]
call fcn.1400a9f60
lea rdx, [0x1400f6b90]
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x58]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp + 0xd0]
call fcn.14004cc30
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400aa300
lea rdx, [0x1400f6cc8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14006a2b0
nop
lea r8, [rsp + 0x78]
lea rdx, str.Invalid_header:
lea rcx, [rbp + 0xd0]
call fcn.14004cc30
nop
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400aa300
lea rdx, [0x1400f6cc8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp - 0x50]
call fcn.1400aa2b0
lea rdx, [0x1400f6cc8]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x50]
call fcn.1400aa260
lea rdx, [0x1400f6c80]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3