Function at 0x505f30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x600088]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x110]
push ebp
cmp dword [ebx + 0x90], 2
mov ebp, dword [ebx]
je 0x5061ab
cmp byte [ebx + 0x282], 0
push esi
push edi
jne 0x5060dc
cmp byte [ebx + 0x29e], 0
jne 0x5060dc
mov esi, dword [esp + 0x120]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x505fc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00529070
push eax
push esi
push 0x5b14f0
push ebp
call fcn.00504840
add esp, 0x18
jmp 0x5061a9
push 0x80
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x80
push 0
push eax
call fcn.004c3e40
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x506018
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00529070
push eax
push esi
push 0x5b1468
push ebp
call fcn.00504840
add esp, 0x18
jmp 0x5061a9
lea eax, [ebx + 0x134]
push eax
lea esi, [ebx + 0x106]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.005055d0
add esp, 0xc
test al, al
jne 0x506065
call fcn.004cce86
mov esi, dword [eax]
call fcn.004cce86
push esi
push ebx
mov edi, eax
call fcn.00529070
push eax
push dword [edi]
push 0x5b1518
push ebp
call fcn.00504840
add esp, 0x18
jmp 0x5061a9
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [ebx + 0x5c], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ebx + 0x6c], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ebx + 0x7c], xmm0
mov dword [ebx + 0x84], eax
mov ax, word [esi + 0x2c]
mov word [ebx + 0x88], ax
lea eax, [ebx + 0x168]
push eax
lea eax, [ebx + 0x138]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.005055d0
add esp, 0xc
test al, al
jne 0x5060dc
call fcn.004cce86
mov esi, dword [eax]
call fcn.004cce86
push esi
push ebx
mov edi, eax
call fcn.00529070
push eax
push dword [edi]
push 0x5b1544
push ebp
call fcn.00504840
add esp, 0x18
jmp 0x5061a9
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0x106]
movups xmmword [ecx + 0xc58], xmm0
movups xmm0, xmmword [ebx + 0x116]
movups xmmword [ecx + 0xc68], xmm0
movq xmm0, qword [ebx + 0x126]
movq qword [ecx + 0xc78], xmm0
mov eax, dword [ebx + 0x12e]
mov dword [ecx + 0xc80], eax
movzx eax, word [ebx + 0x132]
mov word [ecx + 0xc84], ax
mov ecx, dword [ebx]
movups xmm0, xmmword [ebx + 0x138]
movups xmmword [ecx + 0xc8c], xmm0
movups xmm0, xmmword [ebx + 0x148]
movups xmmword [ecx + 0xc9c], xmm0
movq xmm0, qword [ebx + 0x158]
movq qword [ecx + 0xcac], xmm0
mov eax, dword [ebx + 0x160]
mov dword [ecx + 0xcb4], eax
movzx eax, word [ebx + 0x164]
mov word [ecx + 0xcb8], ax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [ecx + 0xcc0], eax
mov eax, dword [ebx + 0x2c8]
mov ecx, dword [ebx]
mov eax, dword [eax + 0x40]
mov dword [ecx + 0xcc4], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x134]
mov dword [ecx + 0xc88], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x168]
mov dword [ecx + 0xcbc], eax
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
pop ebp
pop ebx
xor ecx, esp
call fcn.004ac0cf
add esp, 0x108
ret