Function at 0x43cf10
Capabilities:
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x40c
push 0
push 0
dec ecx
jne 0x43cf18
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x43d2f6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x5e51e8], 0
jne 0x43cf8c
push 0x5e51e8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x43cf8c
mov dword [ebp - 0x2044], ebx
mov byte [ebp - 0x2040], 0
lea eax, [ebp - 0x2044]
push eax
push 0
lea edx, [ebp - 0x2048]
mov eax, dword [0x5e3eb8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x2048]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeStringpx14System_TVarRecxi
call sub.rtl170.bpl__System__RaiseExcept_qqrv
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x43cfe0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2044], eax
mov byte [ebp - 0x2040], 0
lea eax, [ebp - 0x2044]
push eax
push 0
lea edx, [ebp - 0x204c]
mov eax, dword [0x5e3eb8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x204c]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeStringpx14System_TVarRecxi
call sub.rtl170.bpl__System__RaiseExcept_qqrv
xor eax, eax
push ebp
push 0x43d2bc
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x18], eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x1c], 1
push 4
lea eax, [ebp - 0x1c]
push eax
push 1
push 0xffff
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x20], 1
push 4
lea eax, [ebp - 0x20]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_setsockopt
mov dword [ebp - 0x24], 0x1f4
push 4
lea eax, [ebp - 0x24]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_setsockopt
mov word [ebp - 0x3c], 2
mov dword [ebp - 0x38], 0xffffffff
push 0x59a
call sub.wsock32.dll_htons
mov word [ebp - 0x3a], ax
mov byte [ebp - 0x25], 3
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0
push 1
lea eax, [ebp - 0x25]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_sendto
push 0
push 0x2000
lea eax, [ebp - 0x203c]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x43d2a5
mov edx, dword [ebp - 0x2c]
sub edx, 3
lea eax, [ebp - 4]
xor ecx, ecx
call sub.rtl170.bpl__System__LStrSetLength_qqrr27System__AnsiStringT_us_i0__ius
mov eax, dword [ebp - 4]
call sub.rtl170.bpl__System__LStrLen_qqrx27System__AnsiStringT_us_i0__
push eax
lea eax, [ebp - 4]
call sub.rtl170.bpl__System__UniqueStringA_qqrr27System__AnsiStringT_us_i0__
mov edx, eax
lea eax, [ebp - 0x2039]
pop ecx
call sub.rtl170.bpl__System_Move_qqrpxvpvi
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call sub.rtl170.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x43d310
call sub.rtl170.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov edi, eax
test edi, edi
jle 0x43d09c
lea ecx, [edi + 0xa]
mov edx, dword [ebp - 8]
mov eax, 0x43d334
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov ebx, eax
test ebx, ebx
jne 0x43d14f
lea edx, [ebp - 0x2050]
mov eax, dword [0x5e41e8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x2050]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
lea ecx, [ebx + 1]
mov edx, dword [ebp - 8]
mov eax, 0x43d334
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov esi, eax
test esi, esi
jne 0x43d18c
lea edx, [ebp - 0x2054]
mov eax, dword [0x5e41e8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x2054]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
sub ecx, ebx
dec ecx
lea edx, [ebx + 1]
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
lea ecx, [esi + 1]
mov edx, dword [ebp - 8]
mov eax, 0x43d344
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov edi, eax
lea ecx, [edi + 0xc]
mov edx, dword [ebp - 8]
mov eax, 0x43d334
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov ebx, eax
test ebx, ebx
jne 0x43d1ef
lea edx, [ebp - 0x2058]
mov eax, dword [0x5e41e8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x2058]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
lea ecx, [ebx + 1]
mov edx, dword [ebp - 8]
mov eax, 0x43d334
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov esi, eax
test esi, esi
jne 0x43d22c
lea edx, [ebp - 0x205c]
mov eax, dword [0x5e41e8]
call sub.rtl170.bpl__System_LoadResString_qqrp20System_TResStringRec
mov ecx, dword [ebp - 0x205c]
mov dl, 1
mov eax, dword [sym.imp.rtl170.bpl__System_Sysutils_Exception_]
call sub.rtl170.bpl__System_Sysutils_Exception__bctr_qqrx20System_UnicodeString
call sub.rtl170.bpl__System__RaiseExcept_qqrv
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
sub ecx, ebx
dec ecx
lea edx, [ebx + 1]
mov eax, dword [ebp - 8]
call sub.rtl170.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
lea edx, [ebp - 0x2060]
mov eax, dword [ebp - 0x10]
call sub.rtl170.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x2060]
mov edx, 0x43d36c
call sub.rtl170.bpl__System__UStrEqual_qqrv
je 0x43d278
push dword [ebp - 0xc]
push 0x43d390
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl170.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea ecx, [esi + 1]
mov edx, dword [ebp - 8]
mov eax, 0x43d310
call sub.rtl170.bpl__System_Strutils_PosEx_qqrx20System_UnicodeStringt1i
mov edi, eax
test edi, edi
jg 0x43d112
jmp 0x43d09c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d2c3
mov eax, dword [ebp - 0x14]
push eax
call sub.wsock32.dll_closesocket
ret