Function at 0x18000b930
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 - 0x1198]
mov eax, 0x1298
call fcn.180078ce0
sub rsp, rax
movaps xmmword [rsp + 0x1280], xmm6
movaps xmmword [rsp + 0x1270], xmm7
movaps xmmword [rsp + 0x1260], xmm8
movaps xmmword [rsp + 0x1250], xmm9
mov rax, qword [0x1800983c0]
xor rax, rsp
mov qword [rbp + 0x1140], rax
mov qword [rsp + 0x40], r9
mov qword [rbp - 0x20], r8
mov qword [rsp + 0x38], rdx
mov rsi, rcx
mov qword [rbp - 0x60], rdx
mov r13, qword [rbp + 0x1200]
mov edi, 1
mov dword [rbp - 0x18], edi
lea rcx, [rbp + 0x48]
call fcn.1800087e0
mov r14, qword [rbp + 0x1208]
imul r15, r14, 0xf4240
add r15, qword [rax]
mov qword [rsp + 0x50], r15
mov r8, qword [rsi + 0x18]
lea rcx, [rsi + 8]
cmp qword [rsi + 0x20], 0xf
jbe 0x18000b9db
mov rcx, qword [rsi + 8]
cmp r8, 4
jne 0x18000c96e
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000c96e
xorps xmm0, xmm0
movups xmmword [rbp + 0x110], xmm0
movups xmmword [rbp + 0x120], xmm0
movups xmmword [rbp + 0x130], xmm0
movzx eax, byte [rsi + 1]
mov ebx, 2
test al, al
jne 0x18000ba22
mov eax, ebx
jmp 0x18000ba30
cmp al, dil
jne 0x18000c92c
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0x114], eax
mov dword [rbp + 0x118], edi
cmp qword [rsi + 0x98], 0
jne 0x18000ba4f
lea rdx, [0x180080140]
jmp 0x18000ba60
lea rdx, [rsi + 0x88]
cmp qword [rdx + 0x18], 0xf
jbe 0x18000ba60
mov rdx, qword [rdx]
lea rcx, [rsi + 0x68]
cmp qword [rsi + 0x80], 0xf
jbe 0x18000ba72
mov rcx, qword [rsi + 0x68]
lea r9, [rbp - 0x50]
lea r8, [rbp + 0x110]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x18000c98f
xorps xmm0, xmm0
movups xmmword [rbp + 0x100], xmm0
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x100], rax
mov rax, qword [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rbp + 0x108], rax
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rax
movdqu xmmword [rbp + 0x50], xmm0
xor ecx, ecx
mov qword [rbp + 0x60], rcx
mov rdi, qword [r13 + 8]
sub rdi, qword [r13]
sar rdi, 6
test rdi, rdi
je 0x18000bbbe
movabs rax, 0x3ffffffffffffff
cmp rdi, rax
ja 0x18000c9cd
shl rdi, 6
cmp rdi, 0x1000
jb 0x18000bb29
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x18000c9d3
call fcn.180076c50
test rax, rax
je 0x18000bb22
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18000bb3e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rdi, rdi
je 0x18000bb3b
mov rcx, rdi
call fcn.180076c50
mov rbx, rax
jmp 0x18000bb3e
mov rbx, rcx
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], rbx
lea rax, [rbx + rdi]
mov qword [rbp + 0x60], rax
lea rax, [rbp + 0x50]
mov qword [rbp + 0x48], rax
mov r15, qword [r13 + 8]
mov rdi, qword [r13]
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], rbx
lea rax, [rbp + 0x50]
mov qword [rbp + 0x18], rax
cmp rdi, r15
je 0x18000bbb0
nop word [rax + rax]
mov qword [rsp + 0x58], rbx
mov rdx, rdi
mov rcx, rbx
call fcn.1800021a0
nop
lea rcx, [rbx + 0x20]
lea rdx, [rdi + 0x20]
call fcn.1800021a0
nop
add rbx, 0x40
mov qword [rbp + 0x10], rbx
add rdi, 0x40
cmp rdi, r15
jne 0x18000bb80
mov qword [rbp + 0x58], rbx
mov ebx, 2
mov r15, qword [rsp + 0x50]
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
mov r8, qword [rbp - 0x20]
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x10]
call fcn.18000adc0
nop
movzx eax, byte [rsi + 1]
test al, al
je 0x18000bbf3
cmp al, 1
jne 0x18000cb77
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 + 0x40], rax
cmp rax, 0xffffffffffffffff
je 0x18000c9d9
mov dword [rbp - 0x44], edi
lea r8, [rbp - 0x44]
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
je 0x18000ca04
movabs rbx, 0x431bde82d7b634db
test r14, r14
js 0x18000bc7b
lea rcx, [rbp - 0x18]
call fcn.1800087e0
mov rcx, r15
sub rcx, qword [rbp - 0x18]
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 0x18000bc85
mov rbx, 0xffffffffffffffff
xor r13d, r13d
mov rax, qword [rsp + 0x48]
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 0x18000bcc6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000bd1e
mov r8d, edi
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x18000bca5
mov ebx, 1
mov rdi, qword [rbp - 8]
mov r15, qword [rbp - 0x10]
sub rdi, r15
je 0x18000bdf9
mov r12, qword [rsp + 0x50]
test r14, r14
js 0x18000bd84
lea rcx, [rbp - 0x18]
call fcn.1800087e0
mov rcx, r12
sub rcx, qword [rbp - 0x18]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, r13
jmp 0x18000bd8b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x18000ca60
mov r8, rbx
mov ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.18000a670
mov dword [rbp - 0x20], 4
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x18]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x18000ca37
mov edx, dword [rbp - 0x18]
test edx, edx
jne 0x18000c94d
jmp 0x18000bccb
mov rdx, 0xffffffffffffffff
mov r8, rdx
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.18000a670
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 0x18000bde4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000bddb
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 0x18000bdb3
jmp 0x18000bde4
cmp ebx, 0xffffffff
je 0x18000ca89
movsxd rax, ebx
add r15, rax
sub rdi, rax
je 0x18000bdf9
mov ebx, 1
jmp 0x18000bce1
mov word [rbp - 0x48], 0xa0d
mov dword [rbp - 0x28], 0xa0d0a0d
mov rdi, qword [rsp + 0x38]
xorps xmm0, xmm0
movups xmmword [rdi + 8], xmm0
mov qword [rdi + 0x18], r13
mov qword [rdi + 0x20], send
mov byte [rdi + 8], 0
mov qword [rdi + 0x28], r13
mov qword [rdi + 0x30], r13
mov qword [rdi + 0x38], r13
mov qword [rdi + 0x40], r13
mov qword [rdi + 0x48], r13
mov qword [rdi + 0x50], r13
mov dword [rbp - 0x18], 1
xor eax, eax
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x30], r13
xor r15b, r15b
mov byte [rsp + 0x30], r15b
mov byte [rsp + 0x32], r15b
mov qword [rbp - 0x20], r13
mov byte [rsp + 0x31], r15b
xor ebx, ebx
mov r12d, ebx
mov dword [rbp - 0x44], eax
jmp 0x18000be76
mov rdi, qword [rsp + 0x38]
xor ebx, ebx
test r14, r14
js 0x18000beb3
lea rcx, [rsp + 0x58]
call fcn.1800087e0
mov rcx, qword [rsp + 0x50]
sub rcx, qword [rsp + 0x58]
movabs rax, 0x431bde82d7b634db
imul rcx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
test rdx, rdx
cmovle rdx, rbx
jmp 0x18000beba
mov rdx, 0xffffffffffffffff
mov r8, rdx
xor edx, edx
lea rcx, [rsp + 0x40]
call fcn.18000a670
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000bf28
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x18000bf1f
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rbp + 0x140]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp eax, 0xffffffff
je 0x18000bef0
jmp 0x18000bf28
cmp ebx, 0xffffffff
je 0x18000cab2
movsxd r9, ebx
test ebx, ebx
je 0x18000c871
lea r8, [rbp + 0x140]
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x40]
call fcn.180011b00
test r15b, r15b
jne 0x18000c402
mov r8, qword [rbp - 0x38]
mov rax, r8
mov r9, qword [rbp - 0x40]
sub rax, r9
cmp rax, 4
jl 0x18000c7bd
lea rdx, [r8 - 4]
mov rbx, r9
mov eax, dword [rbp - 0x28]
cmp eax, dword [rbx]
sete cl
test cl, cl
jne 0x18000bf89
cmp rbx, rdx
je 0x18000c7bd
inc rbx
jmp 0x18000bf72
cmp rbx, r8
je 0x18000c7bd
add rbx, 2
mov r8, rbx
mov rdx, r9
lea rcx, [rbp + 0x78]
call fcn.180010cb0
nop
mov rdi, qword [rbp + 0x78]
mov eax, dword [rbp + 0x80]
mov rcx, qword [rsp + 0x38]
mov dword [rcx], eax
movzx eax, word [rbp + 0x84]
mov word [rcx + 4], ax
lea rdx, [rbp + 0x88]
add rcx, 8
call fcn.18000f4f0
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp + 0xb0]
call fcn.180010f20
nop
mov rdi, qword [rbp + 0xb0]
movups xmm9, xmmword [rbp + 0xb8]
movups xmmword [rbp + 0x50], xmm9
movups xmm8, xmmword [rbp + 0xc8]
movups xmmword [rbp + 0x60], xmm8
xor eax, eax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], send
mov byte [rbp + 0xb8], al
movups xmm7, xmmword [rbp + 0xd8]
movups xmmword [rbp + 0x28], xmm7
movups xmm6, xmmword [rbp + 0xe8]
movups xmmword [rbp + 0x38], xmm6
mov qword [rbp + 0xe8], rax
mov qword [rbp + send0], 0xf
mov byte [rbp + 0xd8], al
lea rcx, [rbp + 0x50]
movdqa xmm0, xmm8
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
seta dl
mov byte [rsp + 0x30], dl
movq r15, xmm9
cmova rcx, r15
movq r13, xmm8
cmp r13, 0x11
jne 0x18000c165
mov r8, r13
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000c160
lea rcx, [rbp + 0x28]
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 0x18000cadb
mov r8, rax
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000cadb
mov byte [rsp + 0x31], 1
mov r13, qword [rbp - 0x20]
movaps xmmword [rsp + 0x60], xmm9
movaps xmmword [rsp + 0x70], xmm8
xor r9d, r9d
mov qword [rbp + 0x60], r9
mov qword [rbp + 0x68], send
mov byte [rbp + 0x50], r9b
movaps xmmword [rbp - 0x80], xmm7
movaps xmmword [rbp - 0x70], xmm6
mov qword [rbp + 0x38], r9
mov qword [rbp + 0x40], send
mov byte [rbp + 0x28], r9b
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x30]
cmp rdx, qword [rcx + 0x38]
je 0x18000c24b
movups xmmword [rdx], xmm9
movups xmmword [rdx + 0x10], xmm8
mov r15d, send
mov byte [rsp + 0x60], r9b
movups xmmword [rdx + 0x20], xmm7
movups xmmword [rdx + 0x30], xmm6
mov edx, r15d
mov byte [rbp - 0x80], r9b
add qword [rcx + 0x30], 0x40
jmp 0x18000c262
movzx edx, byte [rsp + 0x30]
lea rcx, [rbp + 0x50]
test dl, dl
cmovne rcx, r15
cmp r13, 0xe
jne 0x18000c0e5
mov r8, r13
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18000c0e5
lea r9, [rbp + 0x28]
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 + 0x28]
test dl, dl
cmovne rax, rcx
xor r13d, r13d
mov qword [rbp - 0x20], r13
cmp rax, r9
je 0x18000c200
movsx edx, byte [rax]
lea ecx, [rdx - 0x30]
cmp cl, 9
ja 0x18000cb0e
lea ecx, [rdx - 0x30]
movsxd rdx, ecx
lea rcx, [r13*4]
add rcx, r13
lea r13, [rdx + rcx*2]
mov qword [rbp - 0x20], r13
inc rax
cmp rax, r9
jne 0x18000c1d0
mov byte [rsp + 0x32], 1
mov qword [rbp + 0x48], r13
mov rcx, qword [rsp + 0x38]
add rcx, 0x40
mov rax, qword [rcx + 0x10]
sub rax, qword [rcx]
cmp r13, rax
jbe 0x18000c0e9
movabs rax, 0x7fffffffffffffff
cmp r13, rax
ja 0x18000cb2f
lea rdx, [rbp + 0x48]
call fcn.1800113b0
movups xmm6, xmmword [rbp + 0x38]
movups xmm7, xmmword [rbp + 0x28]
jmp 0x18000c0e9
lea r8, [rsp + 0x60]
add rcx, 0x28
call fcn.1800121a0
mov rdx, qword [rbp - 0x68]
mov r15, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x18000c299
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c294
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c7a8
call fcn.180077004
cmp r15, 0xf
jbe 0x18000c2d3
lea rdx, [r15 + 1]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c2cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c7a8
call fcn.180077004
nop
mov rdx, qword [rbp + 0x40]
cmp rdi, rbx
je 0x18000c338
cmp rdx, 0xf
jbe 0x18000c313
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c30e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c7af
call fcn.180077004
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], send
mov byte [rbp + 0x28], 0
lea rcx, [rbp + 0xb8]
call fcn.1800090f0
jmp 0x18000bfd2
cmp rdx, 0xf
jbe 0x18000c36f
inc rdx
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c36a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c7af
call fcn.180077004
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x40], send
mov byte [rbp + 0x28], 0
lea rcx, [rbp + 0xb8]
call fcn.1800090f0
lea rdx, [rbx + 2]
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
cmp rdi, rdx
je 0x18000c3b9
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
mov r15b, 1
mov byte [rsp + 0x30], r15b
mov rdx, qword [rbp + 0xa0]
cmp rdx, 0xf
jbe 0x18000c40a
inc rdx
mov rcx, qword [rbp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c3fd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c7b6
call fcn.180077004
mov rdi, qword [rbp - 0x40]
mov rbx, qword [rbp - 0x38]
cmp byte [rsp + 0x31], 0
je 0x18000c676
mov r8d, dword [rbp - 0x44]
nop dword [rax]
test r12, r12
je 0x18000c49c
sub rbx, rdi
mov r15, r12
cmp rbx, r12
cmovb r15, rbx
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x48]
mov r9, r15
mov r8, rdi
add rcx, 0x40
call fcn.180011b00
mov rdi, qword [rbp - 0x40]
lea rdx, [rdi + r15]
mov rbx, qword [rbp - 0x38]
cmp rdi, rdx
je 0x18000c474
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
sub r12, r15
mov r8d, dword [rbp - 0x44]
movzx r8d, r8b
mov eax, 1
cmove r8d, eax
mov dword [rbp - 0x44], r8d
cmp rdi, rbx
movzx r15d, byte [rsp + 0x30]
jne 0x18000c420
jmp 0x18000be6f
test r8b, r8b
je 0x18000c4f0
mov rax, rbx
sub rax, rdi
cmp rax, 2
movzx r15d, byte [rsp + 0x30]
jb 0x18000be6f
movzx eax, word [rbp - 0x48]
cmp ax, word [rdi]
sete al
test al, al
je 0x18000cb35
xor al, al
mov dword [rbp - 0x44], eax
lea rdx, [rdi + 2]
cmp rdi, rdx
je 0x18000c4f0
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
mov rcx, rbx
mov rax, rbx
sub rax, rdi
cmp rax, 2
jl 0x18000c52b
lea r8, [rbx - 2]
mov rdx, rdi
nop word [rax + rax]
movzx eax, word [rbp - 0x48]
cmp ax, word [rdx]
sete al
test al, al
jne 0x18000c528
cmp rdx, r8
je 0x18000c52b
inc rdx
jmp 0x18000c510
mov rcx, rdx
cmp rcx, rbx
movzx r15d, byte [rsp + 0x30]
je 0x18000be6f
xor r12d, r12d
cmp rdi, rcx
je 0x18000c592
mov rax, rdi
nop word [rax + rax]
movzx r8d, byte [rax]
lea edx, [r8 - 0x30]
cmp dl, 9
ja 0x18000c563
lea rdx, [r8 - 0x30]
jmp 0x18000c583
lea edx, [r8 - 0x41]
cmp dl, 5
ja 0x18000c572
lea rdx, [r8 - 0x37]
jmp 0x18000c583
lea edx, [r8 - 0x61]
cmp dl, 5
ja 0x18000cb56
lea rdx, [r8 - 0x57]
shl r12, 4
add r12, rdx
inc rax
cmp rax, rcx
jne 0x18000c550
lea rdx, [rcx + 2]
cmp rdi, rdx
je 0x18000c5b4
sub rbx, rdx
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
mov qword [rbp - 0x38], rbx
mov rdi, qword [rbp - 0x40]
test r12, r12
jne 0x18000c415
test rdi, rdi
je 0x18000c606
mov rdx, qword [rbp - 0x30]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18000c5ee
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8a2
mov rcx, rdi
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
cmp rsi, 0xffffffffffffffff
je 0x18000c616
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000c660
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c64b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8ff
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, qword [rsp + 0x38]
jmp 0x18000c76d
sub rbx, rdi
mov rcx, qword [rsp + 0x38]
mov rdx, qword [rcx + 0x48]
mov r9, rbx
mov r8, rdi
mov rdi, rcx
lea rcx, [rcx + 0x40]
call fcn.180011b00
mov rcx, qword [rbp - 0x40]
cmp rcx, qword [rbp - 0x38]
je 0x18000c6a2
mov qword [rbp - 0x38], rcx
cmp byte [rsp + 0x32], 0
je 0x18000be74
mov rax, qword [rdi + 0x48]
sub rax, qword [rdi + 0x40]
cmp rax, r13
jb 0x18000be74
test rcx, rcx
je 0x18000c704
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c6ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8a2
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
cmp rsi, 0xffffffffffffffff
je 0x18000c714
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000c75e
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c749
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8ff
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, rdi
mov rcx, qword [rbp + 0x1140]
xor rcx, rsp
call fcn.180076c30
lea r11, [rsp + 0x1298]
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 r9, r9
je 0x18000c806
mov rdx, qword [rbp - 0x30]
sub rdx, r9
mov rax, r9
cmp rdx, 0x1000
jb 0x18000c7ee
add rdx, 0x27
mov r9, qword [r9 - 8]
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8a2
mov rcx, r9
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
cmp rsi, 0xffffffffffffffff
je 0x18000c816
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000c860
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c84b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000c8ff
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18000c76a
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x18000c8be
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c8a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c8a9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
cmp rsi, 0xffffffffffffffff
je 0x18000c8ce
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000c91b
mov rdx, qword [rbp]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000c906
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000c906
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180077004
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
mov qword [rbp], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x18000c76a
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 8]
call fcn.18000a5a0
lea rdx, [0x180095120]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r9, str.Failed_to_connect
lea rcx, [rbp + 0x50]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp + 8]
call fcn.18000a5a0
lea rdx, [0x180095120]
lea rcx, [rbp + 8]
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 + 8]
call fcn.1800023b0
nop
mov r9, rax
mov edx, ebx
lea rcx, [rsp + 0x60]
call fcn.180008290
lea rdx, [0x180094fe8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.180005d80
int3
call fcn.180001e10
nop
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_create_socket
lea rcx, [rsp + 0x60]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x40]
call fcn.18000a7d0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea r9, str.Failed_to_get_socket_flags
lea rcx, [rbp + 0x78]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x78]
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 + 0x50]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x50]
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 + 0x50]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x50]
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 + 0x50]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x50]
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, [rbp + 0x78]
call fcn.1800083b0
lea rdx, [0x180094fe8]
lea rcx, [rbp + 0x78]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rbp + 0x28]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rsp + 0x60]
call fcn.1800023b0
nop
mov rdx, rax
lea rcx, [rbp + 8]
call fcn.18000cf90
lea rdx, [0x180095168]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Invalid_digit
lea rcx, [rbp + 8]
call fcn.18000a7e0
lea rdx, [0x180095168]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.180005d80
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp + 8]
call fcn.18000a7e0
lea rdx, [0x180095168]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Invalid_hex_digit
lea rcx, [rbp + 8]
call fcn.18000a7e0
lea rdx, [0x180095168]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea rdx, str.Unsupported_protocol
lea rcx, [rbp + 8]
call fcn.18000a5a0
lea rdx, [0x180095120]
lea rcx, [rbp + 8]
call sub.VCRUNTIME140.dll__CxxThrowException
int3