Function at 0x4a2914
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 0x4a29b6
cmp byte [eax], 0x2d
jne 0x4a29b6
push 0x74
push eax
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a2966
xor edx, edx
mov dword [ebp - 0x10], edx
push 0x6e
mov ecx, dword [esi + 4]
push ecx
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a297f
mov dword [ebp - 0x14], 1
push 0x62
mov eax, dword [esi + 4]
push eax
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a2998
mov dword [ebp - 0x18], 1
push 0x6b
mov edx, dword [esi + 4]
push edx
call fcn.004bce0c
add esp, 8
test eax, eax
je 0x4a29b1
mov dword [ebp - 0x1c], 1
mov edi, 2
cmp dword [esi + edi*4], 0
jne 0x4a29cf
push 0
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
mov dword [ebp - 0x28], edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.004bceac
pop ecx
cmp eax, 0x5a
jbe 0x4a2a11
push 0
push 0x1452
call fcn.0040a8fc
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + eax*4]
push edx
push 0x4d30a4
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a30ef
inc edi
mov edx, dword [esi + edi*4]
push edx
call fcn.00488810
test eax, eax
je 0x4a2a48
mov ecx, dword [esi + edi*4]
push ecx
call fcn.004c4ccc
pop ecx
mov word [ebp - 0x1e], ax
cmp word [ebp - 0x1e], 0
ja 0x4a2a47
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
inc edi
mov ebx, dword [esi + edi*4]
test ebx, ebx
je 0x4a2ab4
push ebx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4a2a71
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
inc edi
cmp dword [esi + edi*4], 0
jne 0x4a2a8b
push 0
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0043e834
jmp 0x4a30ef
mov ecx, dword [esi + edi*4]
push ecx
call fcn.004c4ccc
pop ecx
mov word [ebp - 0x20], ax
cmp word [ebp - 0x20], 0
ja 0x4a2ab3
push 3
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
inc edi
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
call fcn.004a2614
mov ebx, eax
test ebx, ebx
je 0x4a2b4c
cmp dword [ebx + 0xec], 0
jne 0x4a2b00
push 0
push 0x1453
call fcn.0040a8fc
push eax
mov eax, dword [ebp - 0x28]
mov edx, dword [esi + eax*4]
push edx
push 0x4d30b9
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a30ef
cmp word [ebp - 0x1e], 0
je 0x4a2d49
mov dx, word [ebx + 0xca]
cmp dx, word [ebp - 0x1e]
je 0x4a2d49
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.0040a8fc
push eax
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a30ef
call fcn.004a23fc
mov ebx, eax
test ebx, ebx
jne 0x4a2b6a
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
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, 0x4d1b3a
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.004c92e8
pop ecx
mov dword [ebx + 0x10c], eax
mov edx, dword [ebx + 0x10c]
mov dword [ebx + 0x110], edx
mov dword [ebx + 0xec], 1
mov ecx, dword [ebp - 0x1c]
mov dword [ebx + 0xf0], ecx
mov eax, dword [ebp - 4]
mov dword [ebx + 0xf4], eax
mov dx, word [ebp - 0x20]
mov word [ebx + 0xf8], dx
xor ecx, ecx
mov dword [ebx + 0xfc], ecx
mov word [ebx + 0x100], 0
cmp word [ebp - 0x1e], 0
jne 0x4a2c8b
push 1
lea eax, [ebx + 0xca]
push eax
mov dx, word [0x4cc5ce]
push edx
mov cx, word [0x4cc5cc]
push ecx
call fcn.004900e4
mov dword [ebx + 0x114], eax
cmp dword [ebx + 0x114], 0xffffffff
jne 0x4a2d2f
push ebx
call fcn.004a250c
push 0
push 0x1454
call fcn.0040a8fc
push eax
push 0x4d30ce
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a30ef
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [ebx + 0x114], eax
cmp dword [ebx + 0x114], 0xffffffff
jne 0x4a2cd1
push ebx
call fcn.004a250c
push 0
push 0x1455
call fcn.0040a8fc
push eax
push 0x4d30de
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a30ef
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 + 0x114]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
je 0x4a2d2f
push ebx
call fcn.004a250c
push 0
push 0x1456
call fcn.0040a8fc
push eax
push 0x4d30ee
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a30ef
push 0x23
push 0x438
mov edx, dword [0x4d429c]
push edx
mov ecx, dword [ebx + 0x114]
push ecx
call sub.WSOCK32.dll_WSAAsyncSelect
cmp dword [ebp - 0x18], 0
je 0x4a2d6e
cmp dword [esi + edi*4], 0
je 0x4a2d6e
mov eax, dword [esi + edi*4]
push eax
call fcn.004c4ccc
pop ecx
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x4a2d6d
xor edx, edx
mov dword [ebp - 0x18], edx
inc edi
cmp dword [esi + edi*4], 0
jne 0x4a2dbb
cmp dword [ebp - 0x14], 0
jne 0x4a2d93
cmp dword [ebx + 0xf0], 0
jne 0x4a2d89
push ebx
call fcn.004a250c
mov eax, 1
jmp 0x4a30ef
mov edx, dword [ebp + 0xc]
push esi
mov esi, 0x4d30fe
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.004bceac
pop ecx
mov edi, eax
jmp 0x4a2e75
cmp dword [ebp - 0x10], 0
je 0x4a2dc9
mov eax, dword [esi + edi*4]
cmp byte [eax], 0x26
je 0x4a2e12
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
push esi
mov ecx, dword [ebp + 0xc]
push ecx
push edi
call fcn.00488944
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bceac
pop ecx
mov edi, eax
cmp dword [ebp - 0x14], 0
je 0x4a2e67
mov eax, dword [ebp + 0xc]
cmp byte [eax + edi - 1], 0xa
je 0x4a2e67
push 0x4d3102
mov edx, dword [ebp + 0xc]
push edx
call fcn.004bcdd0
add esp, 8
add edi, 2
jmp 0x4a2e67
mov ecx, dword [ebp + 0x10]
push ecx
mov eax, dword [esi + edi*4]
push eax
call fcn.00491a5c
test eax, eax
jne 0x4a2e5c
cmp dword [ebx + 0xf0], 0
jne 0x4a2e32
push ebx
call fcn.004a250c
push 0
push 0x1457
call fcn.0040a8fc
push eax
mov edx, dword [esi + edi*4]
push edx
push 0x4d3106
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a30ef
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 0x4a2e75
cmp edi, dword [ebp - 0x18]
jle 0x4a2e75
mov edi, dword [ebp - 0x18]
cmp dword [ebx + 0xdc], 0
je 0x4a2f32
mov eax, dword [ebx + 0xe0]
add eax, edi
cmp eax, 0x4000
jle 0x4a2ecd
cmp dword [ebx + 0xf0], 0
jne 0x4a2ea0
push ebx
call fcn.004a250c
push 0
push 0x1458
call fcn.0040a8fc
push eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [esi + edx*4]
push ecx
push str.__sockudp:__s__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0x10
xor eax, eax
jmp 0x4a30ef
mov edx, dword [ebx + 0xe0]
add edx, edi
add edx, 5
push edx
mov ecx, dword [ebx + 0xdc]
push ecx
call fcn.004c7a38
add esp, 8
test eax, eax
jne 0x4a2f0e
cmp dword [ebx + 0xf0], 0
jne 0x4a2efb
push ebx
call fcn.004a250c
push 2
push 0
mov eax, dword [esi]
push eax
push 0
call fcn.0043e834
jmp 0x4a30ef
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.004bccbc
add esp, 0xc
add dword [ebx + 0xe0], edi
jmp 0x4a2f87
lea eax, [edi + 5]
push eax
call fcn.004c75a4
pop ecx
mov dword [ebx + 0xdc], eax
cmp dword [ebx + 0xdc], 0
jne 0x4a2f6d
cmp dword [ebx + 0xf0], 0
jne 0x4a2f5a
push ebx
call fcn.004a250c
push 2
push 0
mov edx, dword [esi]
push edx
push 0
call fcn.0043e834
jmp 0x4a30ef
push edi
mov ecx, dword [ebp - 0x24]
push ecx
mov eax, dword [ebx + 0xdc]
push eax
call fcn.004bccbc
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.004bcd2c
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.004bccbc
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 0x4a2ffd
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 + 0x114]
push eax
call sub.WSOCK32.dll_sendto
mov edi, eax
test edi, edi
jge 0x4a3078
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4a3032
cmp eax, 0x2734
jne 0x4a3055
push 0x23
push 0x438
mov eax, dword [0x4d429c]
push eax
mov edx, dword [ebx + 0x114]
push edx
call sub.WSOCK32.dll_WSAAsyncSelect
mov eax, 1
jmp 0x4a30ef
push 0
push 0x1459
call fcn.0040a8fc
push eax
push str.__sockudp:__s
push 0x4dea10
call sub.USER32.dll_wsprintfA
add esp, 0xc
xor eax, eax
jmp 0x4a30ef
push 0
call fcn.004c92e8
pop ecx
mov dword [ebx + 0x10c], eax
test edi, edi
jle 0x4a30be
add dword [ebx + 0x104], edi
cmp edi, dword [ebx + 0xe0]
jge 0x4a30be
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.004bcce0
add esp, 0xc
mov eax, 1
jmp 0x4a30ef
mov edx, dword [ebx + 0xdc]
push edx
call fcn.004c749c
pop ecx
xor ecx, ecx
mov dword [ebx + 0xdc], ecx
xor eax, eax
mov dword [ebx + 0xe0], eax
cmp dword [ebx + 0xf0], 0
jne 0x4a30ea
push ebx
call fcn.004a250c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc