Function at 0x1401d48b0
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 [0x1402bd5c0]
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 0x1401d4921
mov rcx, qword [rsp + 0x2f8]
call fcn.14001d480
test rax, rax
jne 0x1401d4917
xor eax, eax
jmp 0x1401d526c
mov eax, 1
jmp 0x1401d526c
mov dword [rsp + 0xc0], 0
jmp 0x1401d493f
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.14001d480
cmp rdi, rax
jae 0x1401d499c
movsxd rdx, dword [rsp + 0xc0]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
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.140007280
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401d492e
mov rcx, qword [rsp + 0x2f8]
call fcn.14001d500
lea rcx, [rsp + 0x50]
call fcn.140006ee0
nop
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0xb8], rax
lea rcx, [rsp + 0x88]
call fcn.140006ee0
nop
mov dword [rsp + 0x80], 0
cmp qword [rsp + 0xb8], 0
je 0x1401d4b26
movsxd rcx, dword [rsp + 0x80]
mov rax, qword [rsp + 0xb8]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x1401d4b26
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, [0x140234310]
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [rsp + 0xc4], eax
jne 0x1401d4a54
lea rcx, [rsp + 0x88]
call fcn.140006f30
jmp 0x1401d4b26
lea rcx, [rsp + 0x50]
call fcn.1400078a0
test rax, rax
je 0x1401d4afb
lea rdx, [rsp + 0x130]
lea rcx, [rsp + 0x50]
call fcn.140055990
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.14001d8a0
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.140055990
mov rdi, rax
lea r9, [rsp + 0xc4]
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x240]
lea rcx, [rsp + 0x150]
call fcn.140025460
mov rdx, rdi
mov rcx, rax
call fcn.1400208a0
movzx eax, al
test eax, eax
je 0x1401d4b10
lea rdx, [rsp + 0xc4]
lea rcx, [rsp + 0x88]
call fcn.1400072d0
mov eax, dword [rsp + 0x80]
add eax, 1
mov dword [rsp + 0x80], eax
jmp 0x1401d49dd
lea rcx, [rsp + 0x88]
call fcn.1400078a0
test rax, rax
jne 0x1401d4bf3
mov dword [rsp + 0xc8], 0
jmp 0x1401d4b5a
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.14001d480
cmp rdi, rax
jae 0x1401d4bb7
movsxd rdx, dword [rsp + 0xc8]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
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.140007280
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401d4b49
mov rcx, qword [rsp + 0x2f8]
call fcn.14001d500
mov dword [rsp + 0x170], 0
lea rcx, [rsp + 0x88]
call fcn.14001d420
nop
lea rcx, [rsp + 0x50]
call fcn.14001d420
mov eax, dword [rsp + 0x170]
jmp 0x1401d526c
mov dword [rsp + 0xcc], 0
jmp 0x1401d4c11
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.14001d480
cmp rdi, rax
jae 0x1401d4f55
mov dword [rsp + 0xe8], reloc.OLEAUT32.dll_SafeArrayGetDim
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
lea r8, [rsp + 0xe8]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401d4d54
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
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.140007280
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.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x198]
mov rcx, rax
call fcn.140021050
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.140020ec0
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401d4c00
mov dword [rsp + 0xec], 0
mov dword [rsp + 0xf0], 0
jmp 0x1401d4d7d
mov eax, dword [rsp + 0xf0]
add eax, 1
mov dword [rsp + 0xf0], eax
movsxd rdi, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.1400078a0
cmp rdi, rax
jae 0x1401d4e5e
movsxd rdx, dword [rsp + 0xf0]
lea rcx, [rsp + 0x88]
call fcn.140020f60
mov eax, dword [rax]
cmp dword [rsp + 0xdc], eax
jne 0x1401d4e59
mov dword [rsp + 0xec], 1
movsxd rdi, dword [rsp + 0xf0]
lea rdx, [rsp + 0x1c8]
lea rcx, [rsp + 0x88]
call fcn.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x1d8]
mov rcx, rax
call fcn.140008e80
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.140020fb0
jmp 0x1401d4e5e
jmp 0x1401d4d6c
cmp dword [rsp + 0xec], 0
jne 0x1401d4f50
movsxd rdx, dword [rsp + 0xcc]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
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.140007280
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.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x218]
mov rcx, rax
call fcn.140021050
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.140020ec0
mov eax, dword [rsp + 0xcc]
sub eax, 1
mov dword [rsp + 0xcc], eax
jmp 0x1401d4c00
jmp 0x1401d4c00
mov dword [rsp + 0xf4], 0
jmp 0x1401d4f73
mov eax, dword [rsp + 0xf4]
add eax, 1
mov dword [rsp + 0xf4], eax
movsxd rdi, dword [rsp + 0xf4]
lea rcx, [rsp + 0x88]
call fcn.1400078a0
cmp rdi, rax
jae 0x1401d5242
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.140020f60
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 0x1401d518d
mov dword [rsp + 0x12c], 0
jmp 0x1401d50f4
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.14001d480
cmp rdi, rax
jae 0x1401d5151
movsxd rdx, dword [rsp + 0x12c]
mov rcx, qword [rsp + 0x2f8]
call fcn.140007280
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.140007280
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401d50e3
mov rcx, qword [rsp + 0x2f8]
call fcn.14001d500
mov dword [rsp + 0x238], 0xffffffff
lea rcx, [rsp + 0x88]
call fcn.14001d420
nop
lea rcx, [rsp + 0x50]
call fcn.14001d420
mov eax, dword [rsp + 0x238]
jmp 0x1401d526c
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.140020de0
jmp 0x1401d4f62
mov dword [rsp + 0x23c], 1
lea rcx, [rsp + 0x88]
call fcn.14001d420
nop
lea rcx, [rsp + 0x50]
call fcn.14001d420
mov eax, dword [rsp + 0x23c]
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x2d8
pop rdi
pop rsi
ret