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

Disassembly:
sub esp, 0x28
mov eax, dword [0x501230]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x54]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
call fcn.00405450
push 4
mov dword [ebp], eax
call fcn.00405450
mov edx, dword [esp + 0x28]
add esp, 8
mov dword [ebx], eax
test edx, edx
je 0x4032c9
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403115
sub ecx, dword [esp + 0x10]
je 0x4032c9
mov ecx, 0x20
or eax, 0xffffffff
sub ecx, dword [esp + 0x48]
xor edi, edi
shl eax, cl
mov ecx, 2
mov dword [esp + 0x10], eax
nop
movups xmm0, xmmword [0x4daac0]
lea eax, [esp + 0x28]
push eax
movups xmmword [esp + 0x28], xmm0
push edx
mov word [esp + 0x2c], cx
call fcn.00405c20
add esp, 8
test eax, eax
je 0x403266
push dword [esp + 0x28]
call dword [sym.imp.WSOCK32.dll_ntohl]
mov esi, eax
and esi, dword [esp + 0x10]
push esi
call dword [sym.imp.WSOCK32.dll_htonl]
mov dword [esp + 0x28], eax
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ecx, dword [esp + 0x10]
not ecx
and eax, ecx
or eax, esi
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov esi, dword [esp + 0x18]
mov dword [esi], eax
push dword [ebp]
push dword [esp + 0x44]
push dword [esp + 0x1c]
push eax
call fcn.004015a0
add esp, 0x10
test eax, eax
je 0x4031fa
push 2
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4031e7
push dword [esi]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push str.TUBE:_failed_to_bind_to__s_n
push 2
push 0x4da8b8
call fcn.00407400
add esp, 0x10
mov edx, dword [esp + 0x20]
inc edi
mov ecx, 2
cmp edi, 0x64
jl 0x403140
mov eax, dword [ebp]
mov ecx, dword [esp + 0x40]
cmp dword [eax + 4], ecx
je 0x403242
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x403221
push dword [esp + 0x5c]
push str.Failed_to_bind_ports
call eax
add esp, 8
jmp 0x4033b3
push 0
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4033b3
push str.Failed_to_bind_ports
jmp 0x4033a4
push ecx
push dword [esp + 0x18]
push dword [ebx]
call fcn.00405640
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
push 0
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x40328d
push str.TUBE:_internal_error__incorrent_subnet_value_n
push 0
push 0x4da8b8
call fcn.00407400
add esp, 0xc
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4032a8
push dword [esp + 0x5c]
push str.Failed_to_select_localhost_ip
call esi
add esp, 8
jmp 0x4033b3
push 0
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4033b3
push str.Failed_to_select_localhost_ip
jmp 0x4033a4
push edi
push str.127.0.0.1
call fcn.00405c20
add esp, 8
test eax, eax
jne 0x4032f2
push 0x4e3
push str..._tech1utils_tube_tube_utils.c
push str.result___0
call fcn.00407dc0
add esp, 0xc
push 3
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x403319
push str.TUBE:_going_to_remap_ports_n
push 3
push 0x4da8b8
call fcn.00407400
add esp, 0xc
mov edi, dword [esp + 0x40]
test edi, edi
je 0x40333d
mov esi, edi
push 1
push 0x4dacf0
push dword [ebx]
call fcn.00405640
add esp, 0xc
sub esi, 1
jne 0x403323
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx]
cmp dword [eax + 4], edi
je 0x40335d
push 0x4eb
push str..._tech1utils_tube_tube_utils.c
push str._ports_remap___elnum__ports_size
call fcn.00407dc0
mov eax, dword [ebx]
add esp, 0xc
push dword [ebp]
push dword [eax + 4]
push dword [eax]
mov eax, dword [esp + 0x24]
push dword [eax]
call fcn.004015a0
add esp, 0x10
cmp eax, 1
jne 0x4033da
test esi, esi
je 0x40338c
push dword [esp + 0x5c]
push str.Failed_to_remap_ports
call esi
add esp, 8
jmp 0x4033b3
push 0
push 0x4da8b8
call fcn.004073a0
add esp, 8
test eax, eax
je 0x4033b3
push str.Failed_to_remap_ports
push 0
push 0x4da8b8
call fcn.00407400
add esp, 0xc
push ebp
call fcn.00405490
push ebx
call fcn.00405490
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret
mov eax, dword [ebp]
cmp dword [eax + 4], edi
je 0x4033f9
push 0x4f3
push str..._tech1utils_tube_tube_utils.c
push str._fds_bound___elnum__ports_size
call fcn.00407dc0
add esp, 0xc
mov eax, dword [ebx]
xor esi, esi
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test edi, edi
je 0x403445
mov ebx, dword [sym.imp.WSOCK32.dll_getsockname]
nop dword [eax]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp]
mov eax, dword [eax]
push dword [eax + esi*4]
call ebx
push dword [esp + 0x26]
call dword [sym.imp.WSOCK32.dll_ntohs]
mov ecx, dword [esp + 0x14]
movzx eax, ax
mov dword [ecx + esi*4], eax
inc esi
cmp esi, edi
jb 0x403410
mov ecx, dword [esp + 0x34]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c75e8
add esp, 0x28
ret