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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140021010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rdi, rcx
lea rdx, [rsp + 0x70]
xor esi, esi
mov ecx, 0x202
mov qword [rsp + 0x30], rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [rsi + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140015ee4
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rsi
mov qword [rax + 0x28], rsi
mov qword [rax + 0x30], rsi
mov qword [rax + 0x38], rsi
mov qword [rax + 0x10], 0xffffffffffffffff
mov rax, qword [rdi]
mov qword [rbx + 8], rax
mov rax, qword [rdi + 8]
mov qword [rbx + 0x18], rax
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x140015d97
lea r8, [rsp + 0x38]
lea rdx, [0x14001c77c]
call fcn.140014ff0
cmp eax, 1
mov ecx, esi
cmove ecx, dword [rsp + 0x38]
jmp 0x140015d9c
mov ecx, 0x7530
mov eax, ecx
mov qword [rbx + 0x28], rax
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x140015dc5
lea r8, [rsp + 0x38]
lea rdx, [0x14001c77c]
call fcn.140014ff0
cmp eax, 1
mov eax, dword [rsp + 0x38]
je 0x140015dc7
mov eax, esi
mov qword [rbx + 0x38], rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x140015dee
lea r8, [rsp + 0x38]
lea rdx, [0x14001c77c]
call fcn.140014ff0
cmp eax, 1
mov eax, dword [rsp + 0x38]
je 0x140015df0
mov eax, esi
mov qword [rbx + 0x30], rax
lea r9, [rsp + 0x30]
mov rdx, qword [rdi + 0x18]
lea r8, [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
xorps xmm0, xmm0
xorps xmm1, xmm1
mov dword [rsp + 0x6c], esi
movdqu xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x44], esi
movdqu xmmword [rsp + 0x5c], xmm1
mov dword [rsp + 0x48], 1
mov dword [rsp + 0x40], 1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x140015ee4
mov rcx, qword [rsp + 0x30]
mov r8d, dword [rcx + 0xc]
mov edx, dword [rcx + 8]
mov ecx, dword [rcx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbx + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x140015ee4
lea r8, [rsp + 0x38]
mov dword [rsp + 0x38], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x3c], 1
lea r9, [rsp + 0x3c]
mov rcx, qword [rbx + 0x10]
mov edx, 0xffff
mov r8d, 4
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rbx + 0x10]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x140015ee4
mov rcx, qword [rbx + 0x10]
mov edx, 0x3ff
call qword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x140015ee4
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, rbx
jmp 0x140015f33
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140015ef4
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test rbx, rbx
je 0x140015f31
mov rcx, qword [rbx]
test rcx, rcx
je 0x140015f18
mov rax, qword [rcx + 0xa0]
mov qword [rbx], rax
call fcn.1400156e0
mov rcx, qword [rbx]
test rcx, rcx
jne 0x140015f01
mov rcx, qword [rbx + 0x10]
cmp rcx, 0xffffffffffffffff
je 0x140015f28
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140018980
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret