Function at 0x140009720
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 - 0x11b0]
mov eax, 0x12b0
call fcn.1400c7b60
sub rsp, rax
mov rax, qword [0x140111028]
xor rax, rsp
mov qword [rbp + 0x11a0], rax
mov r12, r9
mov qword [rsp + 0x58], r8
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov qword [rbp + 0x40], rdx
mov r15, qword [rbp + 0x1210]
mov edi, 1
mov eax, edi
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x98], eax
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 0x1400097a0
imul rax, rax, 0x64
jmp 0x1400097bb
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rsi, qword [rbp + 0x1218]
imul rcx, rsi, 0xf4240
add rax, rcx
mov qword [rsp + 0x78], rax
lea rcx, [r14 + 8]
mov r8, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x1400097e3
mov rcx, qword [rcx]
cmp r8, 4
jne 0x14000abb4
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000abb4
xorps xmm0, xmm0
movups xmmword [rbp + 0x168], xmm0
movups xmmword [rbp + 0x178], xmm0
movups xmmword [rbp + 0x188], xmm0
movzx eax, byte [r14 + 1]
mov r13d, reloc.WS2_32.dll_socket
test al, al
jne 0x14000982e
lea eax, [r13 - 0x15]
jmp 0x14000983a
cmp al, dil
jne 0x14000ab64
mov eax, r13d
mov dword [rbp + 0x16c], eax
mov dword [rbp + 0x170], edi
lea rdx, [r14 + 0x48]
cmp qword [rdx + 0x18], 0x10
jb 0x140009854
mov rdx, qword [rdx]
lea rdi, [r14 + 0x28]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140009865
mov rcx, qword [rdi]
lea r9, [rbp + 0x68]
lea r8, [rbp + 0x168]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x14000abdb
xorps xmm0, xmm0
movups xmmword [rbp + 0x158], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp - 0x80], rax
mov qword [rbp + 0x158], rax
mov rax, qword [rbp + 0x68]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x160], rax
lea r8, [0x1400cc68c]
mov rdx, qword [rsp + 0x58]
lea rcx, [rbp - 0x50]
call fcn.140013d10
nop
lea rdx, [r14 + 0x68]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400098d2
mov rdx, qword [rdx]
mov rcx, rax
call fcn.140013bc0
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x128], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x118], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x128], xmm1
xor ecx, ecx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], cl
mov ebx, dword [rsp + 0x44]
bts ebx, 0xa
lea r8d, [rcx + 0xb]
lea rdx, str._HTTP_1.1_r_n
lea rcx, [rbp + 0x118]
call fcn.140013bc0
xorps xmm0, xmm0
movups xmmword [rbp + 0x138], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x148], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x138], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x148], xmm1
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
bts ebx, 9
mov dword [rsp + 0x44], ebx
lea rcx, [rbp + 0x118]
call fcn.140006360
nop
lea rcx, [rbp - 0x50]
call fcn.140006360
mov rbx, qword [r15]
mov r15, qword [r15 + 8]
cmp rbx, r15
je 0x1400099e4
nop word [rax + rax]
lea r8, [0x1400cc690]
mov rdx, rbx
lea rcx, [rbp - 0x28]
call fcn.140013d10
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x1400099c2
mov rax, qword [rax]
mov rdx, rax
lea rcx, [rbp + 0x138]
call fcn.140013bc0
nop
lea rcx, [rbp - 0x28]
call fcn.140006360
add rbx, 0x20
cmp rbx, r15
jne 0x1400099a0
mov r8, qword [r12 + 8]
sub r8, qword [r12]
lea r9, [rbp + 0x10d]
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 0x140009a00
lea r8, [rbp + 0x10d]
mov rdx, r9
lea rcx, [rbp - 0x28]
call fcn.140014d10
mov ebx, dword [rsp + 0x44]
or ebx, 0x60
mov rcx, qword [rdi + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 6
jb 0x14000ac1d
cmp qword [rdi + 0x18], 0x10
jb 0x140009a69
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 6
lea r9, str.Host:
lea rcx, [rbp - 0x78]
call fcn.140006de0
or ebx, 0x10
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp - 0x78]
call fcn.140013bc0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x20], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x30], xmm1
xor edi, edi
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
or ebx, 8
lea r9, [rbp - 0x28]
lea r8, [rbp + 0x20]
lea rcx, [rbp + 0x48]
call fcn.140014a40
or ebx, 2
lea r8d, [rdi + 4]
lea rdx, [0x1400cc694]
lea rcx, [rbp + 0x48]
call fcn.140013bc0
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], dil
or ebx, 4
mov dword [rsp + 0x44], ebx
lea rdx, [rbp]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0x138]
call fcn.140013bc0
nop
lea rcx, [rbp]
call fcn.140006360
nop
lea rcx, [rbp + 0x48]
call fcn.140006360
nop
lea rcx, [rbp + 0x20]
call fcn.140006360
nop
lea rcx, [rbp - 0x78]
call fcn.140006360
nop
lea rcx, [rbp - 0x28]
call fcn.140006360
xorps xmm0, xmm0
lea rdx, [rbp + 0x138]
cmp qword [rbp + 0x150], 0x10
cmovae rdx, qword [rbp + 0x138]
mov rbx, qword [rbp + 0x148]
add rbx, rdx
lea r15, [rbp + 0x138]
cmp qword [rbp + 0x150], 0x10
cmovae r15, qword [rbp + 0x138]
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rdi
sub rbx, r15
je 0x140009c4a
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x14000ac23
cmp rbx, 0x1000
jb 0x140009c12
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000ac29
call fcn.1400c69b0
mov rcx, rax
test rax, rax
je 0x14000ab2b
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140009c1a
mov rcx, rbx
call fcn.1400c69b0
mov qword [rbp + 0xa0], rax
mov qword [rbp + 0xa8], rax
lea rdi, [rax + rbx]
mov qword [rbp + 0xb0], rdi
mov r8, rbx
mov rdx, r15
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0xa8], rdi
jmp 0x140009c51
mov rdi, qword [rbp + 0xa8]
mov r8, qword [r12]
mov r9, qword [r12 + 8]
sub r9, r8
mov rdx, rdi
lea rcx, [rbp + 0xa0]
call fcn.140014e40
movzx eax, byte [r14 + 1]
test al, al
jne 0x140009c7d
mov r13d, 2
jmp 0x140009c85
cmp al, 1
jne 0x14000ae01
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 + 0x60], rax
cmp rax, 0xffffffffffffffff
je 0x14000ac2f
mov dword [rbp + 0x98], ebx
lea r8, [rbp + 0x98]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x14000ac5f
movabs r14, 0x431bde82d7b634db
test rsi, rsi
js 0x140009d47
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 0x140009cfb
imul rax, rax, 0x64
jmp 0x140009d16
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov r12, qword [rsp + 0x78]
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 0x140009d56
mov rbx, 0xffffffffffffffff
mov r12, qword [rsp + 0x78]
xor r13d, r13d
mov rax, qword [rsp + 0x70]
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 0x140009d98
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140009dd6
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140009d77
mov r14, qword [rbp + 0xa8]
mov r15, qword [rbp + 0xa0]
sub r14, r15
je 0x140009efb
test rsi, rsi
js 0x140009e7f
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 0x140009e3a
imul rax, rax, 0x64
jmp 0x140009e55
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x14000accb
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140009110
mov dword [rbp + 0x78], 4
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x74]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x14000ac9a
mov edx, dword [rbp + 0x74]
test edx, edx
jne 0x14000ab8b
jmp 0x140009d98
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 0x140009e86
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.140009110
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 0x140009eed
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140009ee4
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 0x140009eb1
cdqe
add r15, rax
sub r14, rax
jmp 0x140009da9
cmp ebx, 0xffffffff
je 0x14000acfc
movsxd rax, ebx
add r15, rax
sub r14, rax
jmp 0x140009da9
mov word [rbp + 0x70], 0xa0d
mov r14, qword [rsp + 0x48]
xor r15d, r15d
mov dword [r14], r15d
lea r12, [r14 + 8]
mov qword [rsp + 0x68], r12
mov qword [r12], r15
mov qword [r12 + 8], r15
mov qword [r12 + 0x10], r15
mov qword [r14 + 0x20], r15
mov qword [r14 + 0x28], r15
mov qword [r14 + 0x30], r15
mov eax, dword [rsp + 0x44]
or eax, 1
mov dword [rsp + 0x44], eax
mov dword [rbp + 0x98], eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x80], xmm1
mov qword [rbp + 0x90], r15
mov ecx, r15d
mov dword [rbp + 0x74], ecx
mov byte [rsp + 0x41], cl
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x40], cl
mov r13d, r15d
mov qword [rsp + 0x50], r15
mov dword [rbp + 0x78], ecx
jmp 0x140009f75
xor r15d, r15d
test rsi, rsi
js 0x140009fdf
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 0x140009f98
imul rax, rax, 0x64
jmp 0x140009fb3
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rax, rcx
mov rcx, qword [rsp + 0x78]
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, r15
jmp 0x140009fe6
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x60]
call fcn.140009110
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x1a0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14000a04d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x14000a044
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x1a0]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x14000a015
jmp 0x14000a04d
cmp ebx, 0xffffffff
je 0x14000ad2d
movsxd r9, ebx
test ebx, ebx
je 0x14000aa8f
lea r8, [rbp + 0x1a0]
mov rdx, qword [rbp + 0x88]
lea rcx, [rbp + 0x80]
call fcn.140014e40
cmp dword [rbp + 0x74], 2
je 0x14000a64a
nop dword [rax]
mov r15, qword [rbp + 0x88]
mov rbx, r15
mov rcx, r15
mov r14, qword [rbp + 0x80]
sub rcx, r14
movzx eax, word [rbp + 0x70]
cmp rcx, 2
jl 0x14000a0c7
lea r8, [r15 - 2]
mov rdx, r14
nop dword [rax + rax]
cmp ax, word [rdx]
sete cl
test cl, cl
jne 0x14000a0c4
cmp rdx, r8
je 0x14000a0c7
inc rdx
jmp 0x14000a0b0
mov rbx, rdx
cmp rbx, r15
je 0x14000a6d7
mov r8, rbx
mov rdx, r14
lea rcx, [rbp + 0xd8]
call fcn.140013e70
nop
lea rdx, [rbx + 2]
mov r14, qword [rbp + 0x80]
cmp r14, rdx
je 0x14000a113
mov rbx, qword [rbp + 0x88]
sub rbx, rdx
mov r8, rbx
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14]
mov qword [rbp + 0x88], rax
mov rdx, qword [rbp + 0xe8]
test rdx, rdx
je 0x14000a632
mov r14d, dword [rbp + 0x74]
test r14d, r14d
jne 0x14000a26c
mov dword [rbp + 0x74], 1
xor r13d, r13d
mov r15d, r13d
lea rbx, [rbp + 0xd8]
mov r8, qword [rbp + 0xd8]
mov rcx, qword [rbp + 0xf0]
cmp rcx, 0x10
cmovae rbx, r8
nop word [rax + rax]
lea rax, [rbp + 0xd8]
cmp rcx, 0x10
setae r9b
cmovae rax, r8
add rax, rdx
cmp rbx, rax
je 0x14000a621
lea rax, [rbp + 0xd8]
test r9b, r9b
cmovne rax, r8
add rdx, rax
mov r8b, 0x20
mov rcx, rbx
call fcn.1400c5fe0
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xf8], xmm0
mov qword [rbp + 0x108], r13
mov qword [rbp + 0x110], r13
cmp rbx, rax
jne 0x14000a1d0
mov eax, reloc.WS2_32.dll_ntohs
mov qword [rbp + 0x110], rax
mov byte [rbp + 0xf8], r13b
jmp 0x14000a1ec
mov r8, r14
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0xf8]
call fcn.140006c00
mov rax, qword [rbp + 0x110]
inc r15
cmp r15, 2
jne 0x14000a215
lea rcx, [rbp + 0xf8]
cmp rax, 0x10
cmovae rcx, qword [rbp + 0xf8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
lea rcx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 0x10
cmovae rcx, qword [rbp + 0xd8]
add rcx, qword [rbp + 0xe8]
cmp r14, rcx
lea rcx, [rbp + 0xf8]
je 0x14000a262
call fcn.140006360
lea rbx, [r14 + 1]
mov rcx, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xd8]
jmp 0x14000a160
call fcn.140006360
jmp 0x14000a621
cmp r14d, 1
jne 0x14000a621
mov rax, qword [r12 + 8]
cmp rax, qword [r12 + 0x10]
je 0x14000a299
lea rdx, [rbp + 0xd8]
mov rcx, rax
call fcn.140006180
add qword [r12 + 8], 0x20
jmp 0x14000a2ab
lea r8, [rbp + 0xd8]
mov rdx, rax
mov rcx, r12
call fcn.1400155e0
lea r14, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 0x10
setae r13b
mov r12, qword [rbp + 0xd8]
cmovae r14, r12
mov r15, qword [rbp + 0xe8]
test r15, r15
je 0x14000a2f2
mov r8, r15
mov edx, 0x3a
mov rcx, r14
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000a2f2
sub rbx, r14
jmp 0x14000a2f9
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x14000ad9f
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
xor eax, eax
mov qword [rbp + 0x128], rax
mov qword [rbp + 0x130], rax
mov r8, rbx
cmp r15, rbx
cmovb r8, r15
lea rdx, [rbp + 0xd8]
test r13b, r13b
cmovne rdx, r12
lea rcx, [rbp + 0x118]
call fcn.140006c00
mov r14d, dword [rsp + 0x44]
bts r14d, 7
mov dword [rbp + 0x98], r14d
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0xb8], xmm0
xor r13d, r13d
mov qword [rbp + 0xc8], r13
mov qword [rbp + 0xd0], r13
mov rax, qword [rbp + 0xe8]
cmp rax, rbx
jb 0x14000ad99
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 0x10
cmovae rdx, qword [rbp + 0xd8]
add rdx, rbx
lea rcx, [rbp + 0xb8]
call fcn.140006c00
bts r14d, 8
mov dword [rsp + 0x44], r14d
mov dword [rbp + 0x98], r14d
lea rdx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0x10
setae r9b
mov r8, qword [rbp + 0xb8]
cmovae rdx, r8
mov rbx, qword [rbp + 0xc8]
add rdx, rbx
lea rax, [rbp + 0xb8]
test r9b, r9b
cmovne rax, r8
cmp rax, rdx
je 0x14000a418
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x14000a410
cmp cl, 9
jne 0x14000a418
inc rax
cmp rax, rdx
jne 0x14000a403
lea rcx, [rbp + 0xb8]
mov rdx, r13
test r9b, r9b
je 0x14000a439
sub rax, r8
mov rcx, rbx
sub rcx, r13
cmp rcx, rax
cmovb rax, rcx
jmp 0x14000a44a
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea r8, [rbp + 0xb8]
lea rcx, [r8 + rdx]
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0xc8], rbx
lea r9, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0x10
setae r11b
mov r10, qword [rbp + 0xb8]
cmovae r9, r10
add r9, rbx
lea rcx, [rbp + 0xb8]
test r11b, r11b
je 0x14000a49f
mov rcx, r10
mov rax, r10
jmp 0x14000a4a6
lea rax, [rbp + 0xb8]
lea rdx, [rbx + rax]
cmp rdx, rcx
je 0x14000a4cc
nop
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x14000a4c4
cmp r8b, 9
jne 0x14000a4cc
mov rdx, rax
cmp rax, rcx
jne 0x14000a4b0
lea rax, [rbp + 0xb8]
sub r9, rdx
test r11b, r11b
je 0x14000a4e0
sub rdx, r10
jmp 0x14000a4ea
sub rdx, rax
lea r10, [rbp + 0xb8]
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 sub.VCRUNTIME140.dll_memmove
mov qword [rbp + 0xc8], rbx
lea rcx, [rbp + 0x118]
cmp qword [rbp + 0x130], 0x10
setae r12b
mov r15, qword [rbp + 0x118]
cmovae rcx, r15
mov r14, qword [rbp + 0x128]
cmp r14, 0xe
jne 0x14000a59f
mov r8, r14
lea rdx, str.Content_Length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a59f
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0x10
cmovae rcx, qword [rbp + 0xb8]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov edx, eax
mov qword [rsp + 0x58], rdx
mov byte [rsp + 0x41], 1
mov rcx, qword [rsp + 0x48]
add rcx, 0x20
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp rdx, rax
jbe 0x14000a603
call fcn.1400138f0
jmp 0x14000a603
lea rcx, [rbp + 0x118]
test r12b, r12b
cmovne rcx, r15
cmp r14, 0x11
jne 0x14000a603
mov r8, r14
lea rdx, str.Transfer_Encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a603
lea rcx, [rbp + 0xb8]
cmp qword [rbp + 0xd0], 0x10
cmovae rcx, qword [rbp + 0xb8]
cmp rbx, 7
jne 0x14000ad5e
mov r8, rbx
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000ad5e
mov byte [rsp + 0x40], 1
lea rcx, [rbp + 0xb8]
call fcn.140006360
nop
lea rcx, [rbp + 0x118]
call fcn.140006360
mov r12, qword [rsp + 0x68]
lea rcx, [rbp + 0xd8]
call fcn.140006360
jmp 0x14000a080
mov dword [rbp + 0x74], 2
lea rcx, [rbp + 0xd8]
call fcn.140006360
mov r13, qword [rsp + 0x50]
mov r14, qword [rbp + 0x80]
mov r15, qword [rbp + 0x88]
movzx eax, word [rbp + 0x70]
cmp byte [rsp + 0x40], 0
je 0x14000a859
mov r8d, dword [rbp + 0x78]
nop dword [rax + rax]
test r13, r13
je 0x14000a726
sub r15, r14
mov r12, r13
cmp r15, r13
cmovb r12, r15
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rcx + 0x28]
mov r9, r12
mov r8, r14
add rcx, 0x20
call fcn.140014e40
mov r14, qword [rbp + 0x80]
lea rdx, [r12 + r14]
cmp r14, rdx
je 0x14000a6eb
mov rbx, qword [rbp + 0x88]
sub rbx, rdx
mov r8, rbx
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
lea r15, [rbx + r14]
mov qword [rbp + 0x88], r15
mov r14, qword [rbp + 0x80]
jmp 0x14000a6f2
cmp dword [rbp + 0x74], 2
mov r13, qword [rsp + 0x50]
jne 0x140009f72
jmp 0x14000a65c
mov r15, qword [rbp + 0x88]
sub r13, r12
mov qword [rsp + 0x50], r13
mov r8d, dword [rbp + 0x78]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp + 0x78], r8d
cmp r14, r15
mov r12, qword [rsp + 0x68]
je 0x140009f72
movzx eax, word [rbp + 0x70]
jmp 0x14000a670
test r8b, r8b
je 0x14000a780
mov rcx, r15
sub rcx, r14
cmp rcx, 2
mov r12, qword [rsp + 0x68]
jb 0x140009f72
cmp ax, word [r14]
sete cl
test cl, cl
je 0x14000adda
xor cl, cl
mov dword [rbp + 0x78], ecx
lea rdx, [r14 + 2]
cmp r14, rdx
je 0x14000a780
sub r15, rdx
mov r8, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
add r15, r14
mov qword [rbp + 0x88], r15
movzx eax, word [rbp + 0x70]
mov r14, qword [rbp + 0x80]
mov rbx, r15
mov rcx, r15
sub rcx, r14
cmp rcx, 2
jl 0x14000a7ad
lea r8, [r15 - 2]
mov rdx, r14
cmp ax, word [rdx]
sete cl
test cl, cl
jne 0x14000a7aa
cmp rdx, r8
je 0x14000a7ad
inc rdx
jmp 0x14000a796
mov rbx, rdx
cmp rbx, r15
mov r12, qword [rsp + 0x68]
mov r15d, 0
je 0x140009f75
mov r8, rbx
mov rdx, r14
lea rcx, [rbp + 0x118]
call fcn.140013e70
lea rdx, [rbx + 2]
mov r14, qword [rbp + 0x80]
cmp r14, rdx
je 0x14000a803
mov rbx, qword [rbp + 0x88]
sub rbx, rdx
mov r8, rbx
mov rcx, r14
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + r14]
mov qword [rbp + 0x88], rax
lea rcx, [rbp + 0x118]
cmp qword [rbp + 0x130], 0x10
cmovae rcx, qword [rbp + 0x118]
xor edx, edx
lea r8d, [rdx + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
mov r13d, eax
mov qword [rsp + 0x50], r13
lea rcx, [rbp + 0x118]
test eax, eax
je 0x14000a905
call fcn.140006360
movzx eax, word [rbp + 0x70]
mov r15, qword [rbp + 0x88]
mov r14, qword [rbp + 0x80]
jmp 0x14000a667
sub r15, r14
mov rbx, qword [rsp + 0x48]
mov rdx, qword [rbx + 0x28]
mov r9, r15
mov r8, r14
lea rcx, [rbx + 0x20]
call fcn.140014e40
mov rcx, qword [rbp + 0x80]
cmp rcx, qword [rbp + 0x88]
je 0x14000a88b
mov qword [rbp + 0x88], rcx
cmp byte [rsp + 0x41], 0
mov r15d, 0
je 0x140009f75
mov rax, qword [rbx + 0x28]
sub rax, qword [rbx + 0x20]
cmp rax, qword [rsp + 0x58]
jb 0x140009f75
test rcx, rcx
je 0x14000aa10
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a8e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000aac6
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
xor ebx, ebx
mov qword [rbp + 0x90], rbx
jmp 0x14000aa12
call fcn.140006360
nop
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14000a964
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a949
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a949
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
xor ebx, ebx
mov qword [rbp + 0x90], rbx
jmp 0x14000a966
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x14000a976
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14000a9cb
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000a9b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000a9b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rbx
lea rcx, [rbp + 0x138]
call fcn.140006360
nop
mov rcx, qword [rsp + 0x70]
call qword [rbp - 0x80]
nop
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x11a0]
xor rcx, rsp
call fcn.1400c6990
mov rbx, qword [rsp + 0x1308]
add rsp, 0x12b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor ebx, ebx
cmp rdi, 0xffffffffffffffff
je 0x14000aa22
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14000aa74
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aa5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000ab2b
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], rbx
lea rcx, [rbp + 0x138]
call fcn.140006360
nop
mov rcx, qword [rsp + 0x70]
call qword [rbp - 0x80]
nop
jmp 0x14000a9e1
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x14000aae4
mov rdx, qword [rbp + 0x90]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000aacd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000aacd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x80], xmm0
mov qword [rbp + 0x90], r15
cmp rdi, 0xffffffffffffffff
je 0x14000aaf4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x14000ab49
mov rdx, qword [rbp + 0xb0]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ab32
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000ab32
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c69f4
xorps xmm0, xmm0
movdqu xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r15
lea rcx, [rbp + 0x138]
call fcn.140006360
nop
mov rcx, qword [rsp + 0x70]
call qword [rbp - 0x80]
nop
jmp 0x14000a9e1
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0xf8]
call fcn.140008fb0
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x78]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_http_scheme_supported
lea rcx, [rbp + 0xf8]
call fcn.140008fb0
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov r8, rdi
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp - 0x50]
call fcn.140006520
mov rbx, rax
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140008e30
mov r8, rax
mov r9, rbx
lea rcx, [rbp - 0x28]
call fcn.140008ae0
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140001290
nop
call fcn.140006f20
int3
call fcn.1400011f0
nop
call sub.WS2_32.dll_WSAGetLastError
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_create_socket
lea rcx, [rbp - 0x50]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x60]
call fcn.140009270
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp - 0x28]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_get_socket_option
lea rcx, [rbp - 0x78]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x78]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_send_data
lea rcx, [rbp - 0x78]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
call fcn.140008e30
mov r8, rax
lea r9, str.Failed_to_read_data
lea rcx, [rbp - 0x50]
call fcn.140008b20
lea rdx, [0x14010d148]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0xb8]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp - 0x50]
call fcn.140006520
nop
mov rdx, rax
lea rcx, [rbp + 0xf8]
call fcn.140009020
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140006500
nop
lea r8, [rbp + 0xd8]
lea rdx, str.Invalid_header:
lea rcx, [rbp - 0x50]
call fcn.140006520
nop
mov rdx, rax
lea rcx, [rbp + 0xf8]
call fcn.140009020
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0xf8]
call fcn.140008fb0
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0xf8]
call fcn.140008fb0
lea rdx, [0x14010d270]
lea rcx, [rbp + 0xf8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3