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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x606e10
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6ab0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [ebx + 0x460], 0
lea edi, [ebx + 0x300]
push 0x80
push 0
mov byte [ebp - 0x15], 1
push edi
je 0x4165ac
mov esi, dword [ebx + 0x4b8]
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x416504
cmp byte [0x6b2b20], 0
je 0x4164ff
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402750
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
jb 0x4164bc
mov ecx, dword [ecx]
cmp dword [ebx + 0x42c], 0x10
lea eax, [ebx + 0x418]
jb 0x4164cd
mov eax, dword [eax]
push ecx
push eax
push str._s_getsockname_failed__s_
push 2
push 0x6b2b20
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x4164ff
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00408cd0
xor al, al
mov byte [ebp - 0x15], al
mov esi, dword [ebx + 0x4b8]
lea edi, [ebx + 0x380]
push 0x80
push 0
push edi
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
jne 0x4166e8
cmp byte [0x6b2b20], 0
je 0x4166e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402750
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x416568
mov eax, dword [eax]
add ebx, 0x418
cmp dword [ebx + 0x14], 0x10
jb 0x416576
mov ebx, dword [ebx]
push eax
push ebx
push str._s_getpeername_failed__s_
push 2
push 0x6b2b20
call fcn.004030c0
mov eax, dword [ebp - 0x1c]
add esp, 0x14
cmp eax, 0x10
jb 0x4166e4
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00408cd0
xor al, al
jmp 0x4166eb
mov eax, dword [ebx + 0x4bc]
mov esi, dword [eax + 0xc8]
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x416649
cmp byte [0x6b2b20], 0
je 0x416645
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x30]
call fcn.00402750
mov ecx, eax
mov dword [ebp - 4], 2
cmp dword [ecx + 0x14], 0x10
jb 0x416602
mov ecx, dword [ecx]
cmp dword [ebx + 0x42c], 0x10
lea eax, [ebx + 0x418]
jb 0x416613
mov eax, dword [eax]
push ecx
push eax
push str._s_getsockname_failed__s_
push 2
push 0x6b2b20
call fcn.004030c0
mov dword [ebp - 4], 0xffffffff
add esp, 0x14
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jb 0x416645
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00408cd0
mov byte [ebp - 0x15], 0
mov eax, dword [ebx + 0x4bc]
lea edi, [ebx + 0x380]
push 0x80
push 0
push edi
mov esi, dword [eax + 0xc8]
call fcn.005d2630
add esp, 0xc
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0x14]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
jne 0x4166e8
cmp byte [0x6b2b20], 0
je 0x4166e4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.00402750
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x4166ab
mov eax, dword [eax]
add ebx, 0x418
cmp dword [ebx + 0x14], 0x10
jb 0x4166b9
mov ebx, dword [ebx]
push eax
push ebx
push str._s_getpeername_failed__s_
push 2
push 0x6b2b20
call fcn.004030c0
mov eax, dword [ebp - 0x34]
add esp, 0x14
cmp eax, 0x10
jb 0x4166e4
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00408cd0
xor al, al
jmp 0x4166eb
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005697c8
mov esp, ebp
pop ebp
ret