Function at 0x4c95c0
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 0x4c9820
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 0x4c95f0
test esi, esi
je 0x4c9820
mov eax, dword [0xb5ad4c]
push ebp
call dword [eax]
add esp, 4
test eax, eax
je 0x4c981b
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 0x4c9669
push dword [esp]
push dword [esp + 0x38]
call fcn.004c9460
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 0x4c9755
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c9828
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 0x4c96a0
cmp eax, 0x17
jne 0x4c9655
mov dword [esp + 8], ecx
mov ecx, 0x1c
jmp 0x4c96a9
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.004c9370
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c9730
push dword [esp + 0xc]
push dword [esp + 4]
mov dword [esp + 8], eax
push eax
push dword [esp + 0x40]
call fcn.004c94a0
add esp, 0x10
test eax, eax
jne 0x4c9640
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.004c9460
add esp, 8
mov edx, 1
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 8]
je 0x4c9655
jmp 0x4c9747
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp eax, 0x273f
mov ecx, dword [esp + 8]
je 0x4c9655
mov esi, 4
mov ebx, dword [esp + 4]
jmp 0x4c980c
push 0x4c9840
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 0x4c97ff
xor ecx, ecx
cmp edx, 4
jb 0x4c97c4
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 0x4c97a0
mov edx, dword [esp + 0x10]
test dl, 3
mov ebx, dword [esp + 4]
je 0x4c97ff
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 0x4c97f0
mov eax, dword [ebx + ebp - 0x28]
mov dword [eax + 0x1c], 0
xor esi, esi
mov eax, dword [0xb5ad44]
push ebx
call dword [eax]
add esp, 4
mov eax, esi
jmp 0x4c9820
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 0x4c99c2
mov edi, 1
mov ebx, 1
test ecx, ecx
je 0x4c9875
lea ecx, [esi + 8]
call fcn.004c99d0
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
call fcn.004c99d0
mov esi, eax
cmp ebx, eax
sete byte [esp + 4]
cmp dword [ebp + 4], 0
je 0x4c9898
lea ecx, [ebp + 8]
call fcn.004c99d0
mov edi, eax
cmp ebx, esi
sete bl
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004c99d0
mov ecx, eax
cmp edi, eax
sete al
cmp bl, al
je 0x4c98cc
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 0x4c99c2
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 0x4c98f3
lea ecx, [ebp + 8]
call fcn.004c9aa0
mov ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004c9aa0
mov ebp, eax
cmp ebx, eax
sete byte [esp + 3]
cmp dword [edi + 4], 0
je 0x4c9919
lea ecx, [edi + 8]
call fcn.004c9aa0
mov dword [esp + 4], eax
cmp ebx, ebp
sete bl
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
call fcn.004c9aa0
mov ecx, eax
mov edx, dword [esp + 4]
cmp edx, eax
sete al
cmp bl, al
je 0x4c994d
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 0x4c99c2
mov ebx, edi
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
call fcn.004c9bb0
mov edi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
call fcn.004c9bb0
sub eax, edi
jne 0x4c99c2
sub esi, dword [esp + 8]
jne 0x4c99c0
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 4], 0
je 0x4c99b8
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
cmp word [edx], 0x17
jne 0x4c99b8
cmp dword [ebx + 4], 0
je 0x4c99b8
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
cmp word [esi], 0x17
jne 0x4c99b8
lea ecx, [ebp + 0x10]
add edx, 8
call fcn.004c9cb0
mov edi, eax
lea ecx, [ebx + 0x10]
add esi, 8
mov edx, esi
call fcn.004c9cb0
sub eax, edi
jne 0x4c99c2
mov eax, dword [ebp + 0x24]
sub eax, dword [ebx + 0x24]
jmp 0x4c99c2
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret