Function at 0x14000be90
Capabilities:
Initialize winsock library
Print debug messages
Resolve dns

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400b6088]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rsi, r8
mov rbx, rdx
mov ecx, 0x202
lea rdx, [rbp - 0x10]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000bf1b
lea rcx, str.Winsock2_Failed
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 7
mov word [rbx], cx
xor r8d, r8d
lea rdx, [0x14009f624]
mov rcx, rbx
call fcn.14000aad0
jmp 0x14000c12d
lea rcx, [rsp + 0x70]
call fcn.140002ba0
nop
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x14000bf33
mov r8, qword [rsi]
lea rdi, [rsi + 0x10]
mov rax, qword [rdi]
lea r9, [r8 + rax*2]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.140004460
nop
lea rcx, [rsp + 0x70]
call fcn.140002aa0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 0x10
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov r14, rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000bfaf
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000bfaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c15d
call fcn.14003e9b0
movdqa xmm0, xmmword [0x1400a0800]
movdqu xmmword [rsp + 0x58], xmm0
mov byte [rsp + 0x48], 0
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor ecx, ecx
test r14, r14
je 0x14000bef5
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x40], SafeArrayUnaccessData
mov byte [rsp + 0x28], cl
cmp qword [rsi + 0x18], 8
jb 0x14000bfef
mov rsi, qword [rsi]
mov rax, qword [rdi]
cmp rax, 5
jb 0x14000c082
add rax, 0xfffffffffffffffc
lea r10, [rsi + rax*2]
mov rax, rsi
lea r11, str..t.c.
nop
mov rcx, r10
sub rcx, rax
sar rcx, 1
je 0x14000c082
cmp word [rax], 0x2e
je 0x14000c02b
add rax, 2
sub rcx, 1
jmp 0x14000c019
test rax, rax
je 0x14000c082
mov r8d, 5
mov rdx, r11
mov r9, rax
sub r9, r11
nop
movzx ecx, word [rdx]
cmp word [rdx + r9], cx
jne 0x14000c07c
add rdx, 2
sub r8, 1
jne 0x14000c040
sub rax, rsi
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x14000c082
mov rdx, qword [r14]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x14000c070
jmp 0x14000c0ad
add rax, 2
jmp 0x14000c010
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14000c0a0
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140004cc0
lea rcx, [rsp + 0x70]
call fcn.140002ba0
nop
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 0x10
cmovae r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x38]
add r9, r8
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140004880
nop
lea rcx, [rsp + 0x70]
call fcn.140002aa0
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000c12d
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000c128
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000c157
call fcn.14003e9b0
mov rax, rbx
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.14003e950
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140060238
int3
call fcn.140060238
int3