Function at 0x1401c1380
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 [0x1402a25c0]
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 0x1401c13f1
mov rcx, qword [rsp + 0x2f8]
call fcn.140007db0
test rax, rax
jne 0x1401c13e7
xor eax, eax
jmp 0x1401c1d3c
mov eax, 1
jmp 0x1401c1d3c
mov dword [rsp + 0xc0], 0
jmp 0x1401c140f
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.140007db0
cmp rdi, rax
jae 0x1401c146c
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
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.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c13fe
mov rcx, qword [rsp + 0x2f8]
call fcn.14001ebd0
lea rcx, [rsp + 0x50]
call fcn.140006dc0
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x88]
call fcn.140006dc0
nop
mov dword [rsp + 0x80], 0
cmp qword [rsp + 0xb8], 0
je 0x1401c15f6
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1401c15f6
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, [0x14021e140]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [rsp + 0xc4], eax
jne 0x1401c1524
lea rcx, [rsp + 0x88]
call fcn.140006e40
jmp 0x1401c15f6
lea rcx, [rsp + 0x50]
call fcn.140007dd0
test rax, rax
je 0x1401c15cb
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.14001ee10
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.140009440
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.14001ee10
mov rdi, rax
lea r9, [rsp + 0xc4]
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x150]
call fcn.140027510
mov rdx, rdi
mov rcx, rax
call fcn.1400239a0
movzx eax, al
test eax, eax
je 0x1401c15e0
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0x88]
call fcn.140022930
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
jmp 0x1401c14ad
lea rcx, [rsp + 0x88]
call fcn.140007dd0
test rax, rax
jne 0x1401c16c3
mov dword [rsp + 0xc8], 0
jmp 0x1401c162a
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.140007db0
cmp rdi, rax
jae 0x1401c1687
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
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.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c1619
mov rcx, qword [rsp + 0x2f8]
call fcn.14001ebd0
mov dword [rsp + 0x170], 0
lea rcx, [rsp + 0x88]
call fcn.140006e10
nop
lea rcx, [rsp + 0x50]
call fcn.140006e10
mov eax, dword [rsp + 0x170]
jmp 0x1401c1d3c
mov dword [rsp + 0xcc], 0
jmp 0x1401c16e1
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.140007db0
cmp rdi, rax
jae 0x1401c1a25
mov dword [rsp + 0xe8], reloc.OLEAUT32.dll_SafeArrayGetDim
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c1824
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
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.14001e980
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.140009440
mov r8, rdi
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.14001f3b0
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.140022890
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c16d0
mov dword [rsp + 0xec], 0
mov dword [rsp + 0xf0], 0
jmp 0x1401c184d
mov eax, dword [rsp + 0xf0]
add eax, 1
mov dword [rsp + 0xf0], eax
movsxd rdi, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.140007dd0
cmp rdi, rax
jae 0x1401c192e
movsxd rdx, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.140012ce0
mov eax, dword [rax]
cmp dword [rsp + 0xdc], eax
jne 0x1401c1929
mov dword [rsp + 0xec], 1
movsxd rdi, dword [rsp + 0xf0]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x88]
call fcn.140009440
mov r8, rdi
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.14000a830
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.1400217f0
jmp 0x1401c192e
jmp 0x1401c183c
cmp dword [rsp + 0xec], 0
jne 0x1401c1a20
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
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.14001e980
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.140009440
mov r8, rdi
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.14001f3b0
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.140022890
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401c16d0
jmp 0x1401c16d0
mov dword [rsp + 0xf4], 0
jmp 0x1401c1a43
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
movsxd rdi, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.140007dd0
cmp rdi, rax
jae 0x1401c1d12
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.140012ce0
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 0x1401c1c5d
mov dword [rsp + 0x12c], 0
jmp 0x1401c1bc4
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.140007db0
cmp rdi, rax
jae 0x1401c1c21
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001e980
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.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c1bb3
mov rcx, qword [rsp + 0x2f8]
call fcn.14001ebd0
mov dword [rsp + 0x238], 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.140006e10
nop
lea rcx, [rsp + 0x50]
call fcn.140006e10
mov eax, dword [rsp + 0x238]
jmp 0x1401c1d3c
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.1400227b0
jmp 0x1401c1a32
mov dword [rsp + 0x23c], 1
lea rcx, [rsp + 0x88]
call fcn.140006e10
nop
lea rcx, [rsp + 0x50]
call fcn.140006e10
mov eax, dword [rsp + 0x23c]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x2d8
pop rdi
pop rsi
ret