Function at 0x1400bb910
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x210], rbx
mov rax, qword [0x1400e71d8]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov r13, rcx
mov qword [rsp + 0x70], rcx
xor r14d, r14d
mov eax, r14d
xchg byte [rcx + 8], al
mov rbx, 0xffffffffffffffff
mov rdi, rbx
inc rdi
cmp byte [rdx + rdi], r14b
jne 0x1400bb967
cmp rdi, 0x100
jb 0x1400bb98e
lea rdx, str.CONNECT_error:_Pool_address_overflow.
mov rcx, qword [rcx + 0x10]
call fcn.1400b67c0
jmp 0x1400bbe4e
mov r8, rdi
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbp + rdi - 0x50], r14b
lea rdx, [0x1400d7440]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strstr
test rax, rax
je 0x1400bb9d0
lea rbx, [rbx + 1]
cmp byte [rax + rbx + 2], r14b
jne 0x1400bb9b4
lea r8, [rbx + 1]
lea rdx, [rax + 2]
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_memmove
mov edx, 0x3a
lea rcx, [rbp - 0x50]
call sub.VCRUNTIME140.dll_strchr
test rax, rax
jne 0x1400bb9f8
lea rdx, str.CONNECT_error:_Pool_port_number_not_specified__please_use_format__hostname_:_port_.
mov rcx, qword [r13 + 0x10]
call fcn.1400b67c0
jmp 0x1400bbe4e
mov byte [rax], r14b
lea rdx, [rax + 1]
mov qword [rsp + 0x78], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
mov dword [rbp - 0x80], 1
mov dword [rbp - 0x7c], 6
lea rdi, [r13 + 0x20]
mov qword [rdi], r14
mov r9, rdi
lea r8, [rsp + 0x78]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400bba57
mov r8d, eax
lea rdx, str.CONNECT_error:_GetAddrInfo:
mov rcx, qword [r13 + 0x10]
call fcn.1400b6950
jmp 0x1400bbe4e
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov rsi, r14
mov qword [rsp + 0x58], r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x40], r14
movdqu xmmword [rsp + 0x48], xmm0
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x50]
test rax, rax
je 0x1400bbda3
mov r15, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
cmp dword [rax + 4], 2
jne 0x1400bbad2
cmp rbx, r15
je 0x1400bbab1
mov qword [r15], rax
add r15, 8
mov qword [rsp + 0x60], r15
jmp 0x1400bbad2
lea r8, [rsp + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.1400bb510
mov rax, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
cmp dword [rax + 4], 0x17
jne 0x1400bbb0c
cmp r12, rdi
je 0x1400bbaeb
mov qword [rdi], rax
add rdi, 8
mov qword [rsp + 0x48], rdi
jmp 0x1400bbb0c
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.1400bb510
mov rax, qword [rsp + 0x30]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x48]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x30], rax
test rax, rax
jne 0x1400bba98
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x40]
cmp rsi, r15
jne 0x1400bbb48
cmp r14, rdi
je 0x1400bbd9f
sub rdi, r14
sar rdi, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
jmp 0x1400bbc15
cmp r14, rdi
jne 0x1400bbb6a
sub r15, rsi
sar r15, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div r15
mov rax, qword [rsi + rdx*8]
jmp 0x1400bbc20
mov r13, qword [0x1400e7c28]
test r13, r13
jne 0x1400bbbae
lea ecx, [r13 + 0x28]
call fcn.1400bc0a8
mov r13, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400bbba4
xor eax, eax
mov qword [r13], rax
mov qword [r13 + 8], rax
mov qword [r13 + 0x10], rax
mov qword [r13 + 0x18], rax
mov qword [r13 + 0x20], rax
jmp 0x1400bbba7
xor r13d, r13d
mov qword [0x1400e7c28], r13
mov rax, qword [r13 + 0x10]
test rax, rax
jne 0x1400bbbd8
mov ecx, 0xc0
call fcn.1400bc0a8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1400bbbd4
mov rcx, rax
call fcn.140015ed0
nop
mov qword [r13 + 0x10], rax
mov rcx, rax
call fcn.1400171d0
test al, al
je 0x1400bbc03
sub r15, rsi
sar r15, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdqe
xor edx, edx
div r15
mov rax, qword [rsi + rdx*8]
mov r13, qword [rsp + 0x70]
jmp 0x1400bbc20
sub rdi, r14
sar rdi, 3
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r13, qword [rsp + 0x70]
cdqe
xor edx, edx
div rdi
mov rax, qword [r14 + rdx*8]
mov qword [r13 + 0x18], rax
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call qword [sym.imp.WSOCK32.dll_socket]
mov qword [r13 + 0x28], rax
cmp rax, 0xffffffffffffffff
jne 0x1400bbcec
mov rcx, qword [r13 + 0x20]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [r13 + 0x20], 0
lea rdx, str.CONNECT_error:_Socket_creation_failed
mov rcx, qword [r13 + 0x10]
call fcn.1400b6800
movzx edi, al
test r14, r14
je 0x1400bbcac
sub r12, r14
sar r12, 3
lea rdx, [r12*8]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400bbca3
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbca3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400bc0ec
nop
test rsi, rsi
je 0x1400bbe4a
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x1400bbe3f
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbe3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x38]
mov edx, 6
lea r8d, [rdx - 5]
mov rcx, rax
call qword [sym.imp.WSOCK32.dll_setsockopt]
nop
test r14, r14
je 0x1400bbd59
sub r12, r14
sar r12, 3
lea rdx, [r12*8]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400bbd50
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbd50
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400bc0ec
nop
test rsi, rsi
je 0x1400bbd98
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x1400bbd8d
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbd8d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rsi
call fcn.1400bc0ec
mov al, 1
jmp 0x1400bbe4e
lea rdi, [r13 + 0x20]
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rdi], 0
lea rdx, str.CONNECT_error:_I_found_some_DNS_records_but_no_IPv4_or_IPv6_addresses.
mov rcx, qword [r13 + 0x10]
call fcn.1400b67c0
movzx edi, al
test r14, r14
je 0x1400bbe0b
sub r12, r14
sar r12, 3
lea rdx, [r12*8]
mov rax, r14
cmp rdx, 0x1000
jb 0x1400bbe02
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbe02
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r14
call fcn.1400bc0ec
nop
test rsi, rsi
je 0x1400bbe4a
sub rbx, rsi
and rbx, 0xfffffffffffffff8
mov rax, rsi
cmp rbx, 0x1000
jb 0x1400bbe3f
add rbx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400bbe3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rbx
mov rcx, rsi
call fcn.1400bc0ec
movzx eax, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400bc560
mov rbx, qword [rsp + 0x210]
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret