Function at 0x140008800
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x230
mov rbx, rdx
mov rdi, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x90]
xor r14d, r14d
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000886d
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.WSAStartup_failed
call fcn.140013520
mov rcx, rax
lea rdx, [0x1400136f0]
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]
lea rdx, [0x14002e548]
mov rcx, rdi
call fcn.140007580
mov rax, rdi
add rsp, 0x230
pop r14
pop rdi
pop rbx
ret
cmp qword [rbx + 0x18], 0xf
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x64], 2
mov dword [rsp + 0x68], 1
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
jbe 0x14000889c
mov rbx, qword [rbx]
lea r9, [rsp + 0x260]
xor edx, edx
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000893e
mov qword [rsp + 0x30], r14
lea rbx, [0x14003fbc0]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
lea rdx, str.getaddrinfo_error:
call fcn.140013520
mov rcx, rax
mov rdx, rbx
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400136f0]
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]
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea rdx, [0x14002e548]
mov rcx, rdi
call fcn.140007580
mov rax, rdi
add rsp, 0x230
pop r14
pop rdi
pop rbx
ret
mov rbx, qword [rsp + 0x260]
mov qword [rsp + 0x250], rbp
mov ebp, 0x16
mov qword [rsp + 0x258], rsi
test rbx, rbx
je 0x14000898c
mov rdx, qword [rbx + 0x20]
lea r8, [rsp + 0x48]
add rdx, 4
mov r9, rbp
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140008960
mov rbx, qword [rsp + 0x260]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xorps xmm0, xmm0
lea rax, [rsp + 0x48]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r14
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], r14
inc rbx
cmp byte [rax + rbx], r14b
jne 0x1400089b5
movabs rsi, 0x7fffffffffffffff
cmp rbx, rsi
ja 0x140008aa6
mov qword [rdi + 0x18], 0xf
cmp rbx, 0xf
ja 0x1400089fc
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x48]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], r14b
jmp 0x140008a87
mov rax, rbx
or rax, 0xf
cmp rax, rsi
jbe 0x140008a31
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.14002781c
test rax, rax
je 0x140008a53
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140008a67
cmp rax, rbp
mov rsi, rax
cmovb rsi, rbp
lea rcx, [rsi + 1]
cmp rcx, 0x1000
jb 0x140008a5a
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140008aac
jmp 0x140008a16
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140008a67
call fcn.14002781c
mov r14, rax
mov r8, rbx
mov qword [rdi], r14
lea rdx, [rsp + 0x48]
mov qword [rdi + 0x10], rbx
mov rcx, r14
mov qword [rdi + 0x18], rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
mov rbp, qword [rsp + 0x250]
mov rax, rdi
mov rsi, qword [rsp + 0x258]
add rsp, 0x230
pop r14
pop rdi
pop rbx
ret
call fcn.1400065d0
int3
call fcn.140006530
int3