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

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x5285d7
cmp eax, 1
jne 0x5285ce
mov dword [esp + 0x10], 2
jmp 0x5285df
cmp eax, 2
jne 0x5288e1
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x5285ec
mov word [eax], 0
mov ebx, dword [esp + 0x34]
mov di, word [esp + 0x38]
movzx eax, bx
movzx esi, di
sub esi, eax
mov dword [esp + 0x14], eax
je 0x52863e
mov eax, dword [0x63fb14]
test eax, eax
je 0x528638
call fcn.00528310
inc esi
test esi, esi
mov dword [esp + 0x1c], esi
fild dword [esp + 0x1c]
jge 0x528624
fadd qword [0x5e73f0]
call fcn.005cd68a
fiadd dword [esp + 0x14]
call fcn.005cbd54
mov esi, eax
mov ebp, esi
jmp 0x528642
mov esi, ebx
mov ebp, esi
jmp 0x528642
mov esi, ebx
mov ebp, ebx
cmp dword [esp + 0x44], 2
je 0x528663
mov eax, dword [esp + 0x48]
test eax, eax
mov eax, dword [0x609e20]
jne 0x52865b
mov eax, dword [0x63fb10]
test eax, eax
je 0x5287da
mov dword [esp + 0x14], 0
jmp 0x528670
mov eax, dword [esp + 0x14]
mov ecx, dword [0x611900]
inc eax
mov dword [esp + 0x14], eax
mov eax, ecx
test eax, eax
je 0x5286b7
mov edx, dword [eax + 0x520]
test edx, edx
je 0x5286ad
cmp word [eax + 0x51c], si
jne 0x5286ad
inc esi
cmp si, di
jbe 0x5286a0
mov esi, ebx
cmp si, bp
je 0x5287da
mov eax, ecx
jmp 0x5286b3
mov eax, dword [eax + 0x890]
test eax, eax
jne 0x528685
mov ecx, dword [0x641548]
mov eax, ecx
test eax, eax
je 0x5286f5
mov edx, dword [eax + 0x33c]
test edx, edx
je 0x5286eb
cmp word [eax + 0x354], si
jne 0x5286eb
inc esi
cmp si, di
jbe 0x5286de
mov esi, ebx
cmp si, bp
je 0x5287da
mov eax, ecx
jmp 0x5286f1
mov eax, dword [eax + 0x3d4]
test eax, eax
jne 0x5286c3
mov ecx, dword [0x63709c]
mov eax, ecx
test eax, eax
je 0x528733
mov edx, dword [eax + 0x440]
test edx, edx
je 0x528729
cmp word [eax + 0x454], si
jne 0x528729
inc esi
cmp si, di
jbe 0x52871c
mov esi, ebx
cmp si, bp
je 0x5287da
mov eax, ecx
jmp 0x52872f
mov eax, dword [eax + 0x4bc]
test eax, eax
jne 0x528701
mov ecx, dword [0x642eec]
mov eax, ecx
test eax, eax
je 0x528768
nop
cmp word [eax + 0x12c], si
jne 0x52875e
inc esi
cmp si, di
jbe 0x528751
mov esi, ebx
cmp si, bp
je 0x5287da
mov eax, ecx
jmp 0x528764
mov eax, dword [eax + 0x208]
test eax, eax
jne 0x528740
push esi
call fcn.005283f0
add esp, 4
test eax, eax
jne 0x5287c1
push eax
mov eax, dword [esp + 0x14]
push eax
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x5287da
push esi
push edi
call fcn.005284e0
add esp, 8
test eax, eax
je 0x5287b5
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x52889a
push 5
push edi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
je 0x52889a
push edi
call dword [sym.imp.WSOCK32.dll_closesocket]
mov di, word [esp + 0x38]
inc esi
cmp si, di
jbe 0x5287c9
mov esi, ebx
cmp si, bp
je 0x5287da
cmp word [esp + 0x14], 0x32
jb 0x528670
cmp dword [esp + 0x44], 2
je 0x5288e1
mov ecx, dword [esp + 0x10]
push 0
push ecx
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x528890
mov edi, dword [esp + 0x40]
cmp edi, 1
je 0x52880d
cmp edi, 2
jne 0x528827
mov eax, dword [0x63fb18]
test eax, eax
je 0x52881f
mov al, byte [0x63fb20]
test al, al
jne 0x528827
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x528890
push 0
push esi
call fcn.005284e0
add esp, 8
test eax, eax
je 0x5288da
cmp edi, 1
je 0x52885d
cmp edi, 2
je 0x52885d
test edi, edi
jne 0x5288da
push 5
push esi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jne 0x5288da
mov edi, dword [esp + 0x3c]
test edi, edi
je 0x528890
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
push esi
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x528890
mov ecx, dword [esp + 0x22]
push ecx
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [edi], ax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x5288d0
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
mov word [ebx], si
mov dword [esp + 0x24], 0x10
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jne 0x5288d0
mov eax, dword [esp + 0x22]
push eax
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [ebx], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push esi
call dword [sym.imp.WSOCK32.dll_closesocket]
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x20
ret