Function at 0x1400a8da0
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.1400ce320
sub rsp, rax
mov rax, qword [0x14011a028]
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 0x1400a8e15
imul rax, rax, 0x64
jmp 0x1400a8e30
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 0x1400a8e73
lea eax, [r13 - 0x15]
jmp 0x1400a8e7e
cmp al, 1
jne 0x1400aa241
mov eax, r13d
mov dword [rbp + 0x104], eax
mov dword [rbp + 0x108], 1
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 0x10
jb 0x1400a8e9d
mov rcx, qword [r14 + 0x48]
lea rdx, [r14 + 0x68]
cmp qword [rdx + 0x18], 0x10
jb 0x1400a8eab
mov rdx, qword [rdx]
lea r9, [rbp]
lea r8, [rbp + 0x100]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x1400aa25d
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 0x1400aa2a3
cmp qword [rbx + 0x18], 0x10
jb 0x1400a8f11
mov rbx, qword [rbx]
mov qword [rsp + 0x30], 1
lea rax, [0x1400e8278]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
mov r9, rbx
lea rcx, [rsp + 0x70]
call fcn.140026970
nop
lea rdx, [r14 + 0x88]
cmp qword [r14 + 0xa0], 0x10
jb 0x1400a8f51
mov rdx, qword [r14 + 0x88]
mov r8, qword [r14 + 0x98]
lea rcx, [rsp + 0x70]
call fcn.140024800
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.140024800
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.1400245d0
nop
lea rcx, [rsp + 0x70]
call fcn.1400245d0
mov rbx, qword [r12]
mov rdi, qword [r12 + 8]
mov r12d, 0x1c01
cmp rbx, rdi
je 0x1400a9095
lea rdx, [0x1400ebd14]
nop
mov rcx, qword [rbx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 2
jb 0x1400aa2af
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400a9038
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.140026970
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.140024800
nop
lea rcx, [rbp + 0x30]
call fcn.1400245d0
add rbx, 0x20
cmp rbx, rdi
lea rdx, [0x1400ebd14]
jne 0x1400a9010
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 0x1400a90b0
lea r8, [rbp + 0xad]
mov rdx, r9
lea rcx, [rbp - 0x60]
call fcn.1400272f0
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 0x1400aa2a9
cmp qword [rcx + 0x18], 0x10
jb 0x1400a911d
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.140026970
or r12d, 0x10
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp - 0x38]
call fcn.140024800
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.140026780
or r12d, 2
lea r8d, [rbx + 4]
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0xb0]
call fcn.140024800
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.140024800
nop
lea rcx, [rbp + 0x30]
call fcn.1400245d0
nop
lea rcx, [rbp + 0xb0]
call fcn.1400245d0
nop
lea rcx, [rbp + 0x78]
call fcn.1400245d0
nop
lea rcx, [rbp - 0x38]
call fcn.1400245d0
nop
lea rcx, [rbp - 0x60]
call fcn.1400245d0
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 0x1400a92f7
cmp rbx, rdi
ja 0x1400aa2b5
cmp rbx, 0x1000
jb 0x1400a92c6
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x1400aa2bb
call fcn.1400cd110
mov rcx, rax
test rax, rax
je 0x1400aa1d1
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x1400a92ce
mov rcx, rbx
call fcn.1400cd110
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.1400ce380
mov qword [rbp + 0xb8], rdi
jmp 0x1400a92fe
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.1400c34f0
movzx eax, byte [r14 + 1]
test al, al
jne 0x1400a9328
mov r13d, 2
jmp 0x1400a9330
cmp al, 1
jne 0x1400aa1fc
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 0x1400aa2c1
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 0x1400aa2f4
movabs r14, 0x431bde82d7b634db
test rsi, rsi
js 0x1400a93ec
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 0x1400a93a0
imul rax, rax, 0x64
jmp 0x1400a93bb
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 0x1400a93fb
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 0x1400a9441
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400a947f
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400a9420
mov r14, qword [rbp + 0xb8]
mov r15, qword [rbp + 0xb0]
sub r14, r15
je 0x1400a95aa
test rsi, rsi
js 0x1400a9528
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 0x1400a94e3
imul rax, rax, 0x64
jmp 0x1400a94fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400aa366
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400a86d0
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 0x1400aa332
mov edx, dword [rbp + 0x24]
test edx, edx
jne 0x1400aa218
jmp 0x1400a9441
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 0x1400a952f
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.1400a86d0
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 0x1400a959c
nop word [rax + rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400a9593
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 0x1400a9560
cdqe
add r15, rax
sub r14, rax
jmp 0x1400a9452
cmp ebx, 0xffffffff
je 0x1400aa39a
movsxd rax, ebx
add r15, rax
sub r14, rax
jmp 0x1400a9452
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 0x1400a96af
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 0x1400a9663
imul rax, rax, 0x64
jmp 0x1400a967e
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 0x1400a96b6
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.1400a86d0
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 0x1400a971d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400a9714
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 0x1400a96e5
jmp 0x1400a971d
cmp ebx, 0xffffffff
je 0x1400aa3ce
movsxd r9, ebx
test ebx, ebx
je 0x1400aa150
lea r8, [rbp + 0x130]
mov rdx, r14
lea rcx, [rbp + 0x98]
call fcn.1400c34f0
mov r15, qword [rbp + 0x98]
mov r14, qword [rbp + 0xa0]
cmp dword [rbp + 0x24], 2
je 0x1400a9d68
nop word [rax + rax]
mov rbx, r14
mov rcx, r14
sub rcx, r15
movzx eax, word [rbp + 0x20]
cmp rcx, 2
jl 0x1400a979a
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x1400a9797
cmp rdx, r8
je 0x1400a979a
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400a9785
mov rbx, rdx
cmp rbx, r14
je 0x1400a9df1
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x78]
call fcn.1400c0d60
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400a97d4
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400ce380
add r14, r15
mov qword [rbp + 0xa0], r14
mov rdx, qword [rbp + 0x88]
test rdx, rdx
je 0x1400a9d4f
mov r12d, dword [rbp + 0x24]
test r12d, r12d
jne 0x1400a997b
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.1400ccf30
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 0x1400a9d41
inc rbx
lea rax, [rbp + 0x78]
test r9b, r9b
cmovne rax, rdx
lea rdx, [rax + r8]
mov r8b, 0x20
mov rcx, rbx
call fcn.1400ccf30
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 0x1400a9899
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x50], al
jmp 0x1400a98ac
mov r8, r13
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0x50]
call fcn.140025ca0
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 0x1400aa058
cmp dword [r12], 0x22
je 0x1400aa04a
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 0x1400a9976
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 0x1400a9953
mov qword [rbp + 0x48], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x30], al
jmp 0x1400a995f
sub r8, rdx
lea rcx, [rbp + 0x30]
call fcn.140025ca0
lea rdx, [rbp + 0x30]
mov rcx, qword [rbp - 0x68]
call fcn.1400238f0
lea rcx, [rbp + 0x30]
call fcn.1400245d0
nop
jmp 0x1400a9d37
cmp r12d, 1
jne 0x1400a9d41
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
je 0x1400a99a7
lea rdx, [rbp + 0x78]
mov rcx, rax
call fcn.1400239f0
add qword [rbx + 0x30], 0x20
jmp 0x1400a99b7
lea r8, [rbp + 0x78]
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.140027bc0
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 0x1400a99f6
mov r8, r13
mov edx, 0x3a
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400a99f6
sub rbx, r12
jmp 0x1400a99fd
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x1400aa43c
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.140025ca0
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 0x1400a9a6b
add r11, r9
jmp 0x1400a9a72
add r11, rdx
lea r9, [rbp + 0x50]
cmp r9, r11
je 0x1400a9aa2
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 0x1400a9a80
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 0x1400aa436
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.140025ca0
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 0x1400a9b45
nop
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x1400a9b3d
cmp cl, 9
jne 0x1400a9b45
inc rax
cmp rax, rdx
jne 0x1400a9b30
lea rcx, [rbp + 0x30]
mov rdx, r13
test r9b, r9b
je 0x1400a9b63
sub rax, r8
mov rcx, rbx
sub rcx, r13
cmp rcx, rax
cmovb rax, rcx
jmp 0x1400a9b71
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.1400ce380
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 0x1400a9bb7
mov rcx, r10
mov rax, r10
jmp 0x1400a9bbb
lea rax, [rbp + 0x30]
lea rdx, [rax + rbx]
cmp rdx, rcx
je 0x1400a9bec
nop dword [rax]
nop dword [rax + rax]
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x1400a9be4
cmp r8b, 9
jne 0x1400a9bec
mov rdx, rax
cmp rax, rcx
jne 0x1400a9bd0
lea rax, [rbp + 0x30]
sub r9, rdx
test r11b, r11b
je 0x1400a9bfd
sub rdx, r10
jmp 0x1400a9c04
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.1400ce380
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 0x1400a9cd6
mov r8, r12
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a9cd1
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 0x1400aa074
cmp dword [r12], 0x22
je 0x1400aa066
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 0x1400a9d2d
call fcn.1400bfc30
jmp 0x1400a9d2d
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0x50]
test dl, dl
cmovne rcx, r13
cmp r12, 0x11
jne 0x1400a9d2d
mov r8, r12
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400a9d2d
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 0x10
cmovae rcx, qword [rbp + 0x30]
cmp rbx, 7
jne 0x1400aa402
mov r8, rbx
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400aa402
mov byte [rsp + 0x41], 1
lea rcx, [rbp + 0x30]
call fcn.1400245d0
nop
lea rcx, [rbp + 0x50]
call fcn.1400245d0
nop
lea rcx, [rbp + 0x78]
call fcn.1400245d0
jmp 0x1400a9760
mov dword [rbp + 0x24], 2
lea rcx, [rbp + 0x78]
call fcn.1400245d0
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x28]
movzx eax, word [rbp + 0x20]
cmp byte [rsp + 0x41], 0
je 0x1400a9f34
test r12, r12
je 0x1400a9e09
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.1400c34f0
lea rdx, [rbx + r15]
cmp r15, rdx
je 0x1400a9dc9
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400ce380
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 0x1400a9640
movzx eax, word [rbp + 0x20]
jmp 0x1400a9d77
cmp dword [rbp + 0x24], 2
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x28]
jne 0x1400a9640
jmp 0x1400a9d6c
test r13b, r13b
je 0x1400a9e59
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jb 0x1400a9640
cmp ax, word [r15]
sete cl
test cl, cl
je 0x1400aa470
xor r13b, r13b
mov dword [rbp + 0x28], r13d
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x1400a9e59
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400ce380
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 0x1400a9e95
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x1400a9e92
nop word [rax + rax]
cmp rdx, r8
je 0x1400a9e95
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400a9e80
mov rbx, rdx
cmp rbx, r14
je 0x1400a9640
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x50]
call fcn.1400c0d60
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400a9ecf
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.1400ce380
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 0x1400aa142
cmp dword [r12], 0x22
je 0x1400aa134
mov r12d, eax
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0x50]
test eax, eax
je 0x1400aa082
call fcn.1400245d0
movzx eax, word [rbp + 0x20]
jmp 0x1400a9d77
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.1400c34f0
cmp r15, r14
cmovne r14, r15
mov qword [rbp + 0xa0], r14
cmp byte [rsp + 0x42], 0
je 0x1400a9640
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
cmp rax, qword [rbp - 0x70]
jb 0x1400a9640
test r15, r15
je 0x1400a9fb7
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400a9fae
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400aa180
mov rcx, r15
call fcn.1400cd46c
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400aa002
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400a9ffc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400aa1d1
call fcn.1400cd46c
nop
lea rcx, [rbp + 0xd0]
call fcn.1400245d0
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.1400cd0f0
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.1400245d0
nop
test r15, r15
je 0x1400aa0c8
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400aa0bf
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa0bf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400cd46c
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400aa116
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa110
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa110
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd46c
nop
lea rcx, [rbp + 0xd0]
call fcn.1400245d0
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400aa01b
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 0x1400aa190
mov rdx, qword [rbp + 0xa8]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x1400aa187
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa187
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.1400cd46c
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xb0]
test rcx, rcx
je 0x1400aa1de
mov rdx, qword [rbp + 0xc0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400aa1d8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400aa1d8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400cd46c
nop
lea rcx, [rbp + 0xd0]
call fcn.1400245d0
nop
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x1400aa01b
lea rcx, [rsp + 0x70]
call fcn.1400a8500
lea rdx, [0x140116508]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14009f660
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x50]
call fcn.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x70]
call fcn.1400a8500
lea rdx, [0x140116508]
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.140024ab0
mov rdi, rax
call fcn.14009f660
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
mov r9, rdi
mov r8, rbx
lea rcx, [rbp - 0x38]
call fcn.14009f3f0
lea rdx, [0x140116468]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140003030
nop
call fcn.140003030
nop
call fcn.140003030
int3
call fcn.140026c60
int3
call fcn.140002f90
nop
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x58]
call fcn.1400a8830
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14009f660
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.14009f430
lea rdx, [0x140116468]
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.140024ab0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400a85e0
lea rdx, [0x140116550]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140024a90
nop
lea r8, [rbp + 0x78]
lea rdx, str.Invalid_header:
lea rcx, [rbp - 0x60]
call fcn.140024ab0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400a85e0
lea rdx, [0x140116550]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_chunk
lea rcx, [rsp + 0x70]
call fcn.1400a8570
lea rdx, [0x140116550]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3