Function at 0x1401c1d10
Capabilities:
Get local ipv4 addresses
Get socket information
Get socket status
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1628
call fcn.1401d4c90
sub rsp, rax
mov qword [rsp + 0x1610], 0xfffffffffffffffe
mov rax, qword [0x1402a15c0]
xor rax, rsp
mov qword [rsp + 0x1618], rax
lea rcx, [rsp + 0x30]
call fcn.140021960
nop
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
je 0x1401c2504
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1640]
call fcn.1401c03e0
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401c1da1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401c1d4d
cmp dword [rsp + 0x270], 0xffffffff
jne 0x1401c1dfb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, str.Udp__d_service_startup_error__d
mov ecx, 1
call fcn.1400dc610
mov rdx, qword [rsp + 0x1640]
mov r8d, dword [rdx + 0x210]
lea rdx, str.Udp_service_startup_error
lea rcx, [0x1403ac8a0]
call fcn.1401bb910
jmp 0x1401c2504
mov dword [rsp + 0x278], 1
mov dword [rsp + 0x27c], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x280], 0
mov dword [rsp + 0x490], 0
jmp 0x1401c1e42
mov eax, dword [rsp + 0x490]
add eax, 1
mov dword [rsp + 0x490], eax
movsxd rdi, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c1faf
mov dword [rsp + 0x494], 0
jmp 0x1401c1e7b
mov eax, dword [rsp + 0x494]
add eax, 1
mov dword [rsp + 0x494], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jae 0x1401c1eaf
mov edi, dword [rsp + 0x494]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x68], rax
jne 0x1401c1ead
jmp 0x1401c1eaf
jmp 0x1401c1e6a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jne 0x1401c1eef
cmp dword [rsp + 0x60], 0x40
jae 0x1401c1eef
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov ecx, dword [rsp + 0x494]
mov rax, qword [rax]
mov qword [rsp + rcx*8 + 0x68], rax
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
xor eax, eax
test eax, eax
jne 0x1401c1e5d
mov dword [rsp + 0x498], 0
jmp 0x1401c1f17
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jae 0x1401c1f51
mov edi, dword [rsp + 0x498]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x288], rax
jne 0x1401c1f4f
jmp 0x1401c1f51
jmp 0x1401c1f06
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jne 0x1401c1fa0
cmp dword [rsp + 0x280], 0x40
jae 0x1401c1fa0
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov ecx, dword [rsp + 0x498]
mov rax, qword [rax]
mov qword [rsp + rcx*8 + 0x288], rax
mov eax, dword [rsp + 0x280]
add eax, 1
mov dword [rsp + 0x280], eax
xor eax, eax
test eax, eax
jne 0x1401c1ef9
jmp 0x1401c1e31
lea rax, [rsp + 0x278]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x280]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov ecx, 0x40
call qword [sym.imp.WS2_32.dll_select]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401c1fed
jmp 0x1401c1d4d
cmp dword [rsp + 0x270], 0
jge 0x1401c1ffc
jmp 0x1401c2504
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
jne 0x1401c2012
jmp 0x1401c2504
mov dword [rsp + 0x49c], 0
jmp 0x1401c2030
mov eax, dword [rsp + 0x49c]
add eax, 1
mov dword [rsp + 0x49c], eax
movsxd rdi, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c24ff
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401c23d4
mov dword [rsp + 0x14c0], 0x10
mov byte [rsp + 0x4c0], 0
lea rdi, [rsp + 0x4c1]
xor eax, eax
mov ecx, 0xfff
rep stosb byte [rdi], al
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rcx, rax
lea rax, [rsp + 0x14c0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x14c8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x1000
lea rdx, [rsp + 0x4c0]
mov rcx, qword [rcx]
call qword [sym.imp.WS2_32.dll_recvfrom]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jge 0x1401c21f5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, str._ERROR__DHCP__d_socket_error_in_recvfrom:__d
mov ecx, 1
call fcn.1400dc610
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x14f0]
lea rcx, [rsp + 0x30]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x1500]
mov rcx, rax
call fcn.14001e570
lea rdi, [rsp + 0x1600]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x14e0]
lea rsi, [rsp + 0x1600]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x15b0]
lea rsi, [rsp + 0x14e0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x15b0]
lea rdx, [rsp + 0x1510]
lea rcx, [rsp + 0x30]
call fcn.140021a90
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c24ff
mov ecx, dword [rsp + 0x14cc]
call fcn.1400d73c0
test eax, eax
je 0x1401c222e
movzx edi, word [rsp + 0x14ca]
mov rax, qword [rsp + 0x1640]
movzx ecx, word [rax + 0x210]
call qword [sym.imp.WS2_32.dll_htons]
movzx eax, ax
cmp edi, eax
jne 0x1401c222e
jmp 0x1401c201f
xor eax, eax
mov word [rsp + 0x4b0], ax
lea rdi, [rsp + 0x4b2]
xor eax, eax
mov ecx, reloc.WS2_32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x14c0], 0x10
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c2388
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, str._ERROR__Udp__d_socket_error_in_getsockname:__d
mov ecx, 1
call fcn.1400dc610
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x1530]
lea rcx, [rsp + 0x30]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x1540]
mov rcx, rax
call fcn.14001e570
lea rdi, [rsp + 0x15f0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1520]
lea rsi, [rsp + 0x15f0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x15c0]
lea rsi, [rsp + 0x1520]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x15c0]
lea rdx, [rsp + 0x1550]
lea rcx, [rsp + 0x30]
call fcn.140021a90
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c24ff
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x4b0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x14c8]
mov r8d, dword [rsp + 0x4a0]
lea rdx, [rsp + 0x4c0]
mov rcx, qword [rsp + 0x1640]
call fcn.1401c18e0
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
lea rdx, [rsp + 0x280]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401c24fa
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, str._ERROR__Udp__d_socket_error_in_erfdset:__d
mov ecx, 1
call fcn.1400dc610
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x1570]
lea rcx, [rsp + 0x30]
call fcn.14001e460
mov r8, rdi
lea rdx, [rsp + 0x1580]
mov rcx, rax
call fcn.14001e570
lea rdi, [rsp + 0x15e0]
mov rsi, rax
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x1560]
lea rsi, [rsp + 0x15e0]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea rdi, [rsp + 0x15d0]
lea rsi, [rsp + 0x1560]
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x15d0]
lea rdx, [rsp + 0x1590]
lea rcx, [rsp + 0x30]
call fcn.140021a90
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c201f
jmp 0x1401c1d4d
mov dword [rsp + 0x14d8], 0
jmp 0x1401c2522
mov eax, dword [rsp + 0x14d8]
add eax, 1
mov dword [rsp + 0x14d8], eax
movsxd rdi, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001db40
cmp rdi, rax
jae 0x1401c2576
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_shutdown]
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.140007d10
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c2511
lea rcx, [rsp + 0x30]
call fcn.14001de20
mov dword [rsp + 0x15a0], 1
lea rcx, [rsp + 0x30]
call fcn.140007ce0
mov eax, dword [rsp + 0x15a0]
mov rcx, qword [rsp + 0x1618]
xor rcx, rsp
call fcn.1400a8050
add rsp, 0x1628
pop rdi
pop rsi
ret