Function at 0x1400afe30
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 + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1140]
mov eax, 0x1240
call fcn.1400d2790
sub rsp, rax
mov rax, qword [0x14011c028]
xor rax, rsp
mov qword [rbp + 0x1130], rax
mov r15, r9
mov rbx, r8
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov qword [rbp - 0x10], rdx
mov r12, qword [rbp + 0x11a0]
mov eax, 1
mov dword [rbp + 0x2c], eax
call qword [sym.imp.MSVCP140.dll__Query_perf_frequency]
mov rdi, rax
call qword [sym.imp.MSVCP140.dll__Query_perf_counter]
cmp rdi, 0x989680
jne 0x1400afea5
imul rax, rax, 0x64
jmp 0x1400afec0
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov rsi, qword [rbp + 0x11a8]
imul rcx, rsi, 0xf4240
add rax, rcx
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movzx eax, byte [r14 + 1]
mov r13d, reloc.WS2_32.dll_socket
test al, al
jne 0x1400aff03
lea eax, [r13 - 0x15]
jmp 0x1400aff0e
cmp al, 1
jne 0x1400b12d1
mov eax, r13d
mov dword [rbp + 0x104], eax
mov dword [rbp + 0x108], 1
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 0x10
jb 0x1400aff2d
mov rcx, qword [r14 + 0x48]
lea rdx, [r14 + 0x68]
cmp qword [rdx + 0x18], 0x10
jb 0x1400aff3b
mov rdx, qword [rdx]
lea r9, [rbp]
lea r8, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400b12ed
xorps xmm0, xmm0
movups xmmword [rbp + 0xf0], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0xf0], rax
mov rax, qword [rbp]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0xf8], rax
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 1
jb 0x1400b1333
cmp qword [rbx + 0x18], 0x10
jb 0x1400affa1
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400eb280]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x70]
call fcn.140029850
nop
lea rdx, [r14 + 0x88]
cmp qword [r14 + 0xa0], 0x10
jb 0x1400affe1
mov rdx, qword [r14 + 0x88]
mov r8, qword [r14 + 0x98]
lea rcx, [rsp + 0x70]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x60], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea r8d, [rbx + 0xb]
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp + 0x50]
call fcn.1400273b0
xorps xmm0, xmm0
movups xmmword [rbp + 0xd0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xe0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea rcx, [rbp + 0x50]
call fcn.140027180
nop
lea rcx, [rsp + 0x70]
call fcn.140027180
mov rbx, qword [r12]
mov rdi, qword [r12 + 8]
mov r12d, 0x1c01
cmp rbx, rdi
je 0x1400b0125
lea rdx, [0x1400ee8c0]
nop
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 2
jb 0x1400b133f
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400b00c8
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x30]
call fcn.140029850
bts r12d, 7
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x40]
lea rcx, [rbp + 0xd0]
call fcn.1400273b0
nop
lea rcx, [rbp + 0x30]
call fcn.140027180
add rbx, 0x20
cmp rbx, rdi
lea rdx, [0x1400ee8c0]
jne 0x1400b00a0
mov r8, qword [r15 + 8]
sub r8, qword [r15]
lea r9, [rbp + 0xad]
movabs r10, 0xcccccccccccccccd
nop dword [rax]
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 0x1400b0140
lea r8, [rbp + 0xad]
mov rdx, r9
lea rcx, [rbp - 0x60]
call fcn.14002a1d0
or r12d, 0x60
lea rcx, [r14 + 0x28]
mov rdx, qword [rcx + 0x10]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rdx
cmp rax, 6
jb 0x1400b1339
cmp qword [rcx + 0x18], 0x10
jb 0x1400b01ad
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp - 0x38]
call fcn.140029850
or r12d, 0x10
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp - 0x38]
call fcn.1400273b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x88], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
or r12d, 8
lea r9, [rbp - 0x60]
lea r8, [rbp + 0x78]
lea rcx, [rbp + 0xb0]
call fcn.140029660
or r12d, 2
lea r8d, [rbx + 4]
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0xb0]
call fcn.1400273b0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x40], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
or r12d, 4
mov dword [rsp + 0x44], r12d
lea rdx, [rbp + 0x30]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0xd0]
call fcn.1400273b0
nop
lea rcx, [rbp + 0x30]
call fcn.140027180
nop
lea rcx, [rbp + 0xb0]
call fcn.140027180
nop
lea rcx, [rbp + 0x78]
call fcn.140027180
nop
lea rcx, [rbp - 0x38]
call fcn.140027180
nop
lea rcx, [rbp - 0x60]
call fcn.140027180
xorps xmm0, xmm0
xor eax, eax
lea rbx, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae rbx, qword [rbp + 0xd0]
add rbx, qword [rbp + 0xe0]
lea r12, [rbp + 0xd0]
cmp qword [rbp + 0xe8], 0x10
cmovae r12, qword [rbp + 0xd0]
movdqu xmmword [rbp + 0xb0], xmm0
mov qword [rbp + 0xc0], rax
sub rbx, r12
je 0x1400b0387
cmp rbx, rdi
ja 0x1400b1345
cmp rbx, 0x1000
jb 0x1400b0356
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400b134b
call fcn.1400d1580
mov rcx, rax
test rax, rax
je 0x1400b1261
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400b035e
mov rcx, rbx
call fcn.1400d1580
mov qword [rbp + 0xb0], rax
lea rdi, [rax + rbx]
mov qword [rbp + 0xc0], rdi
mov r8, rbx
mov rdx, r12
mov rcx, rax
call fcn.1400d27f0
mov qword [rbp + 0xb8], rdi
jmp 0x1400b038e
mov rdi, qword [rbp + 0xb8]
mov r8, qword [r15]
mov r9, qword [r15 + 8]
sub r9, r8
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.1400c8950
movzx eax, byte [r14 + 1]
test al, al
jne 0x1400b03b8
mov r13d, 2
jmp 0x1400b03c0
cmp al, 1
jne 0x1400b128c
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 [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x1400b1351
mov dword [rbp + 0x2c], ebx
lea r8, [rbp + 0x2c]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x1400b1384
movabs r14, 0x431bde82d7b634db
test rsi, rsi
js 0x1400b047c
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 0x1400b0430
imul rax, rax, 0x64
jmp 0x1400b044b
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r12, qword [rsp + 0x68]
mov rcx, r12
sub rcx, rax
mov rax, r14
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 0x1400b048b
mov rbx, 0xffffffffffffffff
mov r12, qword [rsp + 0x68]
xor r13d, r13d
mov rax, qword [rsp + 0x60]
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 0x1400b04d1
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400b050f
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400b04b0
mov r14, qword [rbp + 0xb8]
mov r15, qword [rbp + 0xb0]
sub r14, r15
je 0x1400b063a
test rsi, rsi
js 0x1400b05b8
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 0x1400b0573
imul rax, rax, 0x64
jmp 0x1400b058e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b13f6
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400af760
mov dword [rbp + 0x28], 4
lea rax, [rbp + 0x28]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x24]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x1400b13c2
mov edx, dword [rbp + 0x24]
test edx, edx
jne 0x1400b12a8
jmp 0x1400b04d1
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 0x1400b05bf
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400af760
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 0x1400b062c
nop word [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400b0623
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 0x1400b05f0
cdqe
add r15, rax
sub r14, rax
jmp 0x1400b04e2
cmp ebx, 0xffffffff
je 0x1400b142a
movsxd rax, ebx
add r15, rax
sub r14, rax
jmp 0x1400b04e2
mov word [rbp + 0x20], 0xa0d
mov rax, qword [rsp + 0x48]
mov dword [rax], r13d
lea rcx, [rax + 8]
mov qword [rbp - 0x68], rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r13
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
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 + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x2c], eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x98], xmm1
mov qword [rbp + 0xa8], r13
mov dword [rbp + 0x24], r13d
mov byte [rsp + 0x42], 0
mov qword [rbp - 0x70], r13
mov byte [rsp + 0x41], 0
mov r12, r13
mov qword [rsp + 0x50], r13
xor r13b, r13b
mov dword [rbp + 0x28], r13d
mov r14, qword [rbp + 0xa0]
mov r15, qword [rbp + 0x98]
nop dword [rax]
test rsi, rsi
js 0x1400b073f
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 0x1400b06f3
imul rax, rax, 0x64
jmp 0x1400b070e
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, qword [rsp + 0x68]
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 0x1400b0746
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400af760
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x130]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400b07ad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400b07a4
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x130]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x1400b0775
jmp 0x1400b07ad
cmp ebx, 0xffffffff
je 0x1400b145e
movsxd r9, ebx
test ebx, ebx
je 0x1400b11e0
lea r8, [rbp + 0x130]
mov rdx, r14
lea rcx, [rbp + 0x98]
call fcn.1400c8950
mov r15, qword [rbp + 0x98]
mov r14, qword [rbp + 0xa0]
cmp dword [rbp + 0x24], 2
je 0x1400b0df8
nop word [rax + rax]
mov rbx, r14
mov rcx, r14
sub rcx, r15
movzx eax, word [rbp + 0x20]
cmp rcx, 2
jl 0x1400b082a
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x1400b0827
cmp rdx, r8
je 0x1400b082a
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400b0815
mov rbx, rdx
cmp rbx, r14
je 0x1400b0e81
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x78]
call fcn.1400c6220
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400b0864
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400d27f0
add r14, r15
mov qword [rbp + 0xa0], r14
mov rdx, qword [rbp + 0x88]
test rdx, rdx
je 0x1400b0ddf
mov r12d, dword [rbp + 0x24]
test r12d, r12d
jne 0x1400b0a0b
mov dword [rbp + 0x24], 1
lea rcx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
setae r9b
cmovae rcx, qword [rbp + 0x78]
add rdx, rcx
lea rcx, [rbp + 0x78]
test r9b, r9b
cmovne rcx, qword [rbp + 0x78]
mov r8b, 0x20
call fcn.1400d13a0
mov rbx, rax
lea rax, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
setae r9b
mov rdx, qword [rbp + 0x78]
cmovae rax, rdx
mov r8, qword [rbp + 0x88]
add rax, r8
cmp rbx, rax
je 0x1400b0dd1
inc rbx
lea rax, [rbp + 0x78]
test r9b, r9b
cmovne rax, rdx
lea rdx, [rax + r8]
mov r8b, 0x20
mov rcx, rbx
call fcn.1400d13a0
mov r13, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xor eax, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
cmp rbx, r13
jne 0x1400b0929
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], al
jmp 0x1400b093c
mov r8, r13
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140028b80
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rbx, qword [rbp + 0x50]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp + 8]
je 0x1400b10e8
cmp dword [r12], 0x22
je 0x1400b10da
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
lea rax, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
setae r10b
mov r8, qword [rbp + 0x78]
cmovae rax, r8
mov r9, qword [rbp + 0x88]
add rax, r9
cmp r13, rax
je 0x1400b0a06
lea rdx, [r13 + 1]
lea rax, [rbp + 0x78]
test r10b, r10b
cmovne rax, r8
lea r8, [rax + r9]
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xor eax, eax
mov qword [rbp + 0x40], rax
mov qword [rbp + 0x48], rax
cmp rdx, r8
jne 0x1400b09e3
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x30], al
jmp 0x1400b09ef
sub r8, rdx
lea rcx, [rbp + 0x30]
call fcn.140028b80
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp - 0x68]
call fcn.140026390
lea rcx, [rbp + 0x30]
call fcn.140027180
nop
jmp 0x1400b0dc7
cmp r12d, 1
jne 0x1400b0dd1
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
je 0x1400b0a37
lea rdx, [rbp + 0x78]
mov rcx, rax
call fcn.1400265a0
add qword [rbx + 0x30], 0x20
jmp 0x1400b0a47
lea r8, [rbp + 0x78]
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.14002aaa0
lea r12, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
setae byte [rsp + 0x40]
cmovae r12, qword [rbp + 0x78]
mov r13, qword [rbp + 0x88]
test r13, r13
je 0x1400b0a86
mov r8, r13
mov edx, 0x3a
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400b0a86
sub rbx, r12
jmp 0x1400b0a8d
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1400b14cc
xorps xmm0, xmm0
movups xmmword [rbp + 0x50], xmm0
xor eax, eax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
mov r8, rbx
cmp r13, rbx
cmovb r8, r13
lea rdx, [rbp + 0x78]
cmp byte [rsp + 0x40], al
cmovne rdx, qword [rbp + 0x78]
lea rcx, [rbp + 0x50]
call fcn.140028b80
mov r12d, dword [rsp + 0x44]
bts r12d, 8
mov dword [rbp + 0x2c], r12d
lea r10, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
setae cl
mov r9, qword [rbp + 0x50]
cmovae r10, r9
lea rdx, [rbp + 0x50]
mov r11, qword [rbp + 0x60]
test cl, cl
je 0x1400b0afb
add r11, r9
jmp 0x1400b0b02
add r11, rdx
lea r9, [rbp + 0x50]
cmp r9, r11
je 0x1400b0b32
sub r10, 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 [r9 + r10], cl
inc r9
cmp r9, r11
jne 0x1400b0b10
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x30], xmm0
xor r13d, r13d
mov qword [rbp + 0x40], r13
mov qword [rbp + 0x48], r13
mov rax, qword [rbp + 0x88]
cmp rax, rbx
jb 0x1400b14c6
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x78]
cmp qword [rbp + 0x90], 0x10
cmovae rdx, qword [rbp + 0x78]
add rdx, rbx
lea rcx, [rbp + 0x30]
call fcn.140028b80
bts r12d, 9
mov dword [rsp + 0x44], r12d
mov dword [rbp + 0x2c], r12d
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
setae r9b
mov r8, qword [rbp + 0x30]
cmovae rdx, r8
mov rbx, qword [rbp + 0x40]
add rdx, rbx
lea rax, [rbp + 0x30]
test r9b, r9b
cmovne rax, r8
cmp rax, rdx
je 0x1400b0bd5
nop
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x1400b0bcd
cmp cl, 9
jne 0x1400b0bd5
inc rax
cmp rax, rdx
jne 0x1400b0bc0
lea rcx, [rbp + 0x30]
mov rdx, r13
test r9b, r9b
je 0x1400b0bf3
sub rax, r8
mov rcx, rbx
sub rcx, r13
cmp rcx, rax
cmovb rax, rcx
jmp 0x1400b0c01
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea r8, [rbp + 0x30]
lea rcx, [r8 + rdx]
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.1400d27f0
mov qword [rbp + 0x40], rbx
lea r9, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
setae r11b
mov r10, qword [rbp + 0x30]
cmovae r9, r10
add r9, rbx
lea rcx, [rbp + 0x30]
test r11b, r11b
je 0x1400b0c47
mov rcx, r10
mov rax, r10
jmp 0x1400b0c4b
lea rax, [rbp + 0x30]
lea rdx, [rax + rbx]
cmp rdx, rcx
je 0x1400b0c7c
nop dword [rax]
nop dword [rax + rax]
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x1400b0c74
cmp r8b, 9
jne 0x1400b0c7c
mov rdx, rax
cmp rax, rcx
jne 0x1400b0c60
lea rax, [rbp + 0x30]
sub r9, rdx
test r11b, r11b
je 0x1400b0c8d
sub rdx, r10
jmp 0x1400b0c94
sub rdx, rax
lea r10, [rbp + 0x30]
mov rax, rbx
sub rax, rdx
cmp rax, r9
cmovb r9, rax
lea rcx, [r10 + rdx]
sub rbx, r9
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + r9]
call fcn.1400d27f0
mov qword [rbp + 0x40], rbx
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
setae dl
mov byte [rsp + 0x40], dl
mov r13, qword [rbp + 0x50]
cmovae rcx, r13
mov r12, qword [rbp + 0x60]
cmp r12, 0xe
jne 0x1400b0d66
mov r8, r12
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400b0d61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rbx, qword [rbp + 0x30]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 0x10]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0x10]
je 0x1400b1104
cmp dword [r12], 0x22
je 0x1400b10f6
mov edx, eax
mov qword [rbp - 0x70], rdx
mov byte [rsp + 0x42], 1
mov rcx, qword [rsp + 0x48]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp rdx, rax
jbe 0x1400b0dbd
call fcn.1400c4f40
jmp 0x1400b0dbd
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x50]
test dl, dl
cmovne rcx, r13
cmp r12, 0x11
jne 0x1400b0dbd
mov r8, r12
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400b0dbd
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rcx, qword [rbp + 0x30]
cmp rbx, 7
jne 0x1400b1492
mov r8, rbx
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400b1492
mov byte [rsp + 0x41], 1
lea rcx, [rbp + 0x30]
call fcn.140027180
nop
lea rcx, [rbp + 0x50]
call fcn.140027180
nop
lea rcx, [rbp + 0x78]
call fcn.140027180
jmp 0x1400b07f0
mov dword [rbp + 0x24], 2
lea rcx, [rbp + 0x78]
call fcn.140027180
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x28]
movzx eax, word [rbp + 0x20]
cmp byte [rsp + 0x41], 0
je 0x1400b0fc4
test r12, r12
je 0x1400b0e99
mov rax, r14
sub rax, r15
mov rbx, r12
cmp rax, r12
cmovb rbx, rax
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + 0x48]
mov r9, rbx
mov r8, r15
add rcx, 0x40
call fcn.1400c8950
lea rdx, [rbx + r15]
cmp r15, rdx
je 0x1400b0e59
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400d27f0
add r14, r15
mov qword [rbp + 0xa0], r14
sub r12, rbx
mov qword [rsp + 0x50], r12
movzx r13d, r13b
mov eax, 1
cmove r13d, eax
mov dword [rbp + 0x28], r13d
cmp r15, r14
je 0x1400b06d0
movzx eax, word [rbp + 0x20]
jmp 0x1400b0e07
cmp dword [rbp + 0x24], 2
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x28]
jne 0x1400b06d0
jmp 0x1400b0dfc
test r13b, r13b
je 0x1400b0ee9
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jb 0x1400b06d0
cmp ax, word [r15]
sete cl
test cl, cl
je 0x1400b1500
xor r13b, r13b
mov dword [rbp + 0x28], r13d
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x1400b0ee9
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400d27f0
add r14, r15
mov qword [rbp + 0xa0], r14
movzx eax, word [rbp + 0x20]
mov rbx, r14
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jl 0x1400b0f25
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x1400b0f22
nop word [rax + rax]
cmp rdx, r8
je 0x1400b0f25
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400b0f10
mov rbx, rdx
cmp rbx, r14
je 0x1400b06d0
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x50]
call fcn.1400c6220
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400b0f5f
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400d27f0
add r14, r15
mov qword [rbp + 0xa0], r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0x50]
cmp qword [rbp + 0x68], 0x10
cmovae rbx, qword [rbp + 0x50]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x18]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0x18]
je 0x1400b11d2
cmp dword [r12], 0x22
je 0x1400b11c4
mov r12d, eax
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0x50]
test eax, eax
je 0x1400b1112
call fcn.140027180
movzx eax, word [rbp + 0x20]
jmp 0x1400b0e07
mov r9, r14
sub r9, r15
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x48]
mov r8, r15
lea rcx, [rbx + 0x40]
call fcn.1400c8950
cmp r15, r14
cmovne r14, r15
mov qword [rbp + 0xa0], r14
cmp byte [rsp + 0x42], 0
je 0x1400b06d0
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
cmp rax, qword [rbp - 0x70]
jb 0x1400b06d0
test r15, r15
je 0x1400b1047
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400b103e
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b1210
mov rcx, r15
call fcn.1400d18dc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400b1092
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b108c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b1261
call fcn.1400d18dc
nop
lea rcx, [rbp + 0xd0]
call fcn.140027180
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x1130]
xor rcx, rsp
call fcn.1400d1560
mov rbx, qword [rsp + 0x1298]
add rsp, 0x1240
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
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 fcn.140027180
nop
test r15, r15
je 0x1400b1158
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400b114f
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b114f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400d18dc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400b11a6
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b11a0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b11a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d18dc
nop
lea rcx, [rbp + 0xd0]
call fcn.140027180
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400b10ab
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 r15, r15
je 0x1400b1220
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400b1217
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b1217
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400d18dc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400b126e
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400b1268
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b1268
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d18dc
nop
lea rcx, [rbp + 0xd0]
call fcn.140027180
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400b10ab
lea rcx, [rsp + 0x70]
call fcn.1400af590
lea rdx, [0x140117d68]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400a66f0
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x50]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x70]
call fcn.1400af590
lea rdx, [0x140117d68]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea r8, [r14 + 0x48]
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp - 0x60]
call fcn.140027660
mov rdi, rax
call fcn.1400a66f0
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
mov r9, rdi
mov r8, rbx
lea rcx, [rbp - 0x38]
call fcn.1400a6480
lea rdx, [0x140117cc8]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140003100
nop
call fcn.140003100
nop
call fcn.140003100
int3
call fcn.140029b40
int3
call fcn.140003060
nop
call fcn.1400a66f0
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 - 0x60]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x58]
call fcn.1400af8c0
call fcn.1400a66f0
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 - 0x38]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400a66f0
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 + 0x50]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400a66f0
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 + 0x50]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.1400a66f0
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 + 0x50]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400a66f0
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 - 0x60]
call fcn.1400a64c0
lea rdx, [0x140117cc8]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x30]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp - 0x60]
call fcn.140027660
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400af670
lea rdx, [0x140117db0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140027640
nop
lea r8, [rbp + 0x78]
lea rdx, str.Invalid_header:
lea rcx, [rbp - 0x60]
call fcn.140027660
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400af670
lea rdx, [0x140117db0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_chunk
lea rcx, [rsp + 0x70]
call fcn.1400af600
lea rdx, [0x140117db0]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3