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

Disassembly:
jmp 0x140062030
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 [0x14008e148]
xor rax, rbp
mov qword [rbp + 0x408], rax
lea rcx, reloc.WS2_32.dll_accept
call fcn.140027536
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 0x1400620ad
jmp 0x14006229d
mov r8d, 0x40
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.140026fe6
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 0x140062115
mov rax, qword [rbp + 0x430]
mov rcx, qword [rax + 0x20]
call fcn.140063e20
mov dword [rbp + 0x404], eax
jmp 0x14006211f
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.140063e20
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.140063e20
mov eax, eax
mov rcx, qword [rbp + 8]
mov qword [rcx + 0x30], rax
mov r8d, gethostbyname
xor edx, edx
lea rcx, [rbp + 0x28]
call fcn.140026fe6
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 0x1400621bf
jmp 0x14006229d
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 0x1400621f3
jmp 0x14006229d
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x10]
call fcn.140063b80
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 0x140062261
jmp 0x14006229d
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 0x140062285
jmp 0x14006229d
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbp + 0x78], 0
mov rax, qword [rbp + 8]
jmp 0x1400622c0
cmp qword [rbp + 0x78], 0
je 0x1400622ae
mov rcx, qword [rbp + 0x78]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp qword [rbp + 8], 0
je 0x1400622be
mov rcx, qword [rbp + 8]
call fcn.140026e10
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_connect
call fcn.140027171
mov rax, rdi
mov rcx, qword [rbp + 0x408]
xor rcx, rbp
call fcn.140026a1e
lea rsp, [rbp + 0x418]
pop rdi
pop rbp
ret