Function at 0x1401c6b20
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 [0x1402aa5c0]
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 0x1401c6b91
mov rcx, qword [rsp + 0x2f8]
call fcn.14001be50
test rax, rax
jne 0x1401c6b87
xor eax, eax
jmp 0x1401c74dc
mov eax, 1
jmp 0x1401c74dc
mov dword [rsp + 0xc0], 0
jmp 0x1401c6baf
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.14001be50
cmp rdi, rax
jae 0x1401c6c0c
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1401c6b9e
mov rcx, qword [rsp + 0x2f8]
call fcn.14001bff0
lea rcx, [rsp + 0x50]
call fcn.1400070f0
nop
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x88]
call fcn.1400070f0
nop
mov dword [rsp + 0x80], 0
cmp qword [rsp + 0xb8], 0
je 0x1401c6d96
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1401c6d96
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, [0x140223c00]
call qword [sym.imp.WSOCK32.dll_inet_addr]
cmp dword [rsp + 0xc4], eax
jne 0x1401c6cc4
lea rcx, [rsp + 0x88]
call fcn.14001bf20
jmp 0x1401c6d96
lea rcx, [rsp + 0x50]
call fcn.14001fd50
test rax, rax
je 0x1401c6d6b
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.14001c5e0
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.14001fcd0
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.14001c5e0
mov rdi, rax
lea r9, [rsp + 0xc4]
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x150]
call fcn.1400239c0
mov rdx, rdi
mov rcx, rax
call fcn.14001c7b0
movzx eax, al
test eax, eax
je 0x1401c6d80
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0x88]
call fcn.14000f810
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
jmp 0x1401c6c4d
lea rcx, [rsp + 0x88]
call fcn.14001fd50
test rax, rax
jne 0x1401c6e63
mov dword [rsp + 0xc8], 0
jmp 0x1401c6dca
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.14001be50
cmp rdi, rax
jae 0x1401c6e27
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1401c6db9
mov rcx, qword [rsp + 0x2f8]
call fcn.14001bff0
mov dword [rsp + 0x170], 0
lea rcx, [rsp + 0x88]
call fcn.14001bef0
nop
lea rcx, [rsp + 0x50]
call fcn.14001bef0
mov eax, dword [rsp + 0x170]
jmp 0x1401c74dc
mov dword [rsp + 0xcc], 0
jmp 0x1401c6e81
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.14001be50
cmp rdi, rax
jae 0x1401c71c5
mov dword [rsp + 0xe8], reloc.OLEAUT32.dll_SafeArrayGetDim
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x1401c6fc4
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
movsxd rdi, dword [rsp + 0xcc]
lea rdx, [rsp + 0x188]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.140028d20
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.140029fa0
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c6e70
mov dword [rsp + 0xec], 0
mov dword [rsp + 0xf0], 0
jmp 0x1401c6fed
mov eax, dword [rsp + 0xf0]
add eax, 1
mov dword [rsp + 0xf0], eax
movsxd rdi, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.14001fd50
cmp rdi, rax
jae 0x1401c70ce
movsxd rdx, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.14000f7c0
mov eax, dword [rax]
cmp dword [rsp + 0xdc], eax
jne 0x1401c70c9
mov dword [rsp + 0xec], 1
movsxd rdi, dword [rsp + 0xf0]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x88]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.140008590
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.14001fd70
jmp 0x1401c70ce
jmp 0x1401c6fdc
cmp dword [rsp + 0xec], 0
jne 0x1401c71c0
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
movsxd rdi, dword [rsp + 0xcc]
lea rdx, [rsp + 0x208]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.140028d20
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.140029fa0
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c6e70
jmp 0x1401c6e70
mov dword [rsp + 0xf4], 0
jmp 0x1401c71e3
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
movsxd rdi, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.14001fd50
cmp rdi, rax
jae 0x1401c74b2
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WSOCK32.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.WSOCK32.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.WSOCK32.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.WSOCK32.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.WSOCK32.dll_ntohl
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0x118], ax
movzx ecx, word [rsp + 0x300]
call qword [sym.imp.WSOCK32.dll_htons]
mov word [rsp + 0x11a], ax
movsxd rdx, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.14000f7c0
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.WSOCK32.dll_bind]
test eax, eax
je 0x1401c73fd
mov dword [rsp + 0x12c], 0
jmp 0x1401c7364
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.14001be50
cmp rdi, rax
jae 0x1401c73c1
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1401c7353
mov rcx, qword [rsp + 0x2f8]
call fcn.14001bff0
mov dword [rsp + 0x238], 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14001bef0
nop
lea rcx, [rsp + 0x50]
call fcn.14001bef0
mov eax, dword [rsp + 0x238]
jmp 0x1401c74dc
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.WSOCK32.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.140029ec0
jmp 0x1401c71d2
mov dword [rsp + 0x23c], 1
lea rcx, [rsp + 0x88]
call fcn.14001bef0
nop
lea rcx, [rsp + 0x50]
call fcn.14001bef0
mov eax, dword [rsp + 0x23c]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x2d8
pop rdi
pop rsi
ret