Function at 0x14001dec9
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
jmp 0x140039f10
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x448
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x468]
mov rax, qword [0x14006d158]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, [0x140077119]
call fcn.14001e13a
mov qword [rbp + 0x78], 0
lea rdx, [rbp + 0xe0]
mov cx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x40
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140039f8d
jmp 0x14003a17d
mov r8d, 0x40
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.14001dcdf
mov rax, qword [rbp + 8]
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x430]
mov rcx, qword [rcx]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x430]
mov rcx, qword [rcx + 8]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x430]
cmp qword [rax + 0x20], 0
je 0x140039ff5
mov rax, qword [rbp + 0x430]
mov rcx, qword [rax + 0x20]
call fcn.14003bd00
mov dword [rbp + 0x404], eax
jmp 0x140039fff
mov dword [rbp + 0x404], 0x7530
mov eax, dword [rbp + 0x404]
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x28], rax
mov rax, qword [rbp + 0x430]
mov rcx, qword [rax + 0x30]
call fcn.14003bd00
mov eax, eax
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x38], rax
mov rax, qword [rbp + 0x430]
mov rcx, qword [rax + 0x28]
call fcn.14003bd00
mov eax, eax
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x30], rax
mov r8d, gethostbyaddr
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.14001dcdf
mov dword [rbp + 0x2c], 0
mov dword [rbp + 0x30], 1
mov dword [rbp + 0x28], 1
lea r9, [rbp + 0x78]
lea r8, [rbp + 0x28]
mov rax, qword [rbp + 0x430]
mov rdx, qword [rax + 0x18]
mov rax, qword [rbp + 0x430]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14003a09f
jmp 0x14003a17d
mov rax, qword [rbp + 0x78]
mov r8d, dword [rax + 0xc]
mov rax, qword [rbp + 0x78]
mov edx, dword [rax + 8]
mov rax, qword [rbp + 0x78]
mov ecx, dword [rax + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x10], rax
mov rax, qword [rbp + 8]
cmp qword [rax + 0x10], 0xffffffffffffffff
jne 0x14003a0d3
jmp 0x14003a17d
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x10]
call fcn.14003ba60
mov dword [rbp + 0xb4], 1
mov dword [rsp + 0x20], 4
lea r9, [rbp + 0xb4]
mov r8d, 4
mov edx, 0xffff
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rax, qword [rbp + 0x78]
mov r8d, dword [rax + 0x10]
mov rax, qword [rbp + 0x78]
mov rdx, qword [rax + 0x20]
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WS2_32.dll_bind]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14003a141
jmp 0x14003a17d
mov edx, 0x3ff
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WS2_32.dll_listen]
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0
je 0x14003a165
jmp 0x14003a17d
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 8]
jmp 0x14003a1a0
cmp qword [rbp + 0x78], 0
je 0x14003a18e
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rbp + 8], 0
je 0x14003a19e
mov rcx, qword [rbp + 8]
call fcn.14001db68
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_connect
call fcn.14001de01
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.14001d857
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret