Function at 0x4157a0
Capabilities:
Get local ipv4 addresses
Get socket information
Resolve dns
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
push ebx
push ebp
mov ebp, dword [esp + 0x88]
cmp dword [eax + 0x44], 0
push esi
push edi
mov edi, dword [esp + 0x98]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edi
jne 0x4157db
cmp dword [eax + 0x48], 0
jne 0x4157f2
push 0x298
push str..._tech1utils_tube_tubes.c
push str.state__mode__TM_ACCEPTOR__state__params___NULL
call fcn.00407dc0
add esp, 0xc
push 3
push str.TUBES
call fcn.004073a0
mov ebx, dword [esp + 0xa4]
add esp, 8
test eax, eax
je 0x415821
push ebx
push str.TUBE:_create_acceptors__on__u_ports:_n
push 3
push str.TUBES
call fcn.00407400
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x41585f
nop word [eax + eax]
push 3
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x41585a
push dword [edi + esi*4]
push str.TUBE:_create_acceptors__port__u_n
push 3
push str.TUBES
call fcn.00407400
add esp, 0x10
inc esi
cmp esi, ebx
jb 0x415830
test edi, edi
je 0x415b40
test ebx, ebx
je 0x415b40
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 0
push dword [ecx + 0x2c]
mov eax, dword [ecx + 0x48]
lea ecx, [esp + 0x1c]
push dword [ebp + 0x30]
push ecx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x34]
push ecx
push dword [eax + 4]
push dword [eax]
push ebx
push edi
call fcn.004030b0
add esp, 0x24
test eax, eax
jne 0x415aa0
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax + 4], esi
jbe 0x4158e9
mov eax, dword [eax]
push 5
mov edi, dword [eax + esi*4]
push edi
call dword [sym.imp.WSOCK32.dll_listen]
test eax, eax
jne 0x415aca
mov eax, dword [esp + 0x10]
inc esi
cmp esi, dword [eax + 4]
jb 0x4158c5
mov edi, dword [esp + 0x1c]
xor esi, esi
mov dword [esp + 0x20], esi
test ebx, ebx
je 0x4159e2
nop word [eax + eax]
push 2
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov cx, word [edi + esi*4]
mov dword [esp + 0x3c], eax
push 0x28
mov word [eax], cx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [ecx]
mov edi, dword [ecx + esi*4]
mov ecx, dword [eax + 0x1c]
movzx esi, word [ecx + 2]
call fcn.00407e60
lea ecx, [ebp + 0xc]
mov dword [esp + 0x38], eax
push 8
mov dword [eax], edi
mov dword [eax + 0x1c], ebp
mov dword [eax + 0x18], ecx
call fcn.00407e60
push 0x4c
push 1
mov dword [esp + 0x48], eax
mov word [eax], si
mov word [eax + 2], di
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov esi, eax
add esp, 0x18
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x170], 0
je 0x415973
mov eax, dword [eax + 0x58]
test eax, eax
jne 0x415978
mov eax, 0x1f400
push eax
call fcn.004cc070
push 1
mov dword [esi + 0x14], eax
call fcn.00405450
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x18], ecx
mov dword [eax], edx
push 1
mov dword [ecx + 0x20], esi
push eax
mov dword [edx + 4], esi
push dword [ebp + 4]
call fcn.004cb950
push 0x300
push dword [esi + 0x18]
push dword [ebp]
call fcn.004cad90
mov eax, dword [esp + 0x54]
add esp, 0x20
mov edi, dword [esp + 0x1c]
mov dword [esi + 4], 3
mov dword [esi + 0x28], eax
mov esi, dword [esp + 0x20]
inc esi
mov dword [esp + 0x20], esi
cmp esi, ebx
jb 0x415900
mov eax, dword [esp + 0x18]
cmp dword [eax + 4], ebx
je 0x415a06
push 0x2c3
push str..._tech1utils_tube_tubes.c
push str.ports_remap__elnum__ports_size
call fcn.00407dc0
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edi, dword [eax]
xorps xmm0, xmm0
push dword [esp + 0x24]
movups xmmword [esp + 0x4c], xmm0
movups xmmword [esp + 0x5c], xmm0
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
lea edx, [esp + 0x48]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x415a25
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], 0x10
push eax
mov eax, dword [esi + 0x18]
xorps xmm0, xmm0
movups xmmword [esp + 0x70], xmm0
movups xmmword [esp + 0x80], xmm0
push dword [eax]
call dword [sym.imp.WSOCK32.dll_getsockname]
push 2
push 0
push 0
push 0x20
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x3c]
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_getnameinfo]
push dword [esi + 0x2c]
lea eax, [esp + 0x4c]
push dword [esi + 0x24]
push ebx
push edi
push dword [esp + 0x2c]
push eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [ebp + 0x28]
call eax
add esp, 0x1c
lea eax, [esp + 0x10]
push eax
call fcn.00405490
lea eax, [esp + 0x1c]
push eax
call fcn.00405490
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004c75e8
add esp, 0x7c
ret
push 0
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x415b00
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.004067e0
push eax
push edi
push str.TUBE:_fd_d_listen_error___s_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0x18
mov eax, dword [esp + 0x10]
xor esi, esi
cmp dword [eax + 4], esi
jbe 0x415b27
nop dword [eax + eax]
mov eax, dword [eax]
push dword [eax + esi*4]
call fcn.00402090
mov eax, dword [esp + 0x14]
inc esi
add esp, 4
cmp esi, dword [eax + 4]
jb 0x415b10
mov eax, dword [esp + 0x14]
push dword [eax + 0x2c]
mov eax, dword [ebp + 0x30]
push str.Failed_to_listen_ports
call eax
add esp, 8
jmp 0x415aa0
push 0
push str.TUBES
call fcn.004073a0
add esp, 8
test eax, eax
je 0x415b67
push str.TUBE:_PORT_LIST_IS_EMPTY_n
push 0
push str.TUBES
call fcn.00407400
add esp, 0xc
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x7c
ret