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

Disassembly:
sub esp, 0x2a0
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x29c], eax
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x1bc]
push ebx
movzx ebx, word [edi + 0x1b8]
push ebp
xor ebp, ebp
push esi
mov esi, dword [edi + 0x59c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ecx
cmp esi, ebp
jne 0x10184e80
cmp bx, bp
je 0x101852c7
push 0x80
lea edx, [esp + 0x2c]
push ebp
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x10185252
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10184ea0
sub eax, edx
cmp eax, 0xff
jae 0x10185252
push 0xff
lea eax, [esp + 0xad]
push ebp
push eax
mov byte [esp + 0xb4], cl
call sub.MSVCR100.dll_memset
mov edx, dword [0x10263bcc]
mov eax, edx
mov dword [esp + 0x2c], ebp
add esp, 0xc
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10184ee0
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR100.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10184f15
mov eax, dword [0x10263bcc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10184f03
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x10184f5b
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10184f20
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x10184f57
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10184f40
mov ebp, dword [esp + 0x2b4]
sub eax, edx
add esi, eax
jmp 0x10184fee
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x5c]
mov ebp, dword [esp + 0x2b4]
push 0x100
lea ecx, [esp + 0xac]
push ecx
mov ecx, dword [esp + 0x2c0]
push esi
push eax
push ecx
push ebp
call fcn.10060ef0
add esp, 0x18
sub eax, 0
je 0x10184fce
dec eax
je 0x10184fb1
dec eax
jne 0x10184fe6
push ebp
lea edx, [esp + 0xac]
push edx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.1017f0b0
add esp, 0x14
jmp 0x101850a3
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x2a0
ret
test ebx, ebx
je 0x10184fee
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.1017f190
add esp, 0xc
jmp 0x10185312
test ebx, ebx
jne 0x10185234
mov ebx, dword [esp + 0x1c]
mov al, byte [ebx + 0x108]
mov byte [esp + 0xf], al
cmp ebp, 2
jne 0x1018500a
mov byte [ebx + 0x108], 1
jmp 0x10185016
cmp ebp, 0x17
jne 0x10185016
mov byte [ebx + 0x108], 2
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push esi
push edi
call fcn.101a9900
add esp, 0x14
cmp eax, 1
jne 0x1018503c
lea edx, [esp + 0x10]
push edx
push edi
call fcn.10175460
add esp, 8
mov al, byte [esp + 0xf]
mov byte [ebx + 0x108], al
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10185234
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.101a8e30
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.1017f0b0
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.101a9ba0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp ebp, dword [eax + 4]
jne 0x10184fb1
cmp ebp, 0x17
jne 0x101851e9
lea ecx, [esp + 0xa8]
push 0x25
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x101850c9
mov byte [esi], 0
inc esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xac]
push eax
push 0x17
call fcn.101affc0
add esp, 0xc
test eax, eax
jle 0x10185110
mov edx, dword [esp + 0x18]
mov ecx, 0x17
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x10185110
push esi
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0x1c
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2b0]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x10185181
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov edi, edi
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x101852e1
movzx edx, bx
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.1017f0b0
add esp, 0xc
inc ebx
push ebx
call ebp
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
js 0x10185140
push 0x80
lea edx, [esp + 0xac]
push 0
push edx
mov dword [esp + 0x2c], 0x80
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xac]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x101852a7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [edi + 0xa70], esi
call fcn.101af230
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10185309
cmp ebp, 2
jne 0x10185118
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xac]
push ecx
push ebp
call fcn.101affc0
add esp, 0xc
test eax, eax
jle 0x10185118
mov eax, dword [esp + 0x18]
mov edx, ebp
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x10185118
push esi
push str.Couldnt_bind_to__s
push edi
mov dword [edi + 0xe20], 0
call fcn.1017f190
add esp, 0xc
jmp 0x10185312
mov eax, dword [esp + 0x2b4]
cmp eax, 0x17
jne 0x1018527e
mov ecx, eax
push ebx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
jmp 0x1018511c
cmp eax, 2
jne 0x1018511c
mov edx, eax
push ebx
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x1018511c
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.1017f0b0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [ecx + 0x2d4], 1
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x29c]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x2a0
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [edi + 0xa70], esi
call fcn.101af230
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.1017f190
add esp, 0x1c
mov ecx, dword [esp + 0x2a8]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x2d
call fcn.101ce9e2
add esp, 0x2a0
ret