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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x10093034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x29c], edx
push esi
push edi
mov dword [ebp - 0x298], 0
mov eax, dword [ebx + 0xc]
mov edi, dword [ebx + 0x520]
movzx esi, word [ebx + 0x188]
mov dword [ebp - 0x2a0], eax
mov eax, dword [ebx + 0x18c]
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x294], eax
test edi, edi
jne 0x1000b321
test si, si
je 0x1000b699
push 0x80
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.100520d0
add esp, 0xc
test edi, edi
je 0x1000b521
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b344
sub ecx, edx
cmp ecx, 0xff
jae 0x1000b521
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.100520d0
add esp, 0xc
mov byte [ebp - 0x289], 0
push 3
push edi
push 0x1008adc8
call fcn.1005a640
add esp, 0xc
test eax, eax
jne 0x1000b394
add edi, 3
mov cl, 1
jmp 0x1000b460
push 5
push edi
push str.host_
call fcn.1005a640
add esp, 0xc
test eax, eax
jne 0x1000b45a
add edi, 5
cmp dword [ebp + 8], 2
mov ecx, dword [ebp - 0x2a0]
mov al, byte [ecx + 0xfc]
mov byte [ebp - 0x289], al
jne 0x1000b3ce
mov byte [ecx + 0xfc], 1
lea eax, [ebp - 0x290]
mov edx, edi
push eax
push 0
push 0
mov ecx, ebx
call fcn.100217d0
add esp, 0xc
cmp eax, 1
jne 0x1000b3f7
lea edx, [ebp - 0x290]
mov ecx, ebx
call fcn.10013dd0
cmp dword [ebp - 0x290], 0
mov ecx, dword [ebp - 0x2a0]
mov al, byte [ebp - 0x289]
mov byte [ecx + 0xfc], al
je 0x1000b482
mov edi, dword [ebp - 0x290]
lea edx, [ebp - 0x108]
push 0x100
mov ecx, dword [edi]
call fcn.100211a0
add esp, 4
mov edx, edi
mov ecx, ebx
call fcn.10021a10
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 4]
je 0x1000b4db
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov cl, byte [ebp - 0x289]
sub esp, 8
call fcn.10027740
add esp, 8
sub eax, 0
je 0x1000b4ae
sub eax, 1
je 0x1000b444
sub eax, 1
je 0x1000b4db
test cl, cl
je 0x1000b3af
push edi
push str.Couldnt_bind_to__s
push ebx
mov byte [ebx + 0xca7], 0
call fcn.1000a7d0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
test cl, cl
je 0x1000b3af
push edi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.1000a7d0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 2
jne 0x1000b54e
lea eax, [ebp - 0x284]
push eax
lea edx, [ebp - 0x108]
call fcn.10027670
add esp, 4
test eax, eax
jle 0x1000b54e
mov eax, 2
push esi
mov word [ebp - 0x288], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x286], ax
mov eax, 0x10
mov dword [ebp - 0x298], eax
jmp 0x1000b550
cmp dword [ebp + 8], 2
jne 0x1000b54e
mov eax, 2
push esi
mov word [ebp - 0x288], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x286], ax
mov eax, 0x10
mov dword [ebp - 0x298], eax
jmp 0x1000b550
xor eax, eax
mov edi, dword [sym.imp.WS2_32.dll_bind]
push eax
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x29c]
call edi
test eax, eax
jns 0x1000b5c0
nop word [eax + eax]
mov eax, dword [ebp - 0x294]
dec eax
mov dword [ebp - 0x294], eax
test eax, eax
jle 0x1000b647
inc esi
test si, si
je 0x1000b647
cmp word [ebp - 0x288], 2
jne 0x1000b5a7
push esi
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x286], ax
push dword [ebp - 0x298]
lea eax, [ebp - 0x288]
push eax
push dword [ebp - 0x29c]
call edi
test eax, eax
js 0x1000b570
push 0x80
lea eax, [ebp - 0x88]
mov dword [ebp - 0x294], 0x80
push 0
push eax
call fcn.100520d0
add esp, 0xc
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x88]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1000b68c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x208]
push ecx
mov ecx, esi
mov dword [ebx + 0x900], esi
call fcn.10027160
add esp, 4
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.1000a7d0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x108]
push ecx
mov ecx, esi
mov dword [ebx + 0x900], esi
call fcn.10027160
add esp, 4
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.1000a7d0
add esp, 0x10
mov eax, 0x2d
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2a0]
mov byte [eax + 0x26b], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret