Function at 0x4d28e4
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x48
push 0
push 0
dec ecx
jne 0x4d28ed
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4d2e90
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x20]
mov eax, esi
call fcn.00409e3c
push 0x11
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
je 0x4d2e65
mov dword [ebp - 0x38], 0xffffffff
push 4
lea eax, [ebp - 0x38]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 0x34]
push eax
call sub.wsock32.dll_setsockopt
lea eax, [ebp - 0x214]
xor ecx, ecx
mov edx, 0x10
call fcn.00403254
mov word [ebp - 0x214], 2
xor eax, eax
mov dword [ebp - 0x210], eax
push 0x2652
call sub.wsock32.dll_htons
mov word [ebp - 0x212], ax
push 0x10
lea eax, [ebp - 0x214]
push eax
mov eax, dword [ebp - 0x34]
push eax
call sub.wsock32.dll_bind
mov edx, 0x4d2ea8
mov eax, dword [ebp - 0x20]
call fcn.00408fe0
test al, al
je 0x4d2bb2
mov edx, esi
lea eax, [ebp - 0x204]
call fcn.00402fb0
lea eax, [ebp - 0x204]
call fcn.00402d34
call fcn.00402948
xor edx, edx
push ebp
push 0x4d2bab
push dword fs:[edx]
mov dword fs:[edx], esp
jmp 0x4d2b75
lea edx, [ebp - 8]
lea eax, [ebp - 0x204]
call fcn.004033c4
lea eax, [ebp - 0x204]
call fcn.00403430
call fcn.00402948
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 8]
call fcn.00408ec4
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x218]
call fcn.00409114
mov edx, dword [ebp - 0x218]
lea eax, [ebp - 8]
call fcn.00404ac4
cmp dword [ebp - 8], 0
je 0x4d2b75
mov eax, dword [ebp - 8]
cmp byte [eax], 0x23
je 0x4d2b75
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404ac4
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x11
mov edx, 1
mov eax, dword [ebp - 8]
call fcn.00404f4c
mov eax, dword [ebp - 0xc]
call fcn.00404eec
mov esi, eax
mov eax, esi
call fcn.004c22ac
test al, al
je 0x4d2b75
lea eax, [ebp - 0x18]
call fcn.00404a2c
mov edx, dword [ebp - 8]
mov eax, 0x4d2eb8
call fcn.00405030
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jle 0x4d2b1c
mov ecx, dword [ebp - 0x30]
add ecx, 1
jno 0x4d2aaa
call fcn.00403b58
mov edx, dword [ebp - 8]
mov eax, 0x4d2eb8
call fcn.0043da88
mov edi, eax
lea eax, [ebp - 0x220]
push eax
mov eax, dword [ebp - 8]
call fcn.00404cec
mov ecx, eax
sub ecx, dword [ebp - 0x30]
jno 0x4d2ad4
call fcn.00403b58
sub ecx, edi
jno 0x4d2add
call fcn.00403b58
mov edx, dword [ebp - 0x30]
add edx, 1
jno 0x4d2aea
call fcn.00403b58
mov eax, dword [ebp - 8]
call fcn.00404f4c
mov eax, dword [ebp - 0x220]
lea edx, [ebp - 0x18]
call fcn.00409114
mov eax, dword [ebp - 0x18]
call fcn.00404eec
call fcn.004c21e0
test al, al
je 0x4d2b1c
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call fcn.00404ac4
add dword [ebp - 0x28], 1
jno 0x4d2b27
call fcn.00403b58
mov eax, dword [ebp - 0x34]
push eax
push esi
mov eax, dword [ebp - 0x14]
call fcn.00404eec
mov edi, eax
mov eax, edi
mov ecx, ebx
pop edx
call fcn.004c243c
mov eax, dword [ebp - 0x34]
push eax
push esi
mov eax, edi
mov ecx, ebx
pop edx
call fcn.004c243c
cmp al, 1
jne 0x4d2b5e
add dword [ebp - 0x2c], 1
jno 0x4d2b5e
call fcn.00403b58
mov eax, dword [ebp - 0x28]
mov ecx, 0xa
cdq
idiv ecx
cmp edx, 9
jne 0x4d2b75
push 1
call sub.kernel32.dll_Sleep_1
lea eax, [ebp - 0x204]
call fcn.0040321c
call fcn.00402948
test al, al
je 0x4d29e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2cea
lea eax, [ebp - 0x204]
call fcn.00403078
call fcn.00402948
ret
mov edx, 0x4d2ec4
mov eax, dword [ebp - 0x20]
call fcn.00408fe0
test al, al
je 0x4d2cea
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404ac4
lea eax, [ebp - 0x24]
call fcn.00404a2c
lea edx, [ebp - 0x18]
mov eax, 3
call fcn.00402b68
lea eax, [ebp - 0x224]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x18]
call fcn.00404f4c
mov eax, dword [ebp - 0x224]
mov edx, 0x4d2ed4
call fcn.00408fe0
test al, al
je 0x4d2c39
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404cec
mov ecx, eax
sub ecx, 2
jno 0x4d2c2c
call fcn.00403b58
mov edx, 3
mov eax, dword [ebp - 0x18]
call fcn.00404f4c
lea eax, [ebp - 0x10]
push eax
mov cl, 3
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.004d919c
cmp dword [ebp - 0x10], 0
je 0x4d2e65
xor eax, eax
mov dword [ebp - 0x30], eax
jmp 0x4d2cd9
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x30]
mov dl, 0xd
mov eax, dword [ebp - 0x10]
call fcn.004c34b0
mov eax, dword [ebp - 0xc]
call fcn.00404eec
mov esi, eax
mov eax, esi
call fcn.004c22ac
test al, al
je 0x4d2cd9
add dword [ebp - 0x28], 1
jno 0x4d2c8b
call fcn.00403b58
mov eax, dword [ebp - 0x34]
push eax
push esi
mov eax, dword [ebp - 0x14]
call fcn.00404eec
mov edi, eax
mov eax, edi
mov ecx, ebx
pop edx
call fcn.004c243c
mov eax, dword [ebp - 0x34]
push eax
push esi
mov eax, edi
mov ecx, ebx
pop edx
call fcn.004c243c
cmp al, 1
jne 0x4d2cc2
add dword [ebp - 0x2c], 1
jno 0x4d2cc2
call fcn.00403b58
mov eax, dword [ebp - 0x28]
mov ecx, 0xa
cdq
idiv ecx
cmp edx, 9
jne 0x4d2cd9
push 1
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebp - 0x10]
call fcn.00404cec
cmp eax, dword [ebp - 0x30]
jg 0x4d2c5a
mov eax, dword [ebp - 0x34]
push eax
call sub.wsock32.dll_closesocket
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.00402b68
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x1c]
call fcn.00409ce8
lea edx, [ebp - 0x22c]
mov eax, dword [ebp - 0x1c]
call fcn.0040eda4
mov edx, dword [ebp - 0x22c]
lea eax, [ebp - 0x1c]
mov ecx, 0x4d2ee0
call fcn.00404d38
mov eax, dword [ebp - 0x1c]
call fcn.00409a2c
test al, al
jne 0x4d2d43
mov eax, dword [ebp - 0x1c]
call fcn.00409f34
lea edx, [ebp - 0x230]
mov eax, dword [ebp - 0x1c]
call fcn.0040eda4
mov edx, dword [ebp - 0x230]
mov ecx, dword [0x5443b4]
mov ecx, dword [ecx]
lea eax, [ebp - 0x1c]
call fcn.00404d38
mov eax, dword [ebp - 0x1c]
call fcn.00409a1c
test al, al
je 0x4d2d84
mov edx, 1
mov eax, dword [ebp - 0x1c]
call fcn.0040988c
mov ebx, eax
jmp 0x4d2d93
mov edx, 0xffff
mov eax, dword [ebp - 0x1c]
call fcn.0040988c
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d2e65
call fcn.0040b3f4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x234]
call fcn.0040cd50
push dword [ebp - 0x234]
push 0x4d2eec
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x248], eax
mov byte [ebp - 0x244], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x240], eax
mov byte [ebp - 0x23c], 0
lea edx, [ebp - 0x248]
mov ecx, 1
mov eax, 0x4d2ef8
call fcn.0040a674
push dword [ebp - 0x238]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404dac
mov ecx, 2
xor edx, edx
mov eax, ebx
call fcn.00409968
mov eax, dword [ebp - 0x18]
call fcn.00404cec
push eax
lea eax, [ebp - 0x18]
call fcn.00404f44
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0040993c
lea eax, [ebp - 0x18]
mov edx, 0x4d2f40
call fcn.00404ac4
mov eax, dword [ebp - 0x18]
call fcn.00404cec
push eax
lea eax, [ebp - 0x18]
call fcn.00404f44
mov edx, eax
mov eax, ebx
pop ecx
call fcn.0040993c
mov eax, ebx
call fcn.004099ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d2e97
lea eax, [ebp - 0x238]
mov edx, 9
call fcn.00404a50
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.00404a50
ret