Function at 0x1401c8440
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.1401da720
sub rsp, rax
mov qword [rsp + 0x1610], 0xfffffffffffffffe
mov rax, qword [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x1618], rax
lea rcx, [rsp + 0x30]
call fcn.14001fc80
nop
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
je 0x1401c8c34
mov rax, qword [rsp + 0x1640]
mov r8d, dword [rax + 0x210]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x1640]
call fcn.1401c6b20
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401c84d1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1401c847d
cmp dword [rsp + 0x270], 0xffffffff
jne 0x1401c852b
call qword [sym.imp.WSOCK32.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.1400dcf70
mov rdx, qword [rsp + 0x1640]
mov r8d, dword [rdx + 0x210]
lea rdx, str.Udp_service_startup_error
lea rcx, [0x1403b58d0]
call fcn.1401c3600
jmp 0x1401c8c34
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 0x1401c8572
mov eax, dword [rsp + 0x490]
add eax, 1
mov dword [rsp + 0x490], eax
movsxd rdi, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001be50
cmp rdi, rax
jae 0x1401c86df
mov dword [rsp + 0x494], 0
jmp 0x1401c85ab
mov eax, dword [rsp + 0x494]
add eax, 1
mov dword [rsp + 0x494], eax
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jae 0x1401c85df
mov edi, dword [rsp + 0x494]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x68], rax
jne 0x1401c85dd
jmp 0x1401c85df
jmp 0x1401c859a
mov eax, dword [rsp + 0x60]
cmp dword [rsp + 0x494], eax
jne 0x1401c861f
cmp dword [rsp + 0x60], 0x40
jae 0x1401c861f
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
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 0x1401c858d
mov dword [rsp + 0x498], 0
jmp 0x1401c8647
mov eax, dword [rsp + 0x498]
add eax, 1
mov dword [rsp + 0x498], eax
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jae 0x1401c8681
mov edi, dword [rsp + 0x498]
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rax, qword [rax]
cmp qword [rsp + rdi*8 + 0x288], rax
jne 0x1401c867f
jmp 0x1401c8681
jmp 0x1401c8636
mov eax, dword [rsp + 0x280]
cmp dword [rsp + 0x498], eax
jne 0x1401c86d0
cmp dword [rsp + 0x280], 0x40
jae 0x1401c86d0
movsxd rdx, dword [rsp + 0x490]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
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 0x1401c8629
jmp 0x1401c8561
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.WSOCK32.dll_select]
mov dword [rsp + 0x270], eax
cmp dword [rsp + 0x270], 0
jne 0x1401c871d
jmp 0x1401c847d
cmp dword [rsp + 0x270], 0
jge 0x1401c872c
jmp 0x1401c8c34
mov rax, qword [rsp + 0x1640]
cmp dword [rax + 0x220], 0
jne 0x1401c8742
jmp 0x1401c8c34
mov dword [rsp + 0x49c], 0
jmp 0x1401c8760
mov eax, dword [rsp + 0x49c]
add eax, 1
mov dword [rsp + 0x49c], eax
movsxd rdi, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001be50
cmp rdi, rax
jae 0x1401c8c2f
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
lea rdx, [rsp + 0x60]
mov rcx, qword [rax]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1401c8b04
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.14001fd00
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.WSOCK32.dll_recvfrom]
mov dword [rsp + 0x4a0], eax
cmp dword [rsp + 0x4a0], 0
jge 0x1401c8925
call qword [sym.imp.WSOCK32.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.1400dcf70
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x14f0]
lea rcx, [rsp + 0x30]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x1500]
mov rcx, rax
call fcn.140028d20
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.140029fa0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c8c2f
mov ecx, dword [rsp + 0x14cc]
call fcn.1400d8760
test eax, eax
je 0x1401c895e
movzx edi, word [rsp + 0x14ca]
mov rax, qword [rsp + 0x1640]
movzx ecx, word [rax + 0x210]
call qword [sym.imp.WSOCK32.dll_htons]
movzx eax, ax
cmp edi, eax
jne 0x1401c895e
jmp 0x1401c874f
xor eax, eax
mov word [rsp + 0x4b0], ax
lea rdi, [rsp + 0x4b2]
xor eax, eax
mov ecx, reloc.WSOCK32.dll_ntohl
rep stosb byte [rdi], al
mov dword [rsp + 0x14c0], 0x10
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
lea r8, [rsp + 0x14c0]
lea rdx, [rsp + 0x4b0]
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
je 0x1401c8ab8
call qword [sym.imp.WSOCK32.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.1400dcf70
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x1530]
lea rcx, [rsp + 0x30]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x1540]
mov rcx, rax
call fcn.140028d20
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.140029fa0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c8c2f
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
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.1401c8010
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
lea rdx, [rsp + 0x280]
mov rcx, qword [rax]
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
je 0x1401c8c2a
call qword [sym.imp.WSOCK32.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.1400dcf70
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0x49c]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
movsxd rdi, dword [rsp + 0x49c]
lea rdx, [rsp + 0x1570]
lea rcx, [rsp + 0x30]
call fcn.14001fcd0
mov r8, rdi
lea rdx, [rsp + 0x1580]
mov rcx, rax
call fcn.140028d20
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.140029fa0
mov eax, dword [rsp + 0x49c]
sub eax, 1
mov dword [rsp + 0x49c], eax
jmp 0x1401c874f
jmp 0x1401c847d
mov dword [rsp + 0x14d8], 0
jmp 0x1401c8c52
mov eax, dword [rsp + 0x14d8]
add eax, 1
mov dword [rsp + 0x14d8], eax
movsxd rdi, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001be50
cmp rdi, rax
jae 0x1401c8ca6
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov edx, 2
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_shutdown]
movsxd rdx, dword [rsp + 0x14d8]
lea rcx, [rsp + 0x30]
call fcn.14001fd00
mov rcx, qword [rax]
call qword [sym.imp.WSOCK32.dll_closesocket]
jmp 0x1401c8c41
lea rcx, [rsp + 0x30]
call fcn.14001bff0
mov dword [rsp + 0x15a0], 1
lea rcx, [rsp + 0x30]
call fcn.1400070c0
mov eax, dword [rsp + 0x15a0]
mov rcx, qword [rsp + 0x1618]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x1628
pop rdi
pop rsi
ret