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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, dword [esp + 0x38]
mov ecx, dword [ebx + 0x1c]
mov eax, 1
test ecx, ecx
je 0x4cb3e0
add ebx, 0x1c
xor ebp, ebp
xor esi, esi
nop word cs:[eax + eax]
mov ecx, dword [ecx + 0x1c]
dec esi
add ebp, 0x28
test ecx, ecx
jne 0x4cb1b0
test esi, esi
je 0x4cb3e0
mov eax, dword [0xad5c20]
push ebp
call dword [eax]
add esp, 4
test eax, eax
je 0x4cb3db
mov ecx, esi
neg ecx
mov dword [esp + 0x14], ecx
mov ecx, esi
not ecx
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 4], eax
mov edi, eax
mov dword [esp + 0x18], ebx
jmp 0x4cb229
push dword [esp]
push dword [esp + 0x38]
call fcn.004cb020
add esp, 8
mov ecx, dword [esp + 8]
xor edx, edx
mov dword [edi + 4], edx
inc ecx
add ebx, 0x1c
add edi, 0x28
cmp dword [esp + 0x14], ecx
je 0x4cb315
mov ebx, dword [ebx]
test ebx, ebx
je 0x4cb3e8
mov dword [edi], ebx
mov dword [edi + 0x24], ecx
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
movzx eax, word [eax]
xor edx, edx
cmp eax, 2
je 0x4cb260
cmp eax, 0x17
jne 0x4cb215
mov dword [esp + 8], ecx
mov ecx, 0x1c
jmp 0x4cb269
mov dword [esp + 8], ecx
mov ecx, 0x10
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ecx
push 0x11
push 2
push eax
mov eax, dword [esp + 0x40]
push eax
call fcn.004caf30
add esp, 0x10
cmp eax, 0xffffffff
je 0x4cb2f0
push dword [esp + 0xc]
push dword [esp + 4]
mov dword [esp + 8], eax
push eax
push dword [esp + 0x40]
call fcn.004cb060
add esp, 0x10
test eax, eax
jne 0x4cb200
lea eax, [edi + 8]
lea ecx, [esp + 0x1c]
push ecx
push eax
push dword [esp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [esp + 0xc], eax
push dword [esp]
push dword [esp + 0x38]
call fcn.004cb020
add esp, 8
mov edx, 1
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 8]
je 0x4cb215
jmp 0x4cb307
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp eax, 0x273f
mov ecx, dword [esp + 8]
je 0x4cb215
mov esi, 4
mov ebx, dword [esp + 4]
jmp 0x4cb3cc
push 0x4cb400
push 0x28
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push ebx
call sub.api_ms_win_crt_utility_l1_1_0.dll_qsort
mov edx, dword [esp + 0x20]
add esp, 0x10
mov eax, dword [ebx]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
cmp esi, 0xffffffff
je 0x4cb3bf
xor ecx, ecx
cmp edx, 4
jb 0x4cb384
mov esi, edx
lea edx, [ebx + 0xa0]
mov ebx, esi
and ebx, 0xfffffffc
xor ecx, ecx
nop dword [eax + eax]
mov esi, dword [edx - 0x78]
mov dword [eax + 0x1c], esi
mov eax, dword [edx - 0x50]
mov dword [esi + 0x1c], eax
mov esi, dword [edx - 0x28]
mov dword [eax + 0x1c], esi
add ecx, 4
mov eax, dword [edx]
mov dword [esi + 0x1c], eax
add edx, 0xa0
cmp ebx, ecx
jne 0x4cb360
mov edx, dword [esp + 0x10]
test dl, 3
mov ebx, dword [esp + 4]
je 0x4cb3bf
lea ecx, [ecx + ecx*4]
lea ecx, [ebx + ecx*8]
add ecx, 0x28
and edx, 3
shl edx, 3
lea edx, [edx + edx*4]
xor esi, esi
nop word cs:[eax + eax]
mov edi, dword [ecx + esi]
mov dword [eax + 0x1c], edi
add esi, 0x28
mov eax, edi
cmp edx, esi
jne 0x4cb3b0
mov eax, dword [ebx + ebp - 0x28]
mov dword [eax + 0x1c], 0
xor esi, esi
mov eax, dword [0xad5c18]
push ebx
call dword [eax]
add esp, 4
mov eax, esi
jmp 0x4cb3e0
mov eax, 0xf
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1a4
push str.ares__sortaddrinfo.c
push str.cur___NULL
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__assert]
nop dword [eax]
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 4]
sub eax, ecx
jne 0x4cb582
mov edi, 1
mov ebx, 1
test ecx, ecx
je 0x4cb435
lea ecx, [esi + 8]
call fcn.004cb590
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
call fcn.004cb590
mov esi, eax
cmp ebx, eax
sete byte [esp + 4]
cmp dword [ebp + 4], 0
je 0x4cb458
lea ecx, [ebp + 8]
call fcn.004cb590
mov edi, eax
cmp ebx, esi
sete bl
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004cb590
mov ecx, eax
cmp edi, eax
sete al
cmp bl, al
je 0x4cb48c
xor edx, edx
movzx eax, byte [esp + 4]
mov dl, al
neg edx
xor eax, eax
cmp edi, ecx
sete al
add eax, edx
jmp 0x4cb582
mov edi, ebp
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 4], 0
mov ebx, 1
je 0x4cb4b3
lea ecx, [ebp + 8]
call fcn.004cb660
mov ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004cb660
mov ebp, eax
cmp ebx, eax
sete byte [esp + 3]
cmp dword [edi + 4], 0
je 0x4cb4d9
lea ecx, [edi + 8]
call fcn.004cb660
mov dword [esp + 4], eax
cmp ebx, ebp
sete bl
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
call fcn.004cb660
mov ecx, eax
mov edx, dword [esp + 4]
cmp edx, eax
sete al
cmp bl, al
je 0x4cb50d
xor ebx, ebx
movzx eax, byte [esp + 3]
mov bl, al
neg ebx
xor eax, eax
cmp edx, ecx
sete al
add eax, ebx
jmp 0x4cb582
mov ebx, edi
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
call fcn.004cb770
mov edi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
call fcn.004cb770
sub eax, edi
jne 0x4cb582
sub esi, dword [esp + 8]
jne 0x4cb580
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 4], 0
je 0x4cb578
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
cmp word [edx], 0x17
jne 0x4cb578
cmp dword [ebx + 4], 0
je 0x4cb578
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
cmp word [esi], 0x17
jne 0x4cb578
lea ecx, [ebp + 0x10]
add edx, 8
call fcn.004cb870
mov edi, eax
lea ecx, [ebx + 0x10]
add esi, 8
mov edx, esi
call fcn.004cb870
sub eax, edi
jne 0x4cb582
mov eax, dword [ebp + 0x24]
sub eax, dword [ebx + 0x24]
jmp 0x4cb582
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret