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

Disassembly:
sub esp, 0x2c
mov eax, dword [esp + 0x34]
test eax, eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], edx
mov ebp, ecx
je 0x4fd3ad
cmp eax, 1
jne 0x4fd3a4
mov dword [esp + 0x14], 2
jmp 0x4fd3b5
cmp eax, 2
jne 0x4fd703
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4fd3c2
mov word [eax], 0
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4fd3e8
mov eax, dword [0x59c9f0]
test eax, eax
je 0x4fd605
mov dword [esp + 0x10], 0xfde8
mov edx, dword [esp + 0x10]
mov ebp, 0x400
movzx eax, bp
movzx edi, dx
sub edi, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
je 0x4fd439
inc edi
mov dword [esp + 0x24], edi
call fcn.004fcfa0
lea eax, [edi + 1]
test eax, eax
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x4fd419
fadd qword [0x575228]
call fcn.0056452a
fiadd dword [esp + 0x20]
call fcn.00563394
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov esi, eax
mov ebx, esi
jmp 0x4fd450
mov esi, ebp
mov ebx, ebp
mov dword [esp + 0x18], 0
jmp 0x4fd450
mov edx, dword [esp + 0x10]
jmp 0x4fd450
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
inc ecx
test eax, eax
mov dword [esp + 0x18], ecx
jne 0x4fd4a4
cmp si, word [0x58990c]
jb 0x4fd4a4
cmp si, word [0x589910]
ja 0x4fd4a4
call fcn.004fcfa0
lea ecx, [edi + 1]
test ecx, ecx
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
jge 0x4fd48d
fadd qword [0x575228]
call fcn.0056452a
fiadd dword [esp + 0x20]
call fcn.00563394
mov esi, eax
mov ebx, esi
jmp 0x4fd5ee
mov ecx, dword [0x592640]
mov eax, ecx
test eax, eax
je 0x4fd4e2
mov edi, dword [eax + 0x520]
test edi, edi
je 0x4fd4d8
cmp word [eax + 0x51c], si
jne 0x4fd4d8
inc esi
cmp si, dx
jbe 0x4fd4cb
mov esi, ebp
cmp si, bx
je 0x4fd5fa
mov eax, ecx
jmp 0x4fd4de
mov eax, dword [eax + 0x88c]
test eax, eax
jne 0x4fd4b0
mov ecx, dword [0x59e068]
mov eax, ecx
test eax, eax
je 0x4fd522
mov edi, edi
mov edi, dword [eax + 0x33c]
test edi, edi
je 0x4fd518
cmp word [eax + 0x354], si
jne 0x4fd518
inc esi
cmp si, dx
jbe 0x4fd50b
mov esi, ebp
cmp si, bx
je 0x4fd5fa
mov eax, ecx
jmp 0x4fd51e
mov eax, dword [eax + 0x3cc]
test eax, eax
jne 0x4fd4f0
mov ecx, dword [0x597650]
mov eax, ecx
test eax, eax
je 0x4fd562
mov edi, edi
mov edi, dword [eax + 0x440]
test edi, edi
je 0x4fd558
cmp word [eax + 0x454], si
jne 0x4fd558
inc esi
cmp si, dx
jbe 0x4fd54b
mov esi, ebp
cmp si, bx
je 0x4fd5fa
mov eax, ecx
jmp 0x4fd55e
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x4fd530
mov ecx, dword [0x59f670]
mov eax, ecx
test eax, eax
je 0x4fd594
mov edi, edi
cmp word [eax + 0xc8], si
jne 0x4fd58a
inc esi
cmp si, dx
jbe 0x4fd581
mov esi, ebp
cmp si, bx
je 0x4fd5fa
mov eax, ecx
jmp 0x4fd590
mov eax, dword [eax + 0x194]
test eax, eax
jne 0x4fd570
mov edx, dword [esp + 0x14]
push 0
push edx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4fd5fa
mov edx, esi
mov ecx, edi
call fcn.004fd2b0
test eax, eax
je 0x4fd5d4
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4fd6ba
push 5
push edi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x4fd6ba
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
inc esi
cmp si, word [esp + 0x10]
jbe 0x4fd5e5
mov esi, ebp
cmp si, bx
je 0x4fd5fa
mov edi, dword [esp + 0x24]
cmp word [esp + 0x18], 0x32
jb 0x4fd447
cmp dword [esp + 0x48], 2
je 0x4fd703
mov eax, dword [esp + 0x14]
push 0
push eax
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4fd703
mov edi, dword [esp + 0x44]
cmp edi, 1
je 0x4fd62d
cmp edi, 2
jne 0x4fd647
mov eax, dword [0x59c9f4]
test eax, eax
je 0x4fd63f
mov al, byte [0x59c9f8]
test al, al
jne 0x4fd647
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4fd6ae
xor edx, edx
mov ecx, esi
call fcn.004fd2b0
test eax, eax
je 0x4fd6fc
cmp edi, 1
je 0x4fd67b
cmp edi, 2
je 0x4fd67b
test edi, edi
jne 0x4fd6fc
push 5
push esi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jne 0x4fd6fc
mov edi, dword [esp + 0x40]
test edi, edi
je 0x4fd6ae
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
push esi
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x4fd6ae
mov eax, dword [esp + 0x2e]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [edi], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x4fd6f0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
mov word [ebx], si
mov dword [esp + 0x28], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x4fd6f0
mov edx, dword [esp + 0x2e]
push edx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [ebx], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0xc
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x2c
ret 0xc