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

Disassembly:
sub esp, 0x218
push ebx
push ebp
mov ebp, dword [esp + 0x224]
push esi
xor ebx, ebx
push edi
mov edi, dword [ebp]
mov dword [esp + 0x18], ebx
movzx eax, word [edi + 0x5e8]
mov esi, dword [edi + 0x94c]
mov ecx, dword [edi + 0x5ec]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ecx
test esi, esi
jne 0x1002e233
test ax, ax
je 0x1002e5bb
push 0x80
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.1005b850
add esp, 0xc
test esi, esi
je 0x1002e49a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e253
sub ecx, edx
mov edx, 0xff
cmp ecx, edx
jae 0x1002e49a
mov al, byte [0x1009ab14]
push edx
mov byte [esp + 0xac], al
lea eax, [esp + 0xad]
push ebx
push eax
call fcn.1005b850
mov edx, dword [0x1008e538]
mov ecx, edx
mov dword [esp + 0x2c], ebx
add esp, 0xc
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e296
sub ecx, ebx
push ecx
push esi
push edx
call fcn.1005bea0
add esp, 0xc
push 2
pop ebx
test eax, eax
jne 0x1002e335
mov ecx, dword [0x1008e538]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e2be
sub ecx, edx
add esi, ecx
mov dword [esp + 0x20], 1
push 0x100
lea eax, [esp + 0xac]
push eax
push esi
push dword [ebp + 0x8c]
push dword [esp + 0x248]
push dword [esp + 0x248]
call fcn.10008640
add esp, 0x18
sub eax, 0
je 0x1002e478
dec eax
je 0x1002e470
dec eax
jne 0x1002e456
push dword [esp + 0x234]
lea eax, [esp + 0xac]
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.10029490
add esp, 0x14
jmp 0x1002e411
mov edx, dword [str.host_]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [esp + 0x1c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e344
sub ecx, dword [esp + 0x1c]
push ecx
push esi
push edx
call fcn.1005bea0
add esp, 0xc
test eax, eax
jne 0x1002e2d1
mov ecx, dword [str.host_]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002e36b
sub ecx, edx
add esi, ecx
mov eax, dword [ebp + 0x2c0]
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x234], ebx
jne 0x1002e393
mov dword [ebp + 0x2c0], 1
lea eax, [esp + 0x18]
push eax
push 0
push esi
push ebp
call fcn.1002ca2b
add esp, 0x10
cmp eax, 1
jne 0x1002e3b6
lea eax, [esp + 0x18]
push eax
push ebp
call fcn.1002212b
pop ecx
pop ecx
mov eax, dword [esp + 0x1c]
mov dword [ebp + 0x2c0], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1002e461
push 0x100
lea ecx, [esp + 0xac]
push ecx
push dword [eax]
call fcn.1002ca03
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [esp + 0xb8]
push eax
push dword [esp + 0x248]
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.10029490
push dword [esp + 0x3c]
push edi
call fcn.1002cc2a
add esp, 0x2c
cmp dword [esp + 0x234], ebx
jne 0x1002e4ac
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xac]
push eax
push ebx
call fcn.1002f7fb
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jle 0x1002e4b0
push esi
mov word [esp + 0x2c], bx
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
mov word [esp + 0x2e], ax
pop eax
mov dword [esp + 0x10], eax
jmp 0x1002e4b4
cmp dword [esp + 0x20], 0
je 0x1002e376
and dword [edi + 0xf4c], 0xfffffff7
push esi
push str.Couldnt_bind_to__s
jmp 0x1002e489
xor eax, eax
inc eax
jmp 0x1002e5bd
cmp dword [esp + 0x20], 0
je 0x1002e376
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.100293e3
add esp, 0xc
push 0x2d
pop eax
jmp 0x1002e5bd
mov esi, dword [esp + 0x14]
push 2
pop ebx
cmp dword [esp + 0x234], ebx
jne 0x1002e4b0
jmp 0x1002e43c
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push eax
jmp 0x1002e4f2
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x1002e574
movzx eax, si
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.10029490
add esp, 0xc
inc esi
cmp word [esp + 0x28], bx
jne 0x1002e4ee
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
push dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x238]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x1002e4b7
mov ebx, 0x80
push ebx
lea eax, [esp + 0x1ac]
push 0
push eax
mov dword [esp + 0x28], ebx
call fcn.1005b850
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1ac]
push eax
push dword [esp + 0x238]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1002e59f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0xac]
push eax
push esi
mov dword [edi + 0xcac], esi
call fcn.1004de15
push eax
push esi
push 0x1008e5ec
push edi
call fcn.100293e3
add esp, 0x1c
jmp 0x1002e492
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov ebx, 0x80
push ebx
lea eax, [esp + 0x1ac]
push eax
push esi
mov dword [edi + 0xcac], esi
call fcn.1004de15
push eax
push esi
push str.bind_failed_with_errno__d:__s
jmp 0x1002e566
movzx eax, si
push eax
push str.Local_port:__hu_n
push edi
call fcn.10029490
add esp, 0xc
or dword [ebp + 0x294], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x218
ret