Function at 0x1401c03e0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns
Set socket configuration

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x2d8
mov qword [rsp + 0x2c0], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov rax, qword [rsp + 0x2f0]
add rax, 0x2a8
xor ecx, ecx
xchg dword [rax], ecx
mov eax, ecx
test eax, eax
jne 0x1401c0451
mov rcx, qword [rsp + 0x2f8]
call fcn.14001db40
test rax, rax
jne 0x1401c0447
xor eax, eax
jmp 0x1401c0d9c
mov eax, 1
jmp 0x1401c0d9c
mov dword [rsp + 0xc0], 0
jmp 0x1401c046f
mov eax, dword [rsp + 0xc0]
add eax, 1
mov dword [rsp + 0xc0], eax
movsxd rdi, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c04cc
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c045e
mov rcx, qword [rsp + 0x2f8]
call fcn.14001de20
lea rcx, [rsp + 0x50]
call fcn.140006e60
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x88]
call fcn.140006e60
nop
mov dword [rsp + 0x80], 0
cmp qword [rsp + 0xb8], 0
je 0x1401c0656
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1401c0656
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
mov dword [rsp + 0xc4], eax
lea rcx, [0x14021d140]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [rsp + 0xc4], eax
jne 0x1401c0584
lea rcx, [rsp + 0x88]
call fcn.14001dd50
jmp 0x1401c0656
lea rcx, [rsp + 0x50]
call fcn.140007d60
test rax, rax
je 0x1401c062b
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.140008ad0
lea rdi, [rsp + 0x250]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x50]
call fcn.14001e460
lea rdi, [rsp + 0x240]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x50]
call fcn.140008ad0
mov rdi, rax
lea r9, [rsp + 0xc4]
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x150]
call fcn.1400260a0
mov rdx, rdi
mov rcx, rax
call fcn.14000cd00
movzx eax, al
test eax, eax
je 0x1401c0640
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0x88]
call fcn.140006eb0
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
jmp 0x1401c050d
lea rcx, [rsp + 0x88]
call fcn.140007d60
test rax, rax
jne 0x1401c0723
mov dword [rsp + 0xc8], 0
jmp 0x1401c068a
mov eax, dword [rsp + 0xc8]
add eax, 1
mov dword [rsp + 0xc8], eax
movsxd rdi, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c06e7
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c0679
mov rcx, qword [rsp + 0x2f8]
call fcn.14001de20
mov dword [rsp + 0x170], 0
lea rcx, [rsp + 0x88]
call fcn.14001dd20
nop
lea rcx, [rsp + 0x50]
call fcn.14001dd20
mov eax, dword [rsp + 0x170]
jmp 0x1401c0d9c
mov dword [rsp + 0xcc], 0
jmp 0x1401c0741
mov eax, dword [rsp + 0xcc]
add eax, 1
mov dword [rsp + 0xcc], eax
movsxd rdi, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c0a85
mov dword [rsp + 0xe8], reloc.OLEAUT32.dll_SafeArrayGetDim
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c0884
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0xcc]
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.14001e570
lea rdi, [rsp + 0x2b0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x178]
lea rsi, [rsp + 0x2b0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x260]
lea rsi, [rsp + 0x178]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x260]
lea rdx, [rsp + 0x1a8]
mov rcx, qword [rsp + 0x2f8]
call fcn.140021a90
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c0730
mov dword [rsp + 0xec], 0
mov dword [rsp + 0xf0], 0
jmp 0x1401c08ad
mov eax, dword [rsp + 0xf0]
add eax, 1
mov dword [rsp + 0xf0], eax
movsxd rdi, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.140007d60
cmp rdi, rax
jae 0x1401c098e
movsxd rdx, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.140007d80
mov eax, dword [rax]
cmp dword [rsp + 0xdc], eax
jne 0x1401c0989
mov dword [rsp + 0xec], 1
movsxd rdi, dword [rsp + 0xf0]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x88]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.140009d50
lea rdi, [rsp + 0x2a0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1b8]
lea rsi, [rsp + 0x2a0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x270]
lea rsi, [rsp + 0x1b8]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x270]
lea rdx, [rsp + 0x1e8]
lea rcx, [rsp + 0x88]
call fcn.1400209e0
jmp 0x1401c098e
jmp 0x1401c089c
cmp dword [rsp + 0xec], 0
jne 0x1401c0a80
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0xcc]
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.14001e570
lea rdi, [rsp + 0x290]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1f8]
lea rsi, [rsp + 0x290]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x280]
lea rsi, [rsp + 0x1f8]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x280]
lea rdx, [rsp + 0x228]
mov rcx, qword [rsp + 0x2f8]
call fcn.140021a90
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c0730
jmp 0x1401c0730
mov dword [rsp + 0xf4], 0
jmp 0x1401c0aa3
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
movsxd rdi, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.140007d60
cmp rdi, rax
jae 0x1401c0d72
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x110], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x110]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x100], 0x8000
mov dword [rsp + 0xf8], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x100]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xf8], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x100]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xf8], eax
xor eax, eax
mov word [rsp + 0x118], ax
lea rdi, [rsp + 0x11a]
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x118], ax
movzx ecx, word [rsp + 0x300]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x11a], ax
movsxd rdx, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.140007d80
mov eax, dword [rax]
mov dword [rsp + 0x11c], eax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401c0cbd
mov dword [rsp + 0x12c], 0
jmp 0x1401c0c24
mov eax, dword [rsp + 0x12c]
add eax, 1
mov dword [rsp + 0x12c], eax
movsxd rdi, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c0c81
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c0c13
mov rcx, qword [rsp + 0x2f8]
call fcn.14001de20
mov dword [rsp + 0x238], 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14001dd20
nop
lea rcx, [rsp + 0x50]
call fcn.14001dd20
mov eax, dword [rsp + 0x238]
jmp 0x1401c0d9c
mov dword [rsp + 0xfc], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xfc]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0x114], 0
mov dword [rsp + 0x128], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x114]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0x128]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rdx, [rsp + 0x108]
mov rcx, qword [rsp + 0x2f8]
call fcn.1400219b0
jmp 0x1401c0a92
mov dword [rsp + 0x23c], 1
lea rcx, [rsp + 0x88]
call fcn.14001dd20
nop
lea rcx, [rsp + 0x50]
call fcn.14001dd20
mov eax, dword [rsp + 0x23c]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x2d8
pop rdi
pop rsi
ret