Function at 0x4c9b70
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 0x4c9dd0
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 0x4c9ba0
test esi, esi
je 0x4c9dd0
mov eax, dword [0xa9234c]
push ebp
call dword [eax]
add esp, 4
test eax, eax
je 0x4c9dcb
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 0x4c9c19
push dword [esp]
push dword [esp + 0x38]
call fcn.004c9a10
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 0x4c9d05
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c9dd8
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 0x4c9c50
cmp eax, 0x17
jne 0x4c9c05
mov dword [esp + 8], ecx
mov ecx, 0x1c
jmp 0x4c9c59
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.004c9920
add esp, 0x10
cmp eax, 0xffffffff
je 0x4c9ce0
push dword [esp + 0xc]
push dword [esp + 4]
mov dword [esp + 8], eax
push eax
push dword [esp + 0x40]
call fcn.004c9a50
add esp, 0x10
test eax, eax
jne 0x4c9bf0
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.004c9a10
add esp, 8
mov edx, 1
cmp dword [esp + 0xc], 0
mov ecx, dword [esp + 8]
je 0x4c9c05
jmp 0x4c9cf7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
xor edx, edx
cmp eax, 0x273f
mov ecx, dword [esp + 8]
je 0x4c9c05
mov esi, 4
mov ebx, dword [esp + 4]
jmp 0x4c9dbc
push 0x4c9df0
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 0x4c9daf
xor ecx, ecx
cmp edx, 4
jb 0x4c9d74
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 0x4c9d50
mov edx, dword [esp + 0x10]
test dl, 3
mov ebx, dword [esp + 4]
je 0x4c9daf
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 0x4c9da0
mov eax, dword [ebx + ebp - 0x28]
mov dword [eax + 0x1c], 0
xor esi, esi
mov eax, dword [0xa92344]
push ebx
call dword [eax]
add esp, 4
mov eax, esi
jmp 0x4c9dd0
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 0x4c9f72
mov edi, 1
mov ebx, 1
test ecx, ecx
je 0x4c9e25
lea ecx, [esi + 8]
call fcn.004c9f80
mov ebx, eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
call fcn.004c9f80
mov esi, eax
cmp ebx, eax
sete byte [esp + 4]
cmp dword [ebp + 4], 0
je 0x4c9e48
lea ecx, [ebp + 8]
call fcn.004c9f80
mov edi, eax
cmp ebx, esi
sete bl
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004c9f80
mov ecx, eax
cmp edi, eax
sete al
cmp bl, al
je 0x4c9e7c
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 0x4c9f72
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 0x4c9ea3
lea ecx, [ebp + 8]
call fcn.004ca050
mov ebx, eax
mov eax, dword [ebp]
mov ecx, dword [eax + 0x18]
call fcn.004ca050
mov ebp, eax
cmp ebx, eax
sete byte [esp + 3]
cmp dword [edi + 4], 0
je 0x4c9ec9
lea ecx, [edi + 8]
call fcn.004ca050
mov dword [esp + 4], eax
cmp ebx, ebp
sete bl
mov eax, dword [edi]
mov ecx, dword [eax + 0x18]
call fcn.004ca050
mov ecx, eax
mov edx, dword [esp + 4]
cmp edx, eax
sete al
cmp bl, al
je 0x4c9efd
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 0x4c9f72
mov ebx, edi
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
call fcn.004ca160
mov edi, eax
mov eax, dword [ebx]
mov ecx, dword [eax + 0x18]
call fcn.004ca160
sub eax, edi
jne 0x4c9f72
sub esi, dword [esp + 8]
jne 0x4c9f70
mov ebp, dword [esp + 0x20]
cmp dword [ebp + 4], 0
je 0x4c9f68
mov eax, dword [ebp]
mov edx, dword [eax + 0x18]
cmp word [edx], 0x17
jne 0x4c9f68
cmp dword [ebx + 4], 0
je 0x4c9f68
mov eax, dword [ebx]
mov esi, dword [eax + 0x18]
cmp word [esi], 0x17
jne 0x4c9f68
lea ecx, [ebp + 0x10]
add edx, 8
call fcn.004ca260
mov edi, eax
lea ecx, [ebx + 0x10]
add esi, 8
mov edx, esi
call fcn.004ca260
sub eax, edi
jne 0x4c9f72
mov eax, dword [ebp + 0x24]
sub eax, dword [ebx + 0x24]
jmp 0x4c9f72
mov eax, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret