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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f111
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2064
call fcn.10036fa0
mov eax, dword [0x1005d330]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
push ebx
mov dword [esp + 0x2070], eax
lea eax, [esp + 0x1064]
push str.connect_to__s_...
push eax
mov esi, ecx
call fcn.10036e11
mov edx, dword [ebp + 0xc]
add esp, 0xc
lea ecx, [esp + 0x1060]
push ecx
push edx
mov ecx, esi
call fcn.10017670
test eax, eax
je 0x1002fa41
xor eax, eax
mov byte [esp + 0x58], 0
mov ecx, 0x400
lea edi, [esp + 0x59]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x18]
push edi
push ebx
lea eax, [esp + 0x60]
push str.CONNECT__s:_d
push eax
call fcn.10036e11
add esp, 0xc
lea edx, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push str.TELNET
mov dword [esp + 0x2088], 0
call fcn.100047c0
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push 0x10050713
mov byte [esp + 0x208c], 1
call fcn.100047c0
mov eax, dword [ebp + 8]
push eax
mov ecx, 0x1005ed60
mov dword [esp + 0x208c], 0xffffffff
call fcn.1000cbb0
lea ecx, [esp + 0x14]
call fcn.1001b740
lea ecx, [esp + 0x14]
push ecx
push 4
mov ecx, 0x1005ff80
mov dword [esp + 0x2084], 2
call fcn.10030070
mov ecx, dword [0x10078d54]
xor eax, eax
test ecx, ecx
je 0x1002f936
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx + 4]
lea eax, [esp + 0x4c]
push eax
push edx
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push eax
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
push ebx
push ecx
mov ecx, esi
call fcn.10017d80
test eax, eax
mov ecx, esi
jne 0x1002fa26
mov edx, dword [ebp + 0xc]
push str.failed__r_n
push edx
call fcn.10017670
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov dword [esp + 0x207c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002f98c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002f9aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002f9c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002f9e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fa04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1002fa22
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x1002fa61
mov ebx, dword [ebp + 0xc]
push str.OK__r_n
push ebx
call fcn.10017670
test eax, eax
jne 0x1002fa45
lea ecx, [esp + 0x14]
call fcn.1001b6e0
xor eax, eax
jmp 0x1002fa61
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
push ebx
push eax
push ecx
mov ecx, esi
call fcn.100176b0
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.1001b6e0
mov eax, esi
mov ecx, dword [esp + 0x2074]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x206c]
call fcn.10036c09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14