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

Disassembly:
sub esp, 0x298
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x294], eax
mov eax, dword [esp + 0x29c]
push ebx
push ebp
mov ebp, dword [eax]
xor ebx, ebx
push esi
mov dword [esp + 0x10], ebx
mov esi, dword [ebp + 0x9dc]
push edi
movzx edi, word [ebp + 0x5f8]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x5fc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
cmp esi, ebx
jne 0x10080b67
cmp di, bx
je 0x10080f99
push 0x80
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.100b52f0
add esp, 0xc
cmp esi, ebx
je 0x10080f24
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10080b87
sub eax, edx
cmp eax, 0xff
jae 0x10080f24
push 0xff
lea edx, [esp + 0xa9]
push ebx
push edx
mov byte [esp + 0xb0], bl
call fcn.100b52f0
mov edx, dword [0x10218230]
mov eax, edx
add esp, 0xc
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10080bc3
sub eax, edi
push eax
push esi
push edx
call fcn.100b6057
add esp, 0xc
test eax, eax
jne 0x10080c4c
mov eax, dword [0x10218230]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10080be3
sub eax, edx
add esi, eax
mov ebx, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x2f4]
mov edi, dword [esp + 0x2b4]
push 0x100
lea eax, [esp + 0xa8]
push eax
mov eax, dword [esp + 0x2c0]
push esi
push edx
push eax
push edi
call fcn.10146710
add esp, 0x18
sub eax, 0
je 0x10080c8e
dec eax
je 0x10080c84
dec eax
jne 0x10080ca6
push edi
lea ecx, [esp + 0xa8]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebp
call fcn.1007fb40
add esp, 0x14
jmp 0x10080d79
mov edx, dword [str.host_]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10080c57
sub eax, edi
push eax
push esi
push edx
call fcn.100b6057
add esp, 0xc
test eax, eax
jne 0x10080bf3
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10080c77
sub eax, edx
add esi, eax
jmp 0x10080cae
mov eax, 1
jmp 0x10080fd3
test ebx, ebx
je 0x10080cae
push esi
push str.Couldnt_bind_to_interface__s
push ebp
call fcn.1007fc80
add esp, 0xc
jmp 0x10080fce
test ebx, ebx
jne 0x10080f06
mov eax, dword [esp + 0x2b4]
mov edx, dword [esp + 0x10]
mov edi, dword [edx + 0x5e8]
cmp eax, 2
jne 0x10080cd2
mov ebx, edx
mov dword [ebx + 0x5e8], 1
jmp 0x10080ce9
cmp eax, 0x17
jne 0x10080ce7
mov eax, edx
mov dword [eax + 0x5e8], 2
mov ebx, eax
jmp 0x10080ce9
mov ebx, edx
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push esi
push ebx
call fcn.1009a280
add esp, 0x14
cmp eax, 1
jne 0x10080d0f
lea edx, [esp + 0x14]
push edx
push ebx
call fcn.1007dd40
add esp, 8
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x5e8], edi
test eax, eax
je 0x10080f06
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xa8]
push ecx
push edx
call fcn.10099c30
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov edi, dword [esp + 0x2c0]
push edx
lea eax, [esp + 0xb4]
push eax
push edi
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebp
call fcn.1007fb40
mov ecx, dword [esp + 0x38]
push ecx
push ebp
call fcn.1009a4f0
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
add esp, 0x2c
cmp edi, dword [eax + 4]
jne 0x10080c84
cmp edi, 0x17
jne 0x10080ebb
lea ecx, [esp + 0xa4]
push 0x25
push ecx
call fcn.100b3c90
mov esi, eax
add esp, 8
test esi, esi
je 0x10080d9e
mov byte [esi], 0
inc esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xa8]
push eax
push 0x17
call fcn.100a2c10
add esp, 0xc
test eax, eax
jle 0x10080de4
mov edx, dword [esp + 0x1c]
mov ecx, 0x17
push edx
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
test esi, esi
je 0x10080de4
push esi
call fcn.100b3d64
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], 0x1c
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2b0]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10080e53
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x10080f9d
movzx edx, di
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebp
call fcn.1007fb40
add esp, 0xc
inc edi
push edi
call ebx
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10080e12
push 0x80
lea edx, [esp + 0xa8]
push 0
push edx
mov dword [esp + 0x2c], 0x80
call fcn.100b52f0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xa8]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x10080f79
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1a8]
mov esi, eax
push edx
push esi
mov dword [ebp + 0xeac], esi
call fcn.100a70a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10080fc5
cmp edi, 2
jne 0x10080dec
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xa8]
push ecx
push edi
call fcn.100a2c10
add esp, 0xc
test eax, eax
jle 0x10080dec
mov eax, dword [esp + 0x1c]
mov edx, edi
push eax
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x10
jmp 0x10080dec
push esi
push str.Couldnt_bind_to__s
push ebp
mov dword [ebp + 0x1218], 0
call fcn.1007fc80
add esp, 0xc
jmp 0x10080fce
mov eax, dword [esp + 0x2b4]
cmp eax, 0x17
jne 0x10080f50
mov ecx, eax
push edi
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x1c
jmp 0x10080df0
cmp eax, 2
jne 0x10080df0
mov edx, eax
push edi
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
mov dword [esp + 0x18], 0x10
jmp 0x10080df0
movzx eax, di
push eax
push str.Local_port:__hu_n
push ebp
call fcn.1007fb40
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ecx + 0x588], 1
xor eax, eax
jmp 0x10080fd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1a8]
mov esi, eax
push edx
push esi
mov dword [ebp + 0xeac], esi
call fcn.100a70a0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebp
call fcn.1007fc80
add esp, 0x1c
mov eax, 0x2d
mov ecx, dword [esp + 0x2a4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100b197c
add esp, 0x298
ret