Function at 0x1401c2cb0
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.1401d5c30
sub rsp, rax
mov qword [rsp + 0x1610], 0xfffffffffffffffe
mov rax, qword [0x1402a25c0]
xor rax, rsp
mov qword [rsp + 0x1618], rax
lea rcx, [rsp + 0x30]
call fcn.14001e700
nop
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
je 0x1401c34a4
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1640]
call fcn.1401c1380
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401c2d41
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401c2ced
cmp dword [rsp + 0x270], 0xffffffff
jne 0x1401c2d9b
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.1400dc5d0
mov rdx, qword [rsp + 0x1640]
mov r8d, dword [rdx + 0x210]
lea rdx, str.Udp_service_startup_error
lea rcx, [0x1403ad8a0]
call fcn.1401bc8b0
jmp 0x1401c34a4
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 0x1401c2de2
mov eax, dword [rsp + 0x490]
add eax, 1
mov dword [rsp + 0x490], eax
movsxd rdi, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007db0
cmp rdi, rax
jae 0x1401c2f4f
mov dword [rsp + 0x494], 0
jmp 0x1401c2e1b
mov eax, dword [rsp + 0x494]
add eax, 1
mov dword [rsp + 0x494], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jae 0x1401c2e4f
mov edi, dword [rsp + 0x494]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001e980
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x68], rax
jne 0x1401c2e4d
jmp 0x1401c2e4f
jmp 0x1401c2e0a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jne 0x1401c2e8f
cmp dword [rsp + 0x60], 0x40
jae 0x1401c2e8f
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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 0x1401c2dfd
mov dword [rsp + 0x498], 0
jmp 0x1401c2eb7
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jae 0x1401c2ef1
mov edi, dword [rsp + 0x498]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001e980
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x288], rax
jne 0x1401c2eef
jmp 0x1401c2ef1
jmp 0x1401c2ea6
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jne 0x1401c2f40
cmp dword [rsp + 0x280], 0x40
jae 0x1401c2f40
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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 0x1401c2e99
jmp 0x1401c2dd1
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 0x1401c2f8d
jmp 0x1401c2ced
cmp dword [rsp + 0x270], 0
jge 0x1401c2f9c
jmp 0x1401c34a4
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
jne 0x1401c2fb2
jmp 0x1401c34a4
mov dword [rsp + 0x49c], 0
jmp 0x1401c2fd0
mov eax, dword [rsp + 0x49c]
add eax, 1
mov dword [rsp + 0x49c], eax
movsxd rdi, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007db0
cmp rdi, rax
jae 0x1401c349f
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401c3374
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.14001e980
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 0x1401c3195
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.1400dc5d0
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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.14001e980
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.140009440
mov r8, rdi
lea rdx, [rsp + 0x1500]
mov rcx, rax
call fcn.14001f3b0
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.140022890
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c349f
mov ecx, dword [rsp + 0x14cc]
call fcn.1400d73b0
test eax, eax
je 0x1401c31ce
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 0x1401c31ce
jmp 0x1401c2fbf
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.14001e980
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401c3328
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.1400dc5d0
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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.14001e980
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.140009440
mov r8, rdi
lea rdx, [rsp + 0x1540]
mov rcx, rax
call fcn.14001f3b0
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.140022890
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c349f
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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.1401c2880
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
lea rdx, [rsp + 0x280]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401c349a
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.1400dc5d0
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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.14001e980
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.140009440
mov r8, rdi
lea rdx, [rsp + 0x1580]
mov rcx, rax
call fcn.14001f3b0
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.140022890
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c2fbf
jmp 0x1401c2ced
mov dword [rsp + 0x14d8], 0
jmp 0x1401c34c2
mov eax, dword [rsp + 0x14d8]
add eax, 1
mov dword [rsp + 0x14d8], eax
movsxd rdi, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.140007db0
cmp rdi, rax
jae 0x1401c3516
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001e980
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.14001e980
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401c34b1
lea rcx, [rsp + 0x30]
call fcn.14001ebd0
mov dword [rsp + 0x15a0], 1
lea rcx, [rsp + 0x30]
call fcn.14001e750
mov eax, dword [rsp + 0x15a0]
mov rcx, qword [rsp + 0x1618]
xor rcx, rsp
call fcn.1400a8040
add rsp, 0x1628
pop rdi
pop rsi
ret