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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x102e9418]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 0x44]
movzx ecx, byte [eax + 9]
test ecx, ecx
je 0x1007e51c
mov dword [ebp - 0x58], 0x1c
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e4e4
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov ax, word [ebp - 0x2e]
mov word [ebp - 0x4c], ax
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_getpeername]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e512
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov dx, word [ebp - 0x2e]
mov word [ebp - 0x50], dx
jmp 0x1007e57f
mov dword [ebp - 0x58], 0x10
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e549
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov cx, word [ebp - 0x12]
mov word [ebp - 0x4c], cx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_getpeername]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e577
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov ax, word [ebp - 0x12]
mov word [ebp - 0x50], ax
mov ecx, dword [ebp - 0x44]
movzx edx, byte [ecx + 0x10]
test edx, edx
je 0x1007e66e
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcp6Table]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x7a
je 0x1007e5af
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov edx, dword [ebp - 0x54]
push edx
call fcn.1005efdc
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x1007e5ce
mov eax, 0xe
jmp 0x1007e771
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcp6Table]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e5fb
mov edx, dword [ebp - 0x40]
push edx
call fcn.1005cfd2
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov dword [ebp - 0x3c], 0
jmp 0x1007e60d
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx]
jae 0x1007e65d
imul eax, dword [ebp - 0x3c], 0x34
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x5c], edx
movzx eax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx + 0x18], eax
jne 0x1007e65b
movzx edx, word [ebp - 0x50]
mov eax, dword [ebp - 0x5c]
cmp dword [eax + 0x30], edx
jne 0x1007e65b
mov ecx, dword [ebp - 0x5c]
cmp dword [ecx], 5
jne 0x1007e65b
mov byte [ebp - 0x35], 1
mov edi, dword [ebp - 0x44]
add edi, 0x60
mov ecx, 0xd
mov esi, dword [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
jmp 0x1007e65d
jmp 0x1007e604
mov edx, dword [ebp - 0x40]
push edx
call fcn.1005cfd2
add esp, 4
jmp 0x1007e75e
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x7a
je 0x1007e68f
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov edx, dword [ebp - 0x54]
push edx
call fcn.1005efdc
add esp, 4
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x1007e6ae
mov eax, 0xe
jmp 0x1007e771
push 1
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetTcpTable]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x1007e6db
mov edx, dword [ebp - 0x48]
push edx
call fcn.1005cfd2
add esp, 4
mov eax, dword [ebp - 0x34]
jmp 0x1007e771
mov dword [ebp - 0x3c], 0
jmp 0x1007e6ed
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx]
jae 0x1007e752
imul eax, dword [ebp - 0x3c], 0x14
mov ecx, dword [ebp - 0x48]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x60], edx
movzx eax, word [ebp - 0x4c]
mov ecx, dword [ebp - 0x60]
cmp dword [ecx + 8], eax
jne 0x1007e750
movzx edx, word [ebp - 0x50]
mov eax, dword [ebp - 0x60]
cmp dword [eax + 0x10], edx
jne 0x1007e750
mov ecx, dword [ebp - 0x60]
cmp dword [ecx], 5
jne 0x1007e750
mov byte [ebp - 0x35], 1
mov edx, dword [ebp - 0x44]
add edx, 0x4c
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
jmp 0x1007e752
jmp 0x1007e6e4
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.1005cfd2
add esp, 4
movzx edx, byte [ebp - 0x35]
test edx, edx
je 0x1007e76c
xor eax, eax
jmp 0x1007e771
mov eax, 0x490
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10053c7f
mov esp, ebp
pop ebp
ret