Function at 0x4900e4
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x4e86e8
mov esi, 0x4e86e0
mov edi, 0x4e86dc
cmp dword [ebp + 0x14], 1
jne 0x49010b
mov dword [0x4e86f0], 2
jmp 0x490115
mov dword [0x4e86f0], 1
cmp dword [ebp + 0x10], 0
je 0x490123
mov eax, dword [ebp + 0x10]
mov word [eax], 0
mov eax, dword [0x4d1ba0]
test eax, eax
je 0x490133
mov dword [0x4e86d4], eax
jmp 0x49013d
mov dword [0x4e86d4], 0x100007f
movzx eax, word [ebp + 0xc]
movzx edx, word [ebp + 8]
sub eax, edx
mov dword [0x4e86f8], eax
test eax, eax
jbe 0x490175
inc dword [0x4e86f8]
call fcn.004c4fa8
xor edx, edx
div dword [0x4e86f8]
add dx, word [ebp + 8]
mov word [ebx], dx
mov ax, word [ebx]
mov word [0x4e86ec], ax
jmp 0x490182
mov ax, word [ebp + 8]
mov word [ebx], ax
mov word [0x4e86ec], ax
mov word [0x4e86ea], 0
jmp 0x490488
mov edx, dword [0x4caddc]
mov dword [esi], edx
jmp 0x4901e8
mov eax, dword [esi]
cmp dword [eax + 0x51c], 0
je 0x4901de
mov dx, word [eax + 0x520]
cmp dx, word [ebx]
jne 0x4901de
inc word [ebx]
mov cx, word [ebx]
cmp cx, word [ebp + 0xc]
jbe 0x4901c4
mov ax, word [ebp + 8]
mov word [ebx], ax
mov dx, word [ebx]
cmp dx, word [0x4e86ec]
je 0x490496
mov ecx, dword [0x4caddc]
mov dword [esi], ecx
jmp 0x4901e8
mov eax, dword [esi]
mov edx, dword [eax + 0x870]
mov dword [esi], edx
cmp dword [esi], 0
jne 0x49019a
mov ecx, dword [0x4d2d00]
mov dword [edi], ecx
jmp 0x490245
mov eax, dword [edi]
cmp dword [eax + 0x3fc], 0
je 0x49023b
mov dx, word [eax + 0x40c]
cmp dx, word [ebx]
jne 0x49023b
inc word [ebx]
mov cx, word [ebx]
cmp cx, word [ebp + 0xc]
jbe 0x490221
mov ax, word [ebp + 8]
mov word [ebx], ax
mov dx, word [ebx]
cmp dx, word [0x4e86ec]
je 0x490496
mov ecx, dword [0x4d2d00]
mov dword [edi], ecx
jmp 0x490245
mov eax, dword [edi]
mov edx, dword [eax + 0x440]
mov dword [edi], edx
cmp dword [edi], 0
jne 0x4901f7
mov ecx, dword [0x4ce3ec]
mov dword [0x4e86e4], ecx
jmp 0x4902b4
mov eax, dword [0x4e86e4]
cmp dword [eax + 0x3fc], 0
je 0x4902a3
mov dx, word [eax + 0x404]
cmp dx, word [ebx]
jne 0x4902a3
inc word [ebx]
mov cx, word [ebx]
cmp cx, word [ebp + 0xc]
jbe 0x490285
mov ax, word [ebp + 8]
mov word [ebx], ax
mov dx, word [ebx]
cmp dx, word [0x4e86ec]
je 0x490496
mov ecx, dword [0x4ce3ec]
mov dword [0x4e86e4], ecx
jmp 0x4902b4
mov eax, dword [0x4e86e4]
mov edx, dword [eax + 0x438]
mov dword [0x4e86e4], edx
cmp dword [0x4e86e4], 0
jne 0x490258
mov ecx, dword [0x4d3094]
mov dword [0x4e86d8], ecx
jmp 0x490319
mov ax, word [eax + 0xca]
cmp ax, word [ebx]
jne 0x490308
inc word [ebx]
mov dx, word [ebx]
cmp dx, word [ebp + 0xc]
jbe 0x4902ea
mov cx, word [ebp + 8]
mov word [ebx], cx
mov ax, word [ebx]
cmp ax, word [0x4e86ec]
je 0x490496
mov edx, dword [0x4d3094]
mov dword [0x4e86d8], edx
jmp 0x490319
mov ecx, dword [0x4e86d8]
mov eax, dword [ecx + 0x118]
mov dword [0x4e86d8], eax
mov eax, dword [0x4e86d8]
test eax, eax
jne 0x4902cb
push 0
mov edx, dword [0x4e86f0]
push edx
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4e86fc], eax
cmp dword [0x4e86fc], 0xffffffff
je 0x490496
push 0x10
push 0
push 0x4e86c4
call fcn.004bcd2c
add esp, 0xc
mov word [0x4e86c4], 2
mov ecx, dword [0x4e86d4]
mov dword [0x4e86c8], ecx
mov ax, word [ebx]
push eax
call sub.WSOCK32.dll_htons
mov word [0x4e86c6], ax
push 0x10
push 0x4e86c4
mov edx, dword [0x4e86fc]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x490456
cmp dword [ebp + 0x14], 0
jne 0x4903b0
push 5
mov ecx, dword [0x4e86fc]
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x490456
mov eax, dword [0x4e86fc]
push eax
call sub.WSOCK32.dll_closesocket
push 0
mov edx, dword [0x4e86f0]
push edx
push 2
call sub.WSOCK32.dll_socket
mov dword [0x4e86fc], eax
cmp dword [0x4e86fc], 0xffffffff
je 0x490496
push 0x10
push 0
push 0x4e86c4
call fcn.004bcd2c
add esp, 0xc
mov word [0x4e86c4], 2
xor ecx, ecx
mov dword [0x4e86c8], ecx
mov ax, word [ebx]
push eax
call sub.WSOCK32.dll_htons
mov word [0x4e86c6], ax
push 0x10
push 0x4e86c4
mov edx, dword [0x4e86fc]
push edx
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x490456
cmp dword [ebp + 0x14], 0
jne 0x49043d
push 5
mov ecx, dword [0x4e86fc]
push ecx
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x490456
cmp dword [ebp + 0x10], 0
je 0x49044c
mov eax, dword [ebp + 0x10]
mov dx, word [ebx]
mov word [eax], dx
mov eax, dword [0x4e86fc]
jmp 0x490574
mov edx, dword [0x4e86fc]
push edx
call sub.WSOCK32.dll_closesocket
inc word [ebx]
mov cx, word [ebx]
cmp cx, word [ebp + 0xc]
jbe 0x490475
mov ax, word [ebp + 8]
mov word [ebx], ax
mov dx, word [ebx]
cmp dx, word [0x4e86ec]
je 0x490496
inc word [0x4e86ea]
cmp word [0x4e86ea], 0x1e
jb 0x490190
cmp dword [ebp + 0x10], 0
jne 0x4904a4
or eax, 0xffffffff
jmp 0x490574
push 0
mov edx, dword [0x4e86f0]
push edx
push 2
call sub.WSOCK32.dll_socket
mov ebx, eax
mov dword [0x4e86fc], ebx
cmp ebx, 0xffffffff
jne 0x4904c8
mov eax, ebx
jmp 0x490574
push 0x10
push 0
push 0x4e86c4
call fcn.004bcd2c
add esp, 0xc
mov word [0x4e86c4], 2
xor edx, edx
mov dword [0x4e86c8], edx
push 0
call sub.WSOCK32.dll_htons
mov word [0x4e86c6], ax
push 0x10
push 0x4e86c4
mov ecx, dword [0x4e86fc]
push ecx
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x490565
cmp dword [ebp + 0x14], 1
je 0x490525
push 5
mov eax, dword [0x4e86fc]
push eax
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x490565
cmp dword [ebp + 0x10], 0
je 0x49055e
mov dword [0x4e86f4], 0x10
push 0x4e86f4
push 0x4e86c4
mov edx, dword [0x4e86fc]
push edx
call sub.WSOCK32.dll_getsockname
mov cx, word [0x4e86c6]
push ecx
call sub.WSOCK32.dll_ntohs
mov edx, dword [ebp + 0x10]
mov word [edx], ax
mov eax, dword [0x4e86fc]
jmp 0x490574
mov ecx, dword [0x4e86fc]
push ecx
call sub.WSOCK32.dll_closesocket
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret 0x10