Function at 0x1401d61e0
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.1401e9500
sub rsp, rax
mov qword [rsp + 0x1610], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x1618], rax
lea rcx, [rsp + 0x30]
call fcn.140027ff0
nop
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
je 0x1401d69d4
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1640]
call fcn.1401d48b0
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401d6271
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401d621d
cmp dword [rsp + 0x270], 0xffffffff
jne 0x1401d62cb
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.1400de020
mov rdx, qword [rsp + 0x1640]
mov r8d, dword [rdx + 0x210]
lea rdx, str.Udp_service_startup_error
lea rcx, [0x1403c8910]
call fcn.1401cfde0
jmp 0x1401d69d4
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 0x1401d6312
mov eax, dword [rsp + 0x490]
add eax, 1
mov dword [rsp + 0x490], eax
movsxd rdi, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001d480
cmp rdi, rax
jae 0x1401d647f
mov dword [rsp + 0x494], 0
jmp 0x1401d634b
mov eax, dword [rsp + 0x494]
add eax, 1
mov dword [rsp + 0x494], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jae 0x1401d637f
mov edi, dword [rsp + 0x494]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007280
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x68], rax
jne 0x1401d637d
jmp 0x1401d637f
jmp 0x1401d633a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jne 0x1401d63bf
cmp dword [rsp + 0x60], 0x40
jae 0x1401d63bf
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007280
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 0x1401d632d
mov dword [rsp + 0x498], 0
jmp 0x1401d63e7
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jae 0x1401d6421
mov edi, dword [rsp + 0x498]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007280
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x288], rax
jne 0x1401d641f
jmp 0x1401d6421
jmp 0x1401d63d6
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jne 0x1401d6470
cmp dword [rsp + 0x280], 0x40
jae 0x1401d6470
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.140007280
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 0x1401d63c9
jmp 0x1401d6301
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 0x1401d64bd
jmp 0x1401d621d
cmp dword [rsp + 0x270], 0
jge 0x1401d64cc
jmp 0x1401d69d4
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
jne 0x1401d64e2
jmp 0x1401d69d4
mov dword [rsp + 0x49c], 0
jmp 0x1401d6500
mov eax, dword [rsp + 0x49c]
add eax, 1
mov dword [rsp + 0x49c], eax
movsxd rdi, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001d480
cmp rdi, rax
jae 0x1401d69cf
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401d68a4
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.140007280
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 0x1401d66c5
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.1400de020
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
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.140007280
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.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x1500]
mov rcx, rax
call fcn.140021050
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.140020ec0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401d69cf
mov ecx, dword [rsp + 0x14cc]
call fcn.1400d97b0
test eax, eax
je 0x1401d66fe
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 0x1401d66fe
jmp 0x1401d64ef
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.140007280
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1401d6858
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.1400de020
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
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.140007280
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.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x1540]
mov rcx, rax
call fcn.140021050
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.140020ec0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401d69cf
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
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.1401d5db0
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
lea rdx, [rsp + 0x280]
mov rcx, qword [rax]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1401d69ca
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.1400de020
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.140007280
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.140007280
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.14001d8a0
mov r8, rdi
lea rdx, [rsp + 0x1580]
mov rcx, rax
call fcn.140021050
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.140020ec0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401d64ef
jmp 0x1401d621d
mov dword [rsp + 0x14d8], 0
jmp 0x1401d69f2
mov eax, dword [rsp + 0x14d8]
add eax, 1
mov dword [rsp + 0x14d8], eax
movsxd rdi, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001d480
cmp rdi, rax
jae 0x1401d6a46
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.140007280
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.140007280
mov rcx, qword [rax]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1401d69e1
lea rcx, [rsp + 0x30]
call fcn.14001d500
mov dword [rsp + 0x15a0], 1
lea rcx, [rsp + 0x30]
call fcn.14001d450
mov eax, dword [rsp + 0x15a0]
mov rcx, qword [rsp + 0x1618]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x1628
pop rdi
pop rsi
ret