Function at 0x14010f910
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, 0x248
mov qword [rsp + 0x230], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov rax, qword [rsp + 0x260]
add rax, 0x378
xor ecx, ecx
xchg dword [rax], ecx
mov eax, ecx
test eax, eax
jne 0x14010f981
mov rcx, qword [rsp + 0x268]
call fcn.140007db0
test rax, rax
jne 0x14010f977
xor eax, eax
jmp 0x1401101b8
mov eax, 1
jmp 0x1401101b8
mov dword [rsp + 0x90], 0
jmp 0x14010f99f
mov eax, dword [rsp + 0x90]
add eax, 1
mov dword [rsp + 0x90], eax
movsxd rdi, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x268]
call fcn.140007db0
cmp rdi, rax
jae 0x14010f9fc
movsxd rdx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x90]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14010f98e
mov rcx, qword [rsp + 0x268]
call fcn.14001ebd0
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x58]
call fcn.140006dc0
nop
mov dword [rsp + 0x50], 0
cmp qword [rsp + 0x88], 0
je 0x14010fab1
movsxd rcx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x18]
cmp qword [rax + rcx*8], 0
je 0x14010fab1
movsxd rcx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + rcx*8]
mov eax, dword [rax]
mov dword [rsp + 0x94], eax
lea rcx, str.127.0.0.1
call qword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [rsp + 0x94], eax
jne 0x14010fa8f
lea rcx, [rsp + 0x58]
call fcn.140006e40
jmp 0x14010fab1
lea rdx, [rsp + 0x94]
lea rcx, [rsp + 0x58]
call fcn.140022930
mov eax, dword [rsp + 0x50]
add eax, 1
mov dword [rsp + 0x50], eax
jmp 0x14010fa2c
lea rcx, [rsp + 0x58]
call fcn.140007dd0
test rax, rax
jne 0x14010fb6d
mov dword [rsp + 0x98], 0
jmp 0x14010fae2
mov eax, dword [rsp + 0x98]
add eax, 1
mov dword [rsp + 0x98], eax
movsxd rdi, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x268]
call fcn.140007db0
cmp rdi, rax
jae 0x14010fb3f
movsxd rdx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x98]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14010fad1
mov rcx, qword [rsp + 0x268]
call fcn.14001ebd0
mov dword [rsp + 0x100], 0
lea rcx, [rsp + 0x58]
call fcn.140006e10
mov eax, dword [rsp + 0x100]
jmp 0x1401101b8
mov dword [rsp + 0x9c], 0
jmp 0x14010fb8b
mov eax, dword [rsp + 0x9c]
add eax, 1
mov dword [rsp + 0x9c], eax
movsxd rdi, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.140007db0
cmp rdi, rax
jae 0x14010fec3
mov dword [rsp + 0xb8], reloc.OLEAUT32.dll_SafeArrayGetDim
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14010fcce
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0x9c]
lea rdx, [rsp + 0x118]
mov rcx, qword [rsp + 0x268]
call fcn.140009440
mov r8, rdi
lea rdx, [rsp + 0x128]
mov rcx, rax
call fcn.14001f3b0
lea rdi, [rsp + 0x220]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x108]
lea rsi, [rsp + 0x220]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1d0]
lea rsi, [rsp + 0x108]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1d0]
lea rdx, [rsp + 0x138]
mov rcx, qword [rsp + 0x268]
call fcn.140022890
mov eax, dword [rsp + 0x9c]
sub eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x14010fb7a
mov dword [rsp + 0xbc], 0
mov dword [rsp + 0xc0], 0
jmp 0x14010fcf7
mov eax, dword [rsp + 0xc0]
add eax, 1
mov dword [rsp + 0xc0], eax
movsxd rdi, dword [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.140007dd0
cmp rdi, rax
jae 0x14010fdcc
movsxd rdx, dword [rsp + 0xc0]
lea rcx, [rsp + 0x58]
call fcn.140012ce0
mov eax, dword [rax]
cmp dword [rsp + 0xac], eax
jne 0x14010fdc7
mov dword [rsp + 0xbc], 1
movsxd rdi, dword [rsp + 0xc0]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x58]
call fcn.140009440
mov r8, rdi
lea rdx, [rsp + 0x168]
mov rcx, rax
call fcn.14000a830
lea rdi, [rsp + 0x210]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x148]
lea rsi, [rsp + 0x210]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1e0]
lea rsi, [rsp + 0x148]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0x178]
lea rcx, [rsp + 0x58]
call fcn.1400217f0
jmp 0x14010fdcc
jmp 0x14010fce6
cmp dword [rsp + 0xbc], 0
jne 0x14010febe
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x9c]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0x9c]
lea rdx, [rsp + 0x198]
mov rcx, qword [rsp + 0x268]
call fcn.140009440
mov r8, rdi
lea rdx, [rsp + 0x1a8]
mov rcx, rax
call fcn.14001f3b0
lea rdi, [rsp + 0x200]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x188]
lea rsi, [rsp + 0x200]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1f0]
lea rsi, [rsp + 0x188]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x1f0]
lea rdx, [rsp + 0x1b8]
mov rcx, qword [rsp + 0x268]
call fcn.140022890
mov eax, dword [rsp + 0x9c]
sub eax, 1
mov dword [rsp + 0x9c], eax
jmp 0x14010fb7a
jmp 0x14010fb7a
mov dword [rsp + 0xc4], 0
jmp 0x14010fee1
mov eax, dword [rsp + 0xc4]
add eax, 1
mov dword [rsp + 0xc4], eax
movsxd rdi, dword [rsp + 0xc4]
lea rcx, [rsp + 0x58]
call fcn.140007dd0
cmp rdi, rax
jae 0x14011019c
xor r8d, r8d
mov edx, 2
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xe0]
mov r8d, 4
mov edx, 0xffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xd0], 0x8000
mov dword [rsp + 0xc8], 0
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xd0]
mov r8d, 0x1002
mov edx, 0xffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xc8], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xd0]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xc8], eax
xor eax, eax
mov word [rsp + 0xe8], ax
lea rdi, [rsp + 0xea]
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov eax, 2
mov word [rsp + 0xe8], ax
movzx ecx, word [rsp + 0x270]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0xea], ax
movsxd rdx, dword [rsp + 0xc4]
lea rcx, [rsp + 0x58]
call fcn.140012ce0
mov eax, dword [rax]
mov dword [rsp + 0xec], eax
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x1401100e7
mov dword [rsp + 0xfc], 0
jmp 0x14011005c
mov eax, dword [rsp + 0xfc]
add eax, 1
mov dword [rsp + 0xfc], eax
movsxd rdi, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x268]
call fcn.140007db0
cmp rdi, rax
jae 0x1401100b9
movsxd rdx, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0xfc]
mov rcx, qword [rsp + 0x268]
call fcn.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14011004b
mov rcx, qword [rsp + 0x268]
call fcn.14001ebd0
mov dword [rsp + 0x1c8], 0xffffffff
lea rcx, [rsp + 0x58]
call fcn.140006e10
mov eax, dword [rsp + 0x1c8]
jmp 0x1401101b8
mov dword [rsp + 0xcc], 1
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0xcc]
mov r8d, 0x20
mov edx, 0xffff
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rsp + 0xe4], 0
mov dword [rsp + 0xf8], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xe4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
lea r8, [rsp + 0xf8]
mov edx, 0x9800000c
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
lea rdx, [rsp + 0xd8]
mov rcx, qword [rsp + 0x268]
call fcn.1400227b0
jmp 0x14010fed0
mov dword [rsp + 0x1cc], 1
lea rcx, [rsp + 0x58]
call fcn.140006e10
mov eax, dword [rsp + 0x1cc]
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x248
pop rdi
pop rsi
ret