Function at 0x140007850
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x260]
sub rsp, 0x360
mov rax, qword [0x14019d3c0]
xor rax, rsp
mov qword [rbp + 0x250], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov dword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
xor esi, esi
mov qword [rcx], rsi
mov qword [rcx + 8], rsi
mov qword [rcx + 0x10], rsi
mov dword [rsp + 0x20], 1
mov ecx, 0x202
lea rdx, [rbp - 0x70]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400078e6
lea rdx, str.WSAStartup_failed.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000cd50
lea rdx, [0x14000d3f0]
mov rcx, rax
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]
jmp 0x140007a62
mov edx, 0x100
lea rcx, [rbp + 0x150]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x140007924
lea rdx, str.Failed_to_get_hostname.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000cd50
lea rdx, [0x14000d3f0]
mov rcx, rax
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]
jmp 0x140007a5b
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
movups xmmword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x78], xmm0
mov dword [rsp + 0x5c], 2
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x58]
xor edx, edx
lea rcx, [rbp + 0x150]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x140007964
lea rdx, str.Failed_to_resolve_hostname_to_IP.
jmp 0x140007903
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140007a52
mov rdx, qword [rdi + 0x20]
add rdx, 4
mov r9d, socket
lea r8, [rbp + 0x130]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_ntop]
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
lea rax, [rbp + 0x130]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1400079b2
lea rdx, [rbp + 0x130]
lea rcx, [rsp + 0x28]
call fcn.140001270
nop
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x1400079fa
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x38]
movups xmmword [rdx + 0x10], xmm1
mov edx, reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
add qword [rbx + 8], 0x20
jmp 0x140007a0c
lea r8, [rsp + 0x28]
mov rcx, rbx
call fcn.140012cb0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0xf
jbe 0x140007a40
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007a3b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140007a8d
call fcn.140157d3c
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140007972
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x250]
xor rcx, rsp
call fcn.140157800
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
int3