Function at 0x4d4138
Capabilities:
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov edi, 1
xor eax, eax
mov dword [ebp - 0x18], eax
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], 1
mov word [ebp - 0x1e], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x4d41da
cmp byte [eax], 0x2d
jne 0x4d41da
push 0x74
push eax
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d418a
xor edx, edx
mov dword [ebp - 0x10], edx
push 0x6e
mov ecx, dword [esi + 4]
push ecx
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d41a3
mov dword [ebp - 0x14], 1
push 0x62
mov eax, dword [esi + 4]
push eax
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d41bc
mov dword [ebp - 0x18], 1
push 0x6b
mov edx, dword [esi + 4]
push edx
call fcn.00401278
add esp, 8
test eax, eax
je 0x4d41d5
mov dword [ebp - 0x1c], 1
mov edi, 2
cmp dword [esi + edi*4], 0
jne 0x4d41f3
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.00401318
pop ecx
cmp eax, 0x5a
jbe 0x4d4235
push 0
push 0x1452
call fcn.0041f178
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + eax*4]
push edx
push 0x4fc5e0
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d491e
inc edi
mov edx, dword [esi + edi*4]
push edx
call fcn.004b6a38
test eax, eax
je 0x4d426c
mov ecx, dword [esi + edi*4]
push ecx
call fcn.00409a14
pop ecx
mov word [ebp - 0x1e], ax
cmp word [ebp - 0x1e], 0
ja 0x4d426b
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
inc edi
mov ebx, dword [esi + edi*4]
test ebx, ebx
je 0x4d42d8
push ebx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4d4295
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
inc edi
cmp dword [esi + edi*4], 0
jne 0x4d42af
push 0
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0045bf34
jmp 0x4d491e
mov ecx, dword [esi + edi*4]
push ecx
call fcn.00409a14
pop ecx
mov word [ebp - 0x20], ax
cmp word [ebp - 0x20], 0
ja 0x4d42d7
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
inc edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.004d3e38
mov ebx, eax
test ebx, ebx
je 0x4d4370
cmp dword [ebx + 0xec], 0
jne 0x4d4324
push 0
push 0x1453
call fcn.0041f178
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + eax*4]
push edx
push 0x4fc5f5
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d491e
cmp word [ebp - 0x1e], 0
je 0x4d4578
mov dx, word [ebx + 0xca]
cmp dx, word [ebp - 0x1e]
je 0x4d4578
movzx ecx, word [ebx + 0xca]
push ecx
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + eax*4]
push edx
push 0
push 0x1451
call fcn.0041f178
push eax
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d491e
call fcn.004d3bf8
mov ebx, eax
test ebx, ebx
jne 0x4d438e
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push esi
push edi
mov edi, ecx
mov esi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
lea eax, [ebx + 0x65]
push esi
push edi
mov esi, eax
mov edi, 0x4fafc0
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov ax, word [ebp - 0x1e]
mov word [ebx + 0xca], ax
mov dword [ebx + 0xe4], 2
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x10c], eax
mov edx, dword [ebx + 0x10c]
mov dword [ebx + 0x110], edx
mov ecx, dword [ebx + 0x10c]
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0xec], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0xf0], eax
mov edx, dword [ebp - 4]
mov dword [ebx + 0xf4], edx
mov cx, word [ebp - 0x20]
mov word [ebx + 0xf8], cx
xor eax, eax
mov dword [ebx + 0xfc], eax
mov word [ebx + 0x100], 0
cmp word [ebp - 0x1e], 0
jne 0x4d44ba
push 1
lea edx, [ebx + 0xca]
push edx
mov cx, word [0x4f474a]
push ecx
mov ax, word [0x4f4748]
push eax
call fcn.004bf8c8
mov dword [ebx + 0x118], eax
cmp dword [ebx + 0x118], 0xffffffff
jne 0x4d455e
push ebx
call fcn.004d3d24
push 0
push 0x1454
call fcn.0041f178
push eax
push 0x4fc60a
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d491e
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebx + 0x118], eax
cmp dword [ebx + 0x118], 0xffffffff
jne 0x4d4500
push ebx
call fcn.004d3d24
push 0
push 0x1455
call fcn.0041f178
push eax
push 0x4fc61a
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d491e
mov word [ebp - 0x48], 2
xor edx, edx
mov dword [ebp - 0x44], edx
mov cx, word [ebx + 0xca]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x46], ax
push 0x10
lea eax, [ebp - 0x48]
push eax
mov edx, dword [ebx + 0x118]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4d455e
push ebx
call fcn.004d3d24
push 0
push 0x1456
call fcn.0041f178
push eax
push 0x4fc62a
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d491e
push 0x23
push 0x438
mov edx, dword [0x4fd9ec]
push edx
mov ecx, dword [ebx + 0x118]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp dword [ebp - 0x18], 0
je 0x4d459d
cmp dword [esi + edi*4], 0
je 0x4d459d
mov eax, dword [esi + edi*4]
push eax
call fcn.00409a14
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4d459c
xor edx, edx
mov dword [ebp - 0x18], edx
inc edi
cmp dword [esi + edi*4], 0
jne 0x4d45ea
cmp dword [ebp - 0x14], 0
jne 0x4d45c2
cmp dword [ebx + 0xf0], 0
jne 0x4d45b8
push ebx
call fcn.004d3d24
mov eax, 1
jmp 0x4d491e
mov edx, dword [ebp + 0xc]
push esi
mov esi, 0x4fc63a
mov edi, edx
mov eax, edi
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00401318
pop ecx
mov edi, eax
jmp 0x4d46a4
cmp dword [ebp - 0x10], 0
je 0x4d45f8
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x4d4641
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.004b6b5c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00401318
pop ecx
mov edi, eax
cmp dword [ebp - 0x14], 0
je 0x4d4696
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x4d4696
push 0x4fc63e
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040123c
add esp, 8
add edi, 2
jmp 0x4d4696
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [esi + edi*4]
push eax
call fcn.0041d5c8
test eax, eax
jne 0x4d468b
cmp dword [ebx + 0xf0], 0
jne 0x4d4661
push ebx
call fcn.004d3d24
push 0
push 0x1457
call fcn.0041f178
push eax
mov edx, dword [esi + edi*4]
push edx
push 0x4fc642
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d491e
mov edx, dword [eax]
add edx, dword [eax + 8]
mov dword [ebp - 0x24], edx
mov edi, dword [eax + 4]
cmp dword [ebp - 0x18], 0
je 0x4d46a4
cmp edi, dword [ebp - 0x18]
jle 0x4d46a4
mov edi, dword [ebp - 0x18]
cmp dword [ebx + 0xdc], 0
je 0x4d4761
mov eax, dword [ebx + 0xe0]
add eax, edi
cmp eax, 0x4000
jle 0x4d46fc
cmp dword [ebx + 0xf0], 0
jne 0x4d46cf
push ebx
call fcn.004d3d24
push 0
push 0x1458
call fcn.0041f178
push eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
push 0x4fc657
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4d491e
mov edx, dword [ebx + 0xe0]
add edx, edi
add edx, 5
push edx
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.0040c9f0
add esp, 8
test eax, eax
jne 0x4d473d
cmp dword [ebx + 0xf0], 0
jne 0x4d472a
push ebx
call fcn.004d3d24
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0045bf34
jmp 0x4d491e
mov edx, eax
mov dword [ebx + 0xdc], edx
push edi
mov ecx, dword [ebp - 0x24]
push ecx
add edx, dword [ebx + 0xe0]
push edx
call fcn.00401128
add esp, 0xc
add dword [ebx + 0xe0], edi
jmp 0x4d47b6
lea eax, [edi + 5]
push eax
call fcn.0040c55c
pop ecx
mov dword [ebx + 0xdc], eax
cmp dword [ebx + 0xdc], 0
jne 0x4d479c
cmp dword [ebx + 0xf0], 0
jne 0x4d4789
push ebx
call fcn.004d3d24
push 2
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0045bf34
jmp 0x4d491e
push edi
mov ecx, dword [ebp - 0x24]
push ecx
mov eax, dword [ebx + 0xdc]
push eax
call fcn.00401128
add esp, 0xc
mov dword [ebx + 0xe0], edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 4]
mov dword [eax], edx
xor ecx, ecx
mov dword [eax + 4], ecx
mov word [ebp - 0x2e], 4
mov word [ebp - 0x30], 2
lea esi, [ebp - 0x38]
push 0x10
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00401198
add esp, 0xc
mov word [ebp - 0x58], 2
movsx edx, word [esi + 0xa]
push edx
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
push eax
lea edx, [ebp - 0x54]
push edx
call fcn.00401128
add esp, 0xc
mov cx, word [ebp - 0x20]
push ecx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x56], ax
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebx + 0xe0]
cmp eax, 0x2000
jle 0x4d482c
mov eax, 0x2000
push 0x10
lea edx, [ebp - 0x58]
push edx
push 0
push eax
mov ecx, dword [ebx + 0xdc]
push ecx
mov eax, dword [ebx + 0x118]
push eax
call sub.WSOCK32.dll_sendto
mov edi, eax
test edi, edi
jge 0x4d48a7
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4d4861
cmp eax, 0x2734
jne 0x4d4884
push 0x23
push 0x438
mov eax, dword [0x4fd9ec]
push eax
mov edx, dword [ebx + 0x118]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x4d491e
push 0
push 0x1459
call fcn.0041f178
push eax
push 0x4fc66c
push 0x50cbd8
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4d491e
push 0
call fcn.0040ef0c
pop ecx
mov dword [ebx + 0x110], eax
test edi, edi
jle 0x4d48ed
add dword [ebx + 0x104], edi
cmp edi, dword [ebx + 0xe0]
jge 0x4d48ed
sub dword [ebx + 0xe0], edi
mov edx, dword [ebx + 0xe0]
push edx
mov eax, dword [ebx + 0xdc]
add edi, eax
push edi
push eax
call fcn.0040114c
add esp, 0xc
mov eax, 1
jmp 0x4d491e
mov edx, dword [ebx + 0xdc]
push edx
call fcn.0040c454
pop ecx
xor ecx, ecx
mov dword [ebx + 0xdc], ecx
xor eax, eax
mov dword [ebx + 0xe0], eax
cmp dword [ebx + 0xf0], 0
jne 0x4d4919
push ebx
call fcn.004d3d24
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc