Function at 0x140012780
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 - 0x1170]
mov eax, 0x1270
call fcn.140107af0
sub rsp, rax
mov rax, qword [0x14015d460]
xor rax, rsp
mov qword [rbp + 0x1160], rax
mov r12, r9
mov rbx, r8
mov qword [rsp + 0x48], rdx
mov r14, rcx
mov qword [rbp + 0x20], rdx
mov r15, qword [rbp + 0x11d0]
mov eax, 1
mov dword [rbp + 0x5c], 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 0x1400127f5
imul rax, rax, 0x64
jmp 0x140012810
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov rsi, qword [rbp + 0x11d8]
imul rcx, rsi, 0xf4240
add rax, rcx
mov qword [rsp + 0x68], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x128], xmm0
movups xmmword [rbp + 0x138], xmm0
movups xmmword [rbp + 0x148], xmm0
movzx eax, byte [r14 + 1]
mov r13d, reloc.WS2_32.dll_socket
test al, al
jne 0x140012853
lea eax, [r13 - 0x15]
jmp 0x14001285e
cmp al, 1
jne 0x140013d23
mov eax, r13d
mov dword [rbp + 0x12c], eax
mov dword [rbp + 0x130], 1
lea rcx, [r14 + 0x48]
cmp qword [r14 + 0x60], 0x10
jb 0x14001287d
mov rcx, qword [r14 + 0x48]
lea rdx, [r14 + 0x68]
cmp qword [rdx + 0x18], 0x10
jb 0x14001288b
mov rdx, qword [rdx]
lea r9, [rbp + 0x40]
lea r8, [rbp + 0x128]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140013d3f
xorps xmm0, xmm0
movups xmmword [rbp + 0x118], xmm0
mov rax, qword [0x1401189c8]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rbp + 0x120], rax
mov rcx, qword [rbx + 0x10]
movabs rdi, 0x7fffffffffffffff
mov rax, rdi
sub rax, rcx
cmp rax, 9
jb 0x140013d85
cmp qword [rbx + 0x18], 0x10
jb 0x1400128f4
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 9
lea r9, str._HTTPS_:
lea rcx, [rbp - 0x68]
call fcn.140007d50
nop
mov r8d, 0xa
lea rdx, str._HTTP_1.1
lea rcx, [rbp - 0x68]
call fcn.140007700
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x70], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x70], xmm1
xor ebx, ebx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], bl
lea rdx, [r14 + 0x88]
cmp qword [r14 + 0xa0], 0x10
jb 0x140012974
mov rdx, qword [r14 + 0x88]
mov r8, qword [r14 + 0x98]
lea rcx, [rbp + 0x60]
call fcn.140007700
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xa0], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xb0], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov r8d, Ordinal_41
lea rdx, str._version4.36protocol199platform0__r
lea rcx, [rbp + 0xa0]
call fcn.140007700
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
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov eax, 0x3c01
mov dword [rsp + 0x44], eax
lea rcx, [rbp + 0xa0]
call fcn.1400076a0
nop
lea rcx, [rbp + 0x60]
call fcn.1400076a0
nop
lea rcx, [rbp - 0x68]
call fcn.1400076a0
lea rdx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0x10
cmovae rdx, qword [rbp + 0xf8]
mov r8, qword [rbp + 0x108]
mov rcx, qword [0x140118768]
call fcn.1400700e0
mov rcx, rax
lea rdx, [0x140069f50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rbx, qword [r15]
mov r15, qword [r15 + 8]
cmp rbx, r15
je 0x140012b23
lea rdx, [0x1401298fc]
nop dword [rax]
mov rcx, qword [rbx + 0x10]
mov rax, rdi
sub rax, rcx
cmp rax, 2
jb 0x140013d91
mov r9, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140012ab1
mov r9, qword [rbx]
mov qword [rsp + 0x30], 2
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x80]
call fcn.140007d50
or dword [rsp + 0x44], 0x80
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
mov r8, qword [rbp + 0x90]
lea rcx, [rbp + 0xf8]
call fcn.140007700
nop
lea rcx, [rbp + 0x80]
call fcn.1400076a0
add rbx, 0x20
cmp rbx, r15
lea rdx, [0x1401298fc]
jne 0x140012a90
mov r8, qword [r12 + 8]
sub r8, qword [r12]
lea r10, [rbp + 0xd5]
movabs r9, 0xcccccccccccccccd
nop dword [rax]
dec r10
mov rax, r9
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 [r10], r8b
mov r8, rdx
test rdx, rdx
jne 0x140012b40
lea r9, [rsp + 0x40]
lea r8, [rbp + 0xd5]
mov rdx, r10
lea rcx, [rbp - 0x38]
call fcn.140007ee0
mov ebx, dword [rsp + 0x44]
or ebx, 0x60
lea rax, [r14 + 0x28]
mov rcx, qword [rax + 0x10]
sub rdi, rcx
cmp rdi, 6
jb 0x140013d8b
cmp qword [rax + 0x18], 0x10
jb 0x140012ba8
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 - 0x10]
call fcn.140007d50
or ebx, 0x10
mov r8d, reloc.WS2_32.dll_select
lea rdx, str._r_nContent_Length:
lea rcx, [rbp - 0x10]
call fcn.140007700
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
xor r15d, r15d
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r15b
or ebx, 2
lea r9, [rbp - 0x38]
lea r8, [rsp + 0x70]
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0xd8]
call fcn.140007b60
or ebx, 8
lea r8d, [r15 + 4]
lea rdx, str._r_n_r_n
lea rcx, [rbp + 0xd8]
call fcn.140007700
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x80], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x90], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], r15b
or ebx, 4
mov dword [rsp + 0x44], ebx
lea rdx, [rbp + 0x80]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0x10
cmovae rdx, rcx
movq r8, xmm1
lea rcx, [rbp + 0xf8]
call fcn.140007700
nop
lea rcx, [rbp + 0x80]
call fcn.1400076a0
nop
lea rcx, [rbp + 0xd8]
call fcn.1400076a0
nop
lea rcx, [rsp + 0x70]
call fcn.1400076a0
nop
lea rcx, [rbp - 0x10]
call fcn.1400076a0
nop
lea rcx, [rbp - 0x38]
call fcn.1400076a0
xorps xmm0, xmm0
lea rdi, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0x10
cmovae rdi, qword [rbp + 0xf8]
add rdi, qword [rbp + 0x108]
lea rbx, [rbp + 0xf8]
cmp qword [rbp + 0x110], 0x10
cmovae rbx, qword [rbp + 0xf8]
movdqu xmmword [rbp + 0xd8], xmm0
mov qword [rbp + 0xe8], r15
sub rdi, rbx
je 0x140012d51
mov rdx, rdi
lea rcx, [rbp + 0xd8]
call fcn.14006ee60
mov r8, rdi
mov rdx, rbx
mov rbx, qword [rbp + 0xd8]
mov rcx, rbx
call fcn.14010829a
lea rdx, [rdi + rbx]
mov qword [rbp + 0xe0], rdx
jmp 0x140012d58
mov rdx, qword [rbp + 0xe0]
mov r8, qword [r12]
mov r9, qword [r12 + 8]
sub r9, r8
lea rcx, [rbp + 0xd8]
call fcn.1400702a0
movzx eax, byte [r14 + 1]
test al, al
jne 0x140012d81
mov r13d, 2
jmp 0x140012d89
cmp al, 1
jne 0x140013cde
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 0x140013d97
mov dword [rbp + 0x5c], ebx
lea r8, [rbp + 0x5c]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x140013dca
movabs r14, 0x431bde82d7b634db
test rsi, rsi
js 0x140012e45
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 0x140012df9
imul rax, rax, 0x64
jmp 0x140012e14
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 0x140012e54
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 0x140012e96
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140012ed4
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140012e75
mov r14, qword [rbp + 0xe0]
mov r15, qword [rbp + 0xd8]
sub r14, r15
je 0x140012ffa
test rsi, rsi
js 0x140012f7d
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 0x140012f38
imul rax, rax, 0x64
jmp 0x140012f53
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140013e3c
mov r8, rbx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140011fa0
mov dword [rbp + 0x58], 4
lea rax, [rbp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x54]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140013e08
mov edx, dword [rbp + 0x54]
test edx, edx
jne 0x140013cfa
jmp 0x140012e96
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 0x140012f84
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.140011fa0
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 0x140012fec
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140012fe3
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 0x140012fb0
cdqe
add r15, rax
sub r14, rax
jmp 0x140012ea7
cmp ebx, 0xffffffff
je 0x140013e70
movsxd rax, ebx
add r15, rax
sub r14, rax
jmp 0x140012ea7
mov word [rbp + 0x50], 0xa0d
mov rax, qword [rsp + 0x48]
mov dword [rax], r13d
lea rcx, [rax + 8]
mov qword [rbp - 0x40], 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 + 0x5c], eax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xc0], xmm1
mov qword [rbp + 0xd0], r13
mov dword [rbp + 0x54], 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 + 0x58], r13d
mov r14, qword [rbp + 0xc8]
mov r15, qword [rbp + 0xc0]
nop dword [rax]
test rsi, rsi
js 0x1400130ff
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 0x1400130b3
imul rax, rax, 0x64
jmp 0x1400130ce
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 0x140013106
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x58]
call fcn.140011fa0
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x160]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x14001316d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140013164
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x160]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140013135
jmp 0x14001316d
cmp ebx, 0xffffffff
je 0x140013ea4
movsxd r9, ebx
test ebx, ebx
je 0x140013c32
lea r8, [rbp + 0x160]
mov rdx, r14
lea rcx, [rbp + 0xc0]
call fcn.1400702a0
mov r15, qword [rbp + 0xc0]
mov r14, qword [rbp + 0xc8]
cmp dword [rbp + 0x54], 2
je 0x140013840
nop word [rax + rax]
mov rbx, r14
mov rcx, r14
sub rcx, r15
movzx eax, word [rbp + 0x50]
cmp rcx, 2
jl 0x1400131ea
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x1400131e7
cmp rdx, r8
je 0x1400131ea
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x1400131d5
mov rbx, rdx
cmp rbx, r14
je 0x1400138ca
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0x80]
call fcn.140069fa0
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x140013227
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.14010829a
add r14, r15
mov qword [rbp + 0xc8], r14
mov rdx, qword [rbp + 0x90]
test rdx, rdx
je 0x140013824
mov r12d, dword [rbp + 0x54]
test r12d, r12d
jne 0x14001340a
mov dword [rbp + 0x54], 1
lea rcx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
setae r9b
cmovae rcx, qword [rbp + 0x80]
add rdx, rcx
lea rcx, [rbp + 0x80]
test r9b, r9b
cmovne rcx, qword [rbp + 0x80]
mov r8b, reloc.WLDAP32.dll_Ordinal_32
call fcn.140106bd0
mov rbx, rax
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
setae r9b
mov rdx, qword [rbp + 0x80]
cmovae rax, rdx
mov r8, qword [rbp + 0x90]
add rax, r8
cmp rbx, rax
je 0x140013813
inc rbx
lea rax, [rbp + 0x80]
test r9b, r9b
cmovne rax, rdx
lea rdx, [rax + r8]
mov r8b, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rbx
call fcn.140106bd0
mov r13, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xor eax, eax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
cmp rbx, r13
jne 0x140013313
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0xa0], al
jmp 0x140013329
mov r8, r13
sub r8, rbx
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.14006e1d0
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rbx, qword [rbp + 0xa0]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
cmp rbx, qword [rbp + 0x38]
je 0x140013b3a
cmp dword [r12], 0x22
je 0x140013b2c
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
lea rax, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
setae r10b
mov r8, qword [rbp + 0x80]
cmovae rax, r8
mov r9, qword [rbp + 0x90]
add rax, r9
cmp r13, rax
je 0x140013405
lea rdx, [r13 + 1]
lea rax, [rbp + 0x80]
test r10b, r10b
cmovne rax, r8
lea r8, [rax + r9]
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
cmp rdx, r8
jne 0x1400133e2
mov qword [rbp + 0x78], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x60], al
jmp 0x1400133ee
sub r8, rdx
lea rcx, [rbp + 0x60]
call fcn.14006e1d0
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp - 0x40]
call fcn.140067c50
lea rcx, [rbp + 0x60]
call fcn.1400076a0
nop
jmp 0x140013806
cmp r12d, 1
jne 0x140013813
mov rbx, qword [rsp + 0x48]
mov rax, qword [rbx + 0x30]
cmp rax, qword [rbx + 0x38]
je 0x140013439
lea rdx, [rbp + 0x80]
mov rcx, rax
call fcn.140007580
add qword [rbx + 0x30], 0x20
jmp 0x14001344c
lea r8, [rbp + 0x80]
mov rdx, rax
lea rcx, [rbx + 0x28]
call fcn.140071be0
lea r12, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
setae byte [rsp + 0x40]
cmovae r12, qword [rbp + 0x80]
mov r13, qword [rbp + 0x90]
test r13, r13
je 0x140013491
mov r8, r13
mov edx, Ordinal_60
mov rcx, r12
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140013491
sub rbx, r12
jmp 0x140013498
mov rbx, 0xffffffffffffffff
cmp rbx, 0xffffffffffffffff
je 0x140013f12
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xor eax, eax
mov qword [rbp + 0xb0], rax
mov qword [rbp + 0xb8], rax
mov r8, rbx
cmp r13, rbx
cmovb r8, r13
lea rdx, [rbp + 0x80]
cmp byte [rsp + 0x40], al
cmovne rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0xa0]
call fcn.14006e1d0
mov r12d, dword [rsp + 0x44]
bts r12d, 8
mov dword [rbp + 0x5c], r12d
lea r10, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
setae cl
mov r9, qword [rbp + 0xa0]
cmovae r10, r9
lea rdx, [rbp + 0xa0]
mov r11, qword [rbp + 0xb0]
test cl, cl
je 0x140013527
add r11, r9
jmp 0x140013531
add r11, rdx
lea r9, [rbp + 0xa0]
cmp r9, r11
je 0x140013562
sub r10, r9
nop dword [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 0x140013540
inc rbx
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
xor r13d, r13d
mov qword [rbp + 0x70], r13
mov qword [rbp + 0x78], r13
mov rax, qword [rbp + 0x90]
cmp rax, rbx
jb 0x140013f0c
sub rax, rbx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 0x10
cmovae rdx, qword [rbp + 0x80]
add rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.14006e1d0
bts r12d, 9
mov dword [rsp + 0x44], r12d
mov dword [rbp + 0x5c], r12d
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
setae r9b
mov r8, qword [rbp + 0x60]
cmovae rdx, r8
mov rbx, qword [rbp + 0x70]
add rdx, rbx
lea rax, [rbp + 0x60]
test r9b, r9b
cmovne rax, r8
cmp rax, rdx
je 0x14001360a
movzx ecx, byte [rax]
cmp cl, 0x20
je 0x140013602
cmp cl, 9
jne 0x14001360a
inc rax
cmp rax, rdx
jne 0x1400135f5
lea rcx, [rbp + 0x60]
mov rdx, r13
test r9b, r9b
je 0x140013628
sub rax, r8
mov rcx, rbx
sub rcx, r13
cmp rcx, rax
cmovb rax, rcx
jmp 0x140013636
sub rax, rcx
cmp rbx, rax
cmovb rax, rbx
lea r8, [rbp + 0x60]
lea rcx, [r8 + rdx]
sub rbx, rax
mov r8, rbx
sub r8, rdx
inc r8
lea rdx, [rcx + rax]
call fcn.14010829a
mov qword [rbp + 0x70], rbx
lea r9, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
setae r11b
mov r10, qword [rbp + 0x60]
cmovae r9, r10
add r9, rbx
lea rcx, [rbp + 0x60]
test r11b, r11b
je 0x14001367c
mov rcx, r10
mov rax, r10
jmp 0x140013680
lea rax, [rbp + 0x60]
lea rdx, [rax + rbx]
cmp rdx, rcx
je 0x1400136ac
nop dword [rax]
lea rax, [rdx - 1]
movzx r8d, byte [rax]
cmp r8b, 0x20
je 0x1400136a4
cmp r8b, 9
jne 0x1400136ac
mov rdx, rax
cmp rax, rcx
jne 0x140013690
lea rax, [rbp + 0x60]
sub r9, rdx
test r11b, r11b
je 0x1400136bd
sub rdx, r10
jmp 0x1400136c4
sub rdx, rax
lea r10, [rbp + 0x60]
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.14010829a
mov qword [rbp + 0x70], rbx
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
setae dl
mov byte [rsp + 0x40], dl
mov r13, qword [rbp + 0xa0]
cmovae rcx, r13
mov r12, qword [rbp + 0xb0]
cmp r12, 0xe
jne 0x1400137a2
mov r8, r12
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14001379d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rbx, qword [rbp + 0x60]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0xa]
lea rdx, [rbp + 0x48]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0x48]
je 0x140013b56
cmp dword [r12], 0x22
je 0x140013b48
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 0x1400137fc
call fcn.140068590
jmp 0x1400137fc
movzx edx, byte [rsp + 0x40]
lea rcx, [rbp + 0xa0]
test dl, dl
cmovne rcx, r13
cmp r12, 0x11
jne 0x1400137fc
mov r8, r12
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400137fc
lea rcx, [rbp + 0x60]
cmp qword [rbp + 0x78], 0x10
cmovae rcx, qword [rbp + 0x60]
cmp rbx, 7
jne 0x140013ed8
mov r8, rbx
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140013ed8
mov byte [rsp + 0x41], 1
lea rcx, [rbp + 0x60]
call fcn.1400076a0
nop
lea rcx, [rbp + 0xa0]
call fcn.1400076a0
nop
lea rcx, [rbp + 0x80]
call fcn.1400076a0
jmp 0x1400131b0
mov dword [rbp + 0x54], 2
lea rcx, [rbp + 0x80]
call fcn.1400076a0
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x58]
movzx eax, word [rbp + 0x50]
cmp byte [rsp + 0x41], 0
je 0x140013a16
nop
test r12, r12
je 0x1400138e2
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.1400702a0
lea rdx, [r15 + rbx]
cmp r15, rdx
je 0x1400138a2
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.14010829a
add r14, r15
mov qword [rbp + 0xc8], r14
sub r12, rbx
mov qword [rsp + 0x50], r12
movzx r13d, r13b
mov eax, 1
cmove r13d, eax
mov dword [rbp + 0x58], r13d
cmp r15, r14
je 0x140013090
movzx eax, word [rbp + 0x50]
jmp 0x140013850
cmp dword [rbp + 0x54], 2
mov r12, qword [rsp + 0x50]
mov r13d, dword [rbp + 0x58]
jne 0x140013090
jmp 0x140013844
test r13b, r13b
je 0x140013932
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jb 0x140013090
cmp ax, word [r15]
sete cl
test cl, cl
je 0x140013f49
xor r13b, r13b
mov dword [rbp + 0x58], r13d
lea rdx, [r15 + 2]
cmp r15, rdx
je 0x140013932
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.14010829a
add r14, r15
mov qword [rbp + 0xc8], r14
movzx eax, word [rbp + 0x50]
mov rbx, r14
mov rcx, r14
sub rcx, r15
cmp rcx, 2
jl 0x140013968
lea r8, [r14 - 2]
cmp ax, word [r15]
sete cl
mov rdx, r15
test cl, cl
jne 0x140013965
cmp rdx, r8
je 0x140013968
inc rdx
cmp ax, word [rdx]
sete cl
test cl, cl
je 0x140013953
mov rbx, rdx
cmp rbx, r14
je 0x140013090
mov r8, rbx
mov rdx, r15
lea rcx, [rbp + 0xa0]
call fcn.140069fa0
nop
lea rdx, [rbx + 2]
cmp r15, rdx
je 0x1400139a5
sub r14, rdx
mov r8, r14
mov rcx, r15
call fcn.14010829a
add r14, r15
mov qword [rbp + 0xc8], r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r12, rax
lea rbx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0x10
cmovae rbx, qword [rbp + 0xa0]
xor eax, eax
mov dword [r12], eax
lea r8d, [rax + 0x10]
lea rdx, [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
cmp rbx, qword [rbp + 0x30]
je 0x140013c24
cmp dword [r12], 0x22
je 0x140013c16
mov r12d, eax
mov qword [rsp + 0x50], r12
lea rcx, [rbp + 0xa0]
test eax, eax
je 0x140013b64
call fcn.1400076a0
movzx eax, word [rbp + 0x50]
jmp 0x140013850
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.1400702a0
cmp r15, r14
cmovne r14, r15
mov qword [rbp + 0xc8], r14
cmp byte [rsp + 0x42], 0
je 0x140013090
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
cmp rax, qword [rbp - 0x70]
jb 0x140013090
test r15, r15
je 0x140013a99
mov rdx, qword [rbp + 0xd0]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140013a90
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013c62
mov rcx, r15
call fcn.140106ddc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140013ae4
mov rdx, qword [rbp + 0xe8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013ade
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140013cb3
call fcn.140106ddc
nop
lea rcx, [rbp + 0xf8]
call fcn.1400076a0
nop
mov rcx, qword [rsp + 0x60]
call qword [0x1401189c8]
nop
mov rax, qword [rsp + 0x48]
mov rcx, qword [rbp + 0x1160]
xor rcx, rsp
call fcn.140106d80
mov rbx, qword [rsp + 0x12c8]
add rsp, 0x1270
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.1400076a0
nop
test r15, r15
je 0x140013baa
mov rdx, qword [rbp + 0xd0]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140013ba1
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013ba1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140106ddc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140013bf8
mov rdx, qword [rbp + 0xe8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013bf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013bf2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140106ddc
nop
lea rcx, [rbp + 0xf8]
call fcn.1400076a0
nop
mov rcx, qword [rsp + 0x60]
call qword [0x1401189c8]
nop
jmp 0x140013afd
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 0x140013c72
mov rdx, qword [rbp + 0xd0]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140013c69
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013c69
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.140106ddc
nop
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0xd8]
test rcx, rcx
je 0x140013cc0
mov rdx, qword [rbp + 0xe8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013cba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013cba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140106ddc
nop
lea rcx, [rbp + 0xf8]
call fcn.1400076a0
nop
mov rcx, qword [rsp + 0x60]
call qword [0x1401189c8]
nop
jmp 0x140013afd
lea rcx, [rsp + 0x70]
call fcn.140011dc0
lea rdx, [0x140156f10]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14000ec60
mov r8, rax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x68]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rcx, [rsp + 0x70]
call fcn.140011dc0
lea rdx, [0x140156f10]
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 - 0x38]
call fcn.1400077d0
mov rdi, rax
call fcn.14000ec60
mov rbx, rax
call fcn.140011ef0
mov edx, eax
mov r9, rdi
mov r8, rbx
lea rcx, [rbp - 0x10]
call fcn.14000e850
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140005ef0
nop
call fcn.140005ef0
nop
call fcn.140005ef0
nop
call fcn.14000ec60
mov rbx, rax
call fcn.140011ef0
mov edx, eax
lea r9, str.Failed_to_create_socket
mov r8, rbx
lea rcx, [rbp - 0x38]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x58]
call fcn.140012100
call fcn.14000ec60
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 - 0x10]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14000ec60
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 - 0x68]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14000ec60
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 - 0x68]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14000ec60
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 - 0x68]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14000ec60
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 - 0x38]
call fcn.14000e890
lea rdx, [0x140156d80]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x60]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp - 0x38]
call fcn.1400077d0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140011ea0
lea rdx, [0x140156f58]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140069520
nop
lea r8, [rbp + 0x80]
lea rdx, str.Invalid_header:
lea rcx, [rbp - 0x38]
call fcn.1400077d0
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140011ea0
lea rdx, [0x140156f58]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_chunk
lea rcx, [rsp + 0x70]
call fcn.140011e30
lea rdx, [0x140156f58]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3