Function at 0x1400093e8
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1110]
mov eax, 0x1210
call fcn.14000b7c0
sub rsp, rax
mov r15, r9
mov r12, r8
mov r13, rdx
mov rbx, rcx
mov r14d, 1
mov dword [rbp - 0x20], r14d
call sub.MSVCP140.dll__Query_perf_frequency
mov rdi, rax
call sub.MSVCP140.dll__Query_perf_counter
cmp rdi, 0x989680
jne 0x140009444
imul rax, rax, 0x64
jmp 0x14000945f
cqo
idiv rdi
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rdi
add rax, rcx
mov rsi, qword [rbp + 0x1178]
imul rcx, rsi, 0xf4240
add rax, rcx
mov qword [rbp - 0x18], rax
lea rdi, [rbx + 8]
mov r8, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140009489
mov rcx, qword [rdi]
cmp r8, 4
jne 0x140009f71
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140009f71
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
mov al, byte [rbx + 1]
test al, al
jne 0x1400094cd
mov eax, 2
jmp 0x1400094db
cmp al, r14b
jne 0x140009f50
mov eax, reloc.WS2_32.dll_socket
mov dword [rbp + 0xa4], eax
mov dword [rbp + 0xa8], r14d
cmp qword [rbx + 0x98], 0
jne 0x1400094fb
lea rdx, [0x14000e3b8]
jmp 0x14000950c
lea rdx, [rbx + 0x88]
cmp qword [rdx + 0x18], 0x10
jb 0x14000950c
mov rdx, qword [rdx]
lea r14, [rbx + 0x68]
mov rcx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x14000951d
mov rcx, qword [r14]
lea r9, [rbp - 8]
lea r8, [rbp + 0xa0]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140009f92
mov rax, qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x90], rax
mov r14, qword [rbp - 8]
mov qword [rbp - 0x40], r14
mov qword [rbp + 0x98], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
and qword [rbp - 0x28], 0
mov r8, qword [rbp + 0x1170]
lea r9, [r8 + 8]
mov rdx, qword [r9]
sub rdx, qword [r8]
sar rdx, 6
lea rcx, [rbp - 0x38]
call fcn.140002aa4
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
mov r9, r15
mov r8, r12
mov rdx, rdi
lea rcx, [rsp + 0x68]
call fcn.1400080a0
nop
mov dl, byte [rbx + 1]
lea rcx, [rsp + 0x40]
call fcn.1400060fc
nop
or r12, 0xffffffffffffffff
mov r15, qword [rbp - 0x18]
test rsi, rsi
js 0x1400095c7
mov rdx, r15
lea rcx, [rbp + 0x1178]
call fcn.140007018
jmp 0x1400095ca
mov rax, r12
mov r9, rax
mov r8d, dword [r14 + 0x10]
mov rdx, qword [r14 + 0x20]
lea rcx, [rsp + 0x40]
call fcn.140007b58
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
sub rbx, rdi
je 0x140009622
test rsi, rsi
js 0x140009604
mov rdx, r15
lea rcx, [rbp + 0x1178]
call fcn.140007018
jmp 0x140009607
mov rax, r12
mov r9, rax
mov r8, rbx
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14000a038
add rdi, rax
sub rbx, rax
jne 0x1400095ee
mov word [rsp + 0x34], 0xa0d
mov dword [rsp + 0x38], 0xa0d0a0d
xorps xmm0, xmm0
movups xmmword [r13 + 8], xmm0
xor ebx, ebx
mov qword [r13 + 0x18], rbx
mov qword [r13 + 0x20], recv
mov byte [r13 + 8], bl
mov qword [r13 + 0x28], rbx
mov qword [r13 + 0x30], rbx
mov qword [r13 + 0x38], rbx
lea r12, [r13 + 0x40]
mov qword [r12], rbx
mov qword [r12 + 8], rbx
mov qword [r12 + 0x10], rbx
lea eax, [rbx + 1]
mov dword [rbp - 0x20], eax
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rbx
mov dil, bl
mov byte [rsp + 0x30], bl
mov qword [rbp - 0x10], rbx
mov byte [rbp + 0x1150], bl
mov qword [rbp - 0x80], rbx
mov al, bl
mov dword [rsp + 0x3c], eax
mov r15, qword [rbp - 0x50]
mov r14, qword [rbp - 0x58]
jmp 0x14000969f
xor ebx, ebx
test rsi, rsi
js 0x1400096b6
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp + 0x1178]
call fcn.140007018
jmp 0x1400096ba
or rax, 0xffffffffffffffff
mov r9, rax
mov r8d, 0x1000
lea rdx, [rbp + 0x110]
lea rcx, [rsp + 0x40]
call fcn.140008f5c
test rax, rax
je 0x140009e8b
mov r9, rax
lea r8, [rbp + 0x110]
mov rdx, r15
lea rcx, [rbp - 0x58]
call fcn.140002ee8
mov r14, qword [rbp - 0x58]
mov r15, qword [rbp - 0x50]
test dil, dil
jne 0x140009b09
mov byte [rsp + 0x28], bl
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
mov r8, r15
mov rdx, r14
lea rcx, [rbp]
call fcn.14000577c
mov rax, qword [rbp]
cmp rax, r15
je 0x140009de5
lea rdi, [rax + 2]
mov r8, rdi
mov rdx, r14
lea rcx, [rbp + 0x60]
call fcn.1400046f8
nop
mov rbx, qword [rbp + 0x60]
mov eax, dword [rbp + 0x68]
mov dword [r13], eax
movzx eax, word [rbp + 0x6c]
mov word [r13 + 4], ax
lea rdx, [rbp + 0x70]
lea rcx, [r13 + 8]
call fcn.140006f84
xor r12d, r12d
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0x10]
call fcn.1400042e0
nop
mov rbx, qword [rbp + 0x10]
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov r8d, 0x20
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x28], r12
mov qword [rbp + 0x30], recv
mov byte [rbp + 0x18], r12b
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
mov r8d, 0x20
lea rdx, [rbp + 0x38]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp + 0x48], r12
mov qword [rbp + 0x50], recv
mov byte [rbp + 0x38], r12b
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], 0x10
setae r12b
cmovae rcx, qword [rbp - 0x78]
cmp qword [rbp - 0x68], 0x11
jne 0x14000989f
mov r8d, send
lea rdx, str.transfer_encoding
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000989f
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
cmp qword [rsp + 0x58], 7
jne 0x140009fda
lea r8d, [rax + 7]
lea rdx, str.chunked
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140009fda
mov byte [rbp + 0x1150], 1
lea r12, [r13 + 0x40]
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0xd0]
call fcn.140002174
nop
lea rcx, [r13 + 0x28]
mov rax, qword [rcx + 8]
cmp rax, qword [rcx + 0x10]
je 0x14000993a
lea rdx, [rbp + 0xd0]
mov rcx, rax
call fcn.140005e14
add qword [r13 + 0x30], 0x40
jmp 0x14000994a
lea rcx, [rbp - 0x78]
test r12b, r12b
cmovne rcx, qword [rbp - 0x78]
cmp qword [rbp - 0x68], 0xe
jne 0x14000985a
mov r8d, recv
lea rdx, str.content_length
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000985a
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
setae r8b
cmovae rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
add rdx, rcx
lea rcx, [rsp + 0x48]
test r8b, r8b
cmovne rcx, qword [rsp + 0x48]
call fcn.1400058a4
mov qword [rbp - 0x10], rax
mov byte [rsp + 0x30], 1
lea r12, [r13 + 0x40]
mov rcx, qword [r12 + 0x10]
sub rcx, qword [r12]
cmp rax, rcx
jbe 0x14000985e
movabs rcx, 0x7fffffffffffffff
cmp rax, rcx
ja 0x14000a010
mov rdx, rax
mov rcx, r12
call fcn.140007730
jmp 0x14000985e
lea r8, [rbp + 0xd0]
mov rdx, rax
call fcn.140002c7c
nop
lea rcx, [rbp + 0xd0]
call fcn.140006a14
nop
mov rdx, qword [rsp + 0x60]
cmp rbx, rdi
je 0x140009a0c
cmp rdx, 0x10
jb 0x14000999d
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009998
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009dd0
call fcn.14000b550
xor r12d, r12d
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], recv
mov byte [rsp + 0x48], r12b
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x1400099ee
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400099e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009dd7
call fcn.14000b550
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], recv
mov byte [rbp - 0x78], r12b
lea rcx, [rbp + 0x18]
call fcn.140006a14
jmp 0x14000976b
cmp rdx, 0x10
jb 0x140009a44
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009dd0
call fcn.14000b550
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], recv
mov byte [rsp + 0x48], bl
mov rdx, qword [rbp - 0x60]
cmp rdx, 0x10
jb 0x140009a93
inc rdx
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009a8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009dd7
call fcn.14000b550
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], recv
mov byte [rbp - 0x78], bl
lea rcx, [rbp + 0x18]
call fcn.140006a14
lea rcx, [rdi + 2]
cmp r14, rcx
je 0x140009ac6
mov r8, r14
mov rdx, r15
call fcn.140002c18
mov r15, rax
mov qword [rbp - 0x50], rax
mov edi, 1
mov rdx, qword [rbp + 0x88]
cmp rdx, 0x10
jb 0x140009b09
inc rdx
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009b04
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009dde
call fcn.14000b550
cmp byte [rbp + 0x1150], bl
je 0x140009cec
mov rdx, qword [rbp - 0x80]
mov eax, dword [rsp + 0x3c]
test rdx, rdx
je 0x140009b8b
mov rax, r15
sub rax, r14
mov rbx, rdx
cmp rax, rdx
cmovb rbx, rax
mov rdx, qword [r13 + 0x48]
mov r9, rbx
mov r8, r14
mov rcx, r12
call fcn.140002ee8
lea rcx, [r14 + rbx]
cmp r14, rcx
je 0x140009b5f
mov r8, r14
mov rdx, r15
call fcn.140002c18
mov r15, rax
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp - 0x80]
sub rdx, rbx
mov qword [rbp - 0x80], rdx
mov eax, dword [rsp + 0x3c]
movzx eax, al
mov ecx, 1
cmove eax, ecx
mov dword [rsp + 0x3c], eax
cmp r14, r15
lea ebx, [rcx - 1]
je 0x14000969f
jmp 0x140009b1d
test al, al
je 0x140009bdb
mov rax, r15
sub rax, r14
cmp rax, 2
jb 0x14000969f
mov r8d, 2
mov rdx, r14
lea rcx, [rsp + 0x34]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000a016
mov al, bl
mov dword [rsp + 0x3c], eax
lea rcx, [r14 + 2]
cmp r14, rcx
je 0x140009bdb
mov r8, r14
mov rdx, r15
call fcn.140002c18
mov r15, rax
mov qword [rbp - 0x50], rax
mov byte [rsp + 0x28], bl
lea rax, [rsp + 0x36]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
mov r8, r15
mov rdx, r14
lea rcx, [rbp + 8]
call fcn.14000577c
mov rbx, qword [rbp + 8]
cmp rbx, r15
je 0x14000969d
mov rdx, rbx
mov rcx, r14
call fcn.140003f88
mov rdx, rax
mov qword [rbp - 0x80], rax
lea rcx, [rbx + 2]
cmp r14, rcx
je 0x140009c3b
mov r8, r14
mov rdx, r15
call fcn.140002c18
mov r15, rax
mov qword [rbp - 0x50], rax
mov rdx, qword [rbp - 0x80]
xor ebx, ebx
test rdx, rdx
jne 0x140009b19
test r14, r14
je 0x140009c80
mov rdx, qword [rbp - 0x48]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140009c77
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009eb8
mov rcx, r14
call fcn.14000b550
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009c92
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009cdc
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009cc9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009f0d
call fcn.14000b550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140009f32
mov r9, r15
sub r9, r14
mov rdx, qword [r12 + 8]
mov r8, r14
mov rcx, r12
call fcn.140002ee8
cmp r14, r15
cmovne r15, r14
mov qword [rbp - 0x50], r15
cmp byte [rsp + 0x30], bl
je 0x14000969f
mov rax, qword [r12 + 8]
sub rax, qword [r12]
cmp rax, qword [rbp - 0x10]
jb 0x14000969f
test r14, r14
je 0x140009d64
mov rdx, qword [rbp - 0x48]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140009d5b
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009eb8
mov rcx, r14
call fcn.14000b550
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009d76
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009dc0
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009dad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009f0d
call fcn.14000b550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140009f32
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 r14, r14
je 0x140009e1f
mov rdx, qword [rbp - 0x48]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140009e16
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009eb8
mov rcx, r14
call fcn.14000b550
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009e31
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009e7b
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009e68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140009f0d
call fcn.14000b550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
jmp 0x140009f32
test r14, r14
je 0x140009ec8
mov rdx, qword [rbp - 0x48]
sub rdx, r14
mov rax, r14
cmp rdx, 0x1000
jb 0x140009ebf
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009ebf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.14000b550
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x140009eda
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140009f27
mov rdx, qword [rsp + 0x78]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009f14
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009f14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b550
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rbx
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
nop
mov rax, r13
mov rbx, qword [rsp + 0x1260]
add rsp, 0x1210
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Unsupported_protocol
lea rcx, [rbp - 0x38]
call fcn.140005fdc
lea rdx, [0x1400105f0]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Only_HTTP_scheme_is_supported
lea rcx, [rbp - 0x38]
call fcn.140005fdc
lea rdx, [0x1400105f0]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov r8, r14
lea rdx, str.Failed_to_get_address_info_of
lea rcx, [rbp - 0x78]
call fcn.14000268c
nop
mov r9, rax
lea r8, section..data
mov edx, ebx
lea rcx, [rbp + 0xd0]
call fcn.1400066d4
lea rdx, [0x1400104c0]
lea rcx, [rbp + 0xd0]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
lea r8, [rsp + 0x48]
lea rdx, str.Unsupported_transfer_encoding:
lea rcx, [rbp + 0xd0]
call fcn.14000268c
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.140006060
lea rdx, [0x140010680]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140007984
nop
lea rdx, str.Invalid_chunk
lea rcx, [rbp - 0x38]
call fcn.1400060b4
lea rdx, [0x140010680]
lea rcx, [rbp - 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3