Function at 0x140005cd0
Capabilities:
Connect socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x11a8]
mov eax, 0x12a8
call fcn.140029c10
sub rsp, rax
movaps xmmword [rsp + 0x1290], xmm6
movaps xmmword [rsp + 0x1280], xmm7
movaps xmmword [rsp + 0x1270], xmm8
movaps xmmword [rsp + 0x1260], xmm9
mov rax, qword [0x14003d180]
xor rax, rsp
mov qword [rbp + 0x1150], rax
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rbp - 0x50], rdx
mov r13, qword [rbp + 0x1210]
mov edi, 1
mov dword [rbp - 0x2c], edi
lea rcx, [rbp + 8]
call fcn.140002c70
mov r14, qword [rbp + 0x1218]
imul r15, r14, 0xf4240
add r15, qword [rax]
mov qword [rsp + 0x58], r15
mov r8, qword [rsi + 0x18]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0xf
jbe 0x140005d7c
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x140005d92
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140005d96
movzx eax, dil
test al, al
jne 0x140006cd5
xorps xmm0, xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movups xmmword [rbp + 0x140], xmm0
movzx eax, byte [rsi + 1]
mov ebx, 2
test al, al
jne 0x140005dc7
mov eax, ebx
jmp 0x140005dd5
cmp al, dil
jne 0x140006cb4
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x124], eax
mov dword [rbp + 0x128], edi
cmp qword [rsi + 0x98], 0
jne 0x140005df4
lea rdx, [0x140031ee8]
jmp 0x140005e05
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x140005e05
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x140005e17
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x120]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140006cf6
xorps xmm0, xmm0
movups xmmword [rbp + 0xe0], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0xe0], rax
mov rax, qword [rbp - 0x40]
mov qword [rsp + 0x50], rax
mov qword [rbp + 0xe8], rax
xor eax, eax
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movdqu xmmword [rbp - 0x28], xmm0
xor ecx, ecx
mov qword [rbp - 0x18], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x140005f5e
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x140006d34
shl rdi, 6
cmp rdi, 0x1000
jb 0x140005ece
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x140006d3a
call fcn.140028c30
test rax, rax
je 0x140005ec7
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x140005ee3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x140005ee0
mov rcx, rdi
call fcn.140028c30
mov rbx, rax
jmp 0x140005ee3
mov rbx, rcx
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], rbx
lea rax, [rdi + rbx]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x28]
mov qword [rbp + 8], rax
mov r15, qword [r13 + 8]
mov rdi, qword [r13]
xorps xmm0, xmm0
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x28], rbx
mov qword [rbp + 0x30], rbx
lea rax, [rbp - 0x28]
mov qword [rbp + 0x38], rax
cmp rdi, r15
je 0x140005f50
nop
mov qword [rsp + 0x60], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.14000daf0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.14000daf0
nop
add rbx, 0x40
mov qword [rbp + 0x30], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x140005f20
mov qword [rbp - 0x20], rbx
mov ebx, 2
mov r15, qword [rsp + 0x58]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rsp + 0x48]
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x10]
call fcn.1400051c0
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x140005f94
cmp al, 1
jne 0x140006c72
mov ebx, reloc.WS2_32.dll_socket
mov edi, 1
lea r8d, [rdi + 5]
mov edx, edi
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x140006d40
mov dword [rbp - 0x34], edi
lea r8, [rbp - 0x34]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x140006d6b
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x14000601e
lea rcx, [rsp + 0x40]
call fcn.140002c70
mov rcx, r15
sub rcx, qword [rsp + 0x40]
mov rax, rbx
imul rcx
mov rbx, rdx
sar rbx, 0x12
mov rax, rbx
shr rax, 0x3f
add rbx, rax
test rbx, rbx
mov r13d, 0
cmovle rbx, r13
jmp 0x140006028
mov rbx, 0xffffffffffffffff
xor r13d, r13d
mov rax, qword [rsp + 0x50]
mov edi, dword [rax + 0x10]
mov r15, qword [rax + 0x20]
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140006069
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400060c3
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140006048
mov ebx, 1
mov rdi, qword [rbp + 0x18]
mov r15, qword [rbp + 0x10]
sub rdi, r15
je 0x14000619e
mov r12, qword [rsp + 0x58]
test r14, r14
js 0x140006129
lea rcx, [rsp + 0x40]
call fcn.140002c70
mov rcx, r12
sub rcx, qword [rsp + 0x40]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, r13
jmp 0x140006130
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x140006dc7
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140004a40
mov dword [rbp], 4
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x2c]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x140006d9e
mov edx, dword [rbp - 0x2c]
test edx, edx
jne 0x140006c93
jmp 0x14000606e
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140004a40
xor r9d, r9d
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x140006189
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140006180
xor r9d, r9d
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_send]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140006158
jmp 0x140006189
cmp ebx, 0xffffffff
je 0x140006df0
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x14000619e
mov ebx, 1
jmp 0x140006084
mov word [rbp - 0x38], 0xa0d
mov dword [rbp - 0x30], 0xa0d0a0d
mov rax, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rax + 8], xmm0
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], recv
mov byte [rax + 8], 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 dword [rbp - 0x2c], 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r13
mov byte [rsp + 0x30], al
mov byte [rsp + 0x32], al
mov rdi, r13
mov qword [rbp], r13
mov byte [rsp + 0x31], al
mov r15, r13
mov dword [rbp - 0x34], eax
mov r13, qword [rbp - 0x20]
mov r12, qword [rbp - 0x28]
test r14, r14
js 0x140006257
lea rcx, [rsp + 0x60]
call fcn.140002c70
mov rcx, qword [rsp + 0x58]
sub rcx, qword [rsp + 0x60]
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 0x14000625e
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140004a40
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400062c8
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x1400062bf
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x150]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x140006290
jmp 0x1400062c8
cmp ebx, 0xffffffff
je 0x140006e19
movsxd r9, ebx
test ebx, ebx
je 0x140006bc8
lea r8, [rbp + 0x150]
mov rdx, r13
lea rcx, [rbp - 0x28]
call fcn.140011bc0
mov r12, qword [rbp - 0x28]
mov r13, qword [rbp - 0x20]
cmp byte [rsp + 0x30], 0
jne 0x1400067ad
mov rax, r13
sub rax, r12
cmp rax, 4
jl 0x140006a82
lea rdx, [r13 - 4]
mov eax, dword [rbp - 0x30]
cmp eax, dword [r12]
sete cl
mov rbx, r12
test cl, cl
jne 0x140006335
nop
cmp rbx, rdx
je 0x140006a82
inc rbx
cmp eax, dword [rbx]
sete cl
test cl, cl
je 0x140006320
cmp rbx, r13
je 0x140006a82
add rbx, 2
mov r8, rbx
mov rdx, r12
lea rcx, [rbp + 0xf0]
call fcn.14000ff50
nop
mov rdi, qword [rbp + 0xf0]
mov eax, dword [rbp + 0xf8]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
movzx eax, word [rbp + 0xfc]
mov word [rcx + 4], ax
lea rdx, [rbp + 0x100]
add rcx, 8
call fcn.14000da20
nop dword [rax]
nop dword [rax + rax]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0x90]
call fcn.1400101c0
nop
mov rdi, qword [rbp + 0x90]
movups xmm9, xmmword [rbp + 0x98]
movups xmmword [rbp + 0x60], xmm9
movups xmm8, xmmword [rbp + 0xa8]
movups xmmword [rbp + 0x70], xmm8
xor eax, eax
mov qword [rbp + 0xa8], rax
mov qword [rbp + 0xb0], recv
mov byte [rbp + 0x98], al
movups xmm7, xmmword [rbp + 0xb8]
movups xmmword [rbp + 0x40], xmm7
movups xmm6, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x50], xmm6
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], recv
mov byte [rbp + 0xb8], al
lea rcx, [rbp + 0x60]
movdqa xmm0, xmm8
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
seta byte [rsp + 0x30]
movq rdx, xmm9
mov qword [rsp + 0x40], rdx
cmova rcx, rdx
movq rax, xmm8
mov qword [rbp + 8], rax
cmp rax, 0x11
jne 0x1400064b0
mov r8, rax
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400064a7
lea rcx, [rbp + 0x40]
movq rdx, xmm7
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rcx, rdx
movq rax, xmm6
cmp rax, 7
jne 0x140006e44
mov r8, rax
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140006e44
mov byte [rsp + 0x31], 1
jmp 0x14000658b
mov rdx, qword [rsp + 0x40]
mov rax, qword [rbp + 8]
lea rcx, [rbp + 0x60]
cmp byte [rsp + 0x30], 0
cmovne rcx, rdx
cmp rax, 0xe
jne 0x14000658b
mov r8, rax
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000658b
lea r9, [rbp + 0x40]
movdqa xmm0, xmm6
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
seta dl
movq rcx, xmm7
cmova r9, rcx
movq rax, xmm6
add r9, rax
lea rax, [rbp + 0x40]
test dl, dl
cmovne rax, rcx
xor r8d, r8d
mov qword [rbp], r8
cmp rax, r9
je 0x140006549
nop
movsx edx, byte [rax]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x140006e77
lea ecx, [rdx - 0x30]
movsxd rdx, ecx
lea rcx, [r8 + r8*4]
lea r8, [rdx + rcx*2]
mov qword [rbp], r8
inc rax
cmp rax, r9
jne 0x140006520
mov byte [rsp + 0x32], 1
mov qword [rbp + 8], r8
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r8, rax
jbe 0x14000658b
movabs rax, 0x7fffffffffffffff
cmp r8, rax
ja 0x140006e98
lea rdx, [rbp + 8]
call fcn.140010a50
movups xmm6, xmmword [rbp + 0x50]
movups xmm7, xmmword [rbp + 0x40]
movaps xmmword [rsp + 0x70], xmm9
movaps xmmword [rbp - 0x80], xmm8
xor r8d, r8d
mov qword [rbp + 0x70], r8
mov qword [rbp + 0x78], recv
mov byte [rbp + 0x60], r8b
movaps xmmword [rbp - 0x70], xmm7
movaps xmmword [rbp - 0x60], xmm6
mov qword [rbp + 0x50], r8
mov qword [rbp + 0x58], recv
mov byte [rbp + 0x40], r8b
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x30]
cmp rdx, qword [rcx + 0x38]
je 0x1400065fe
movups xmmword [rdx], xmm9
movups xmmword [rdx + 0x10], xmm8
mov qword [rsp + 0x40], recv
mov byte [rsp + 0x70], r8b
movups xmmword [rdx + 0x20], xmm7
movups xmmword [rdx + 0x30], xmm6
lea edx, [r8 + 0xf]
mov byte [rbp - 0x70], r8b
add qword [rcx + 0x30], 0x40
jmp 0x140006619
lea r8, [rsp + 0x70]
add rcx, 0x28
call fcn.140012420
mov rdx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x40], rax
cmp rdx, 0xf
jbe 0x140006650
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000664b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006a6d
call fcn.140028c6c
mov rax, qword [rsp + 0x40]
cmp rax, 0xf
jbe 0x14000668f
lea rdx, [rax + 1]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006689
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006a6d
call fcn.140028c6c
nop
mov rdx, qword [rbp + 0x58]
cmp rdi, rbx
je 0x1400066f1
cmp rdx, 0xf
jbe 0x1400066cf
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400066ca
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006a74
call fcn.140028c6c
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], recv
mov byte [rbp + 0x40], al
lea rcx, [rbp + 0x98]
call fcn.140005c20
jmp 0x140006390
cmp rdx, 0xf
jbe 0x140006728
inc rdx
mov rcx, qword [rbp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006723
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006a74
call fcn.140028c6c
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], recv
mov byte [rbp + 0x40], al
lea rcx, [rbp + 0x98]
call fcn.140005c20
lea rdx, [rbx + 2]
cmp r12, rdx
je 0x140006763
sub r13, rdx
mov r8, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r13, r12
mov qword [rbp - 0x20], r13
mov byte [rsp + 0x30], 1
mov rdx, qword [rbp + 0x118]
cmp rdx, 0xf
jbe 0x1400067a9
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400067a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006a7b
call fcn.140028c6c
mov rdi, qword [rbp]
cmp byte [rsp + 0x31], 0
je 0x14000694c
mov r8d, dword [rbp - 0x34]
xor ebx, ebx
movzx edx, word [rbp - 0x38]
test r15, r15
je 0x140006830
mov rax, r13
sub rax, r12
mov rbx, r15
cmp rax, r15
cmovb rbx, rax
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x48]
mov r9, rbx
mov r8, r12
add rcx, 0x40
call fcn.140011bc0
lea rdx, [r12 + rbx]
cmp r12, rdx
je 0x14000680d
sub r13, rdx
mov r8, r13
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r13, r12
mov qword [rbp - 0x20], r13
sub r15, rbx
mov r8d, dword [rbp - 0x34]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x34], r8d
cmp r12, r13
je 0x140006215
jmp 0x1400067bc
test r8b, r8b
je 0x140006880
mov rax, r13
sub rax, r12
cmp rax, 2
jb 0x140006215
cmp dx, word [r12]
sete al
test al, al
je 0x140006e9e
xor al, al
mov dword [rbp - 0x34], eax
lea rax, [r12 + 2]
cmp r12, rax
je 0x140006880
sub r13, rax
mov r8, r13
mov rdx, rax
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r13, r12
mov qword [rbp - 0x20], r13
movzx edx, word [rbp - 0x38]
mov rcx, r13
mov rax, r13
sub rax, r12
cmp rax, 2
jl 0x1400068b8
lea r9, [r13 - 2]
cmp dx, word [r12]
sete al
mov r8, r12
test al, al
jne 0x1400068b5
cmp r8, r9
je 0x1400068b8
inc r8
cmp dx, word [r8]
sete al
test al, al
je 0x1400068a2
mov rcx, r8
cmp rcx, r13
je 0x140006215
mov r15, rbx
cmp r12, rcx
je 0x140006915
mov rax, r12
nop dword [rax]
movzx r9d, byte [rax]
lea r8d, [r9 - 0x30]
cmp r8b, 9
ja 0x1400068e4
lea r8, [r9 - 0x30]
jmp 0x140006906
lea r8d, [r9 - 0x41]
cmp r8b, 5
ja 0x1400068f4
lea r8, [r9 - 0x37]
jmp 0x140006906
lea r8d, [r9 - 0x61]
cmp r8b, 5
ja 0x140006ebf
lea r8, [r9 - 0x57]
shl r15, 4
add r15, r8
inc rax
cmp rax, rcx
jne 0x1400068d0
add rcx, 2
cmp r12, rcx
je 0x14000693a
sub r13, rcx
mov r8, r13
mov rdx, rcx
mov rcx, r12
call sub.VCRUNTIME140.dll_memmove
add r13, r12
mov qword [rbp - 0x20], r13
movzx edx, word [rbp - 0x38]
test r15, r15
je 0x140006b26
mov r8d, dword [rbp - 0x34]
jmp 0x1400067c2
mov r9, r13
sub r9, r12
mov rbx, qword [rsp + 0x38]
mov rdx, qword [rbx + 0x48]
mov r8, r12
lea rcx, [rbx + 0x40]
call fcn.140011bc0
cmp r12, r13
cmovne r13, r12
mov qword [rbp - 0x20], r13
cmp byte [rsp + 0x32], 0
je 0x140006215
mov rax, qword [rbx + 0x48]
sub rax, qword [rbx + 0x40]
cmp rax, rdi
jb 0x140006215
test r12, r12
je 0x1400069c9
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x1400069c0
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006bf6
mov rcx, r12
call fcn.140028c6c
nop
cmp rsi, 0xffffffffffffffff
je 0x1400069d9
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140006a21
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006a0e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c47
call fcn.140028c6c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xor eax, eax
mov qword [rbp + 0x20], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x38]
mov rcx, qword [rbp + 0x1150]
xor rcx, rsp
call fcn.140028c10
lea r11, [rsp + 0x12a8]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
test r12, r12
je 0x140006abd
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140006ab4
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006bf6
mov rcx, r12
call fcn.140028c6c
nop
cmp rsi, 0xffffffffffffffff
je 0x140006acd
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140006b15
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006b02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c47
call fcn.140028c6c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xor eax, eax
mov qword [rbp + 0x20], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140006a2d
test r12, r12
je 0x140006b61
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140006b58
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006bf6
mov rcx, r12
call fcn.140028c6c
nop
cmp rsi, 0xffffffffffffffff
je 0x140006b71
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140006bb7
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006ba6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006c47
call fcn.140028c6c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rbx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140006a2d
test r12, r12
je 0x140006c06
mov rdx, qword [rbp - 0x18]
sub rdx, r12
mov rax, r12
cmp rdx, 0x1000
jb 0x140006bfd
add rdx, 0x27
mov r12, qword [r12 - 8]
sub rax, r12
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006bfd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r12
call fcn.140028c6c
nop
cmp rsi, 0xffffffffffffffff
je 0x140006c16
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp + 0x10]
test rcx, rcx
je 0x140006c61
mov rdx, qword [rbp + 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006c4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006c4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028c6c
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
xor eax, eax
mov qword [rbp + 0x20], rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140006a2d
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x28]
call fcn.140004930
lea rdx, [0x14003aa78]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x28]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 0x28]
call fcn.140004930
lea rdx, [0x14003aa78]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 0x28]
call fcn.140004930
lea rdx, [0x14003aa78]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea r8, [rsi + 0x68]
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp + 0x60]
call fcn.14000ea00
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x70]
call fcn.140002780
lea rdx, [0x14003a878]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.14000e560
int3
call fcn.140001480
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea rcx, [rsp + 0x70]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x48]
call fcn.140004ba0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp + 0x60]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rbp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_option
lea rcx, [rbp - 0x28]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_connect
lea rcx, [rbp - 0x28]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_send_data
lea rcx, [rbp - 0x28]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_read_data
lea rcx, [rsp + 0x70]
call fcn.1400027d0
lea rdx, [0x14003a878]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x40]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x70]
call fcn.14000ea00
nop
mov rdx, rax
lea rcx, [rbp + 0x28]
call fcn.1400072d0
lea rdx, [0x14003aae0]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp + 0x28]
call fcn.140004bb0
lea rdx, [0x14003aae0]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.14000e560
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 0x28]
call fcn.140004bb0
lea rdx, [0x14003aae0]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp + 0x28]
call fcn.140004bb0
lea rdx, [0x14003aae0]
lea rcx, [rbp + 0x28]
call sub.VCRUNTIME140.dll__CxxThrowException
int3