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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
push ebx
mov ebx, dword [eax]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
mov esi, dword [ebx + 0x3a4]
push edi
movzx edi, word [ebx + 0x180]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x184]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
cmp esi, ebp
jne 0x1001eed7
cmp di, bp
je 0x1001f2fa
push 0x80
lea ecx, [esp + 0x2c]
push ebp
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x1001f287
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001eef7
sub eax, edx
cmp eax, 0xff
jae 0x1001f287
push 0xff
lea edx, [esp + 0xad]
push ebp
push edx
mov byte [esp + 0xb4], cl
call sub.MSVCR90.dll_memset
mov edx, dword [0x1004404c]
mov eax, edx
add esp, 0xc
mov dword [esp + 0x20], ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ef37
sub eax, edi
mov edi, dword [sym.imp.MSVCR90.dll_strncmp]
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x1001ef72
mov eax, dword [0x1004404c]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ef60
sub eax, edx
add esi, eax
mov edi, 1
jmp 0x1001efbb
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001ef80
sub eax, ebp
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x1001efb7
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001efa0
mov ebp, dword [esp + 0x1b8]
sub eax, edx
add esi, eax
jmp 0x1001f042
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x88]
mov ebp, dword [esp + 0x1b8]
push 0x100
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x1c4]
push esi
push edx
push eax
push ebp
call fcn.10035f30
add esp, 0x18
sub eax, 0
je 0x1001f022
sub eax, 1
je 0x1001f018
sub eax, 1
jne 0x1001f03a
push ebp
lea ecx, [esp + 0xac]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.1000a240
add esp, 0x14
jmp 0x1001f0ec
mov eax, 1
jmp 0x1001f32c
test edi, edi
je 0x1001f042
push esi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.1000a2d0
add esp, 0xc
jmp 0x1001f327
test edi, edi
jne 0x1001f273
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x2cc]
cmp ebp, 2
jne 0x1001f05d
mov dword [eax + 0x2cc], 1
jmp 0x1001f06c
cmp ebp, 0x17
jne 0x1001f06c
mov dword [eax + 0x2cc], 2
lea edx, [esp + 0x1c]
push edx
push 0
push esi
push eax
call fcn.10002080
add esp, 0x10
cmp eax, 1
jne 0x1001f094
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.10030f90
add esp, 8
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x2cc], edi
test eax, eax
je 0x1001f273
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.10001d70
mov eax, dword [esp + 0x28]
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 ebx
call fcn.1000a240
mov ecx, dword [esp + 0x40]
push ecx
push ebx
call fcn.10002230
add esp, 0x2c
cmp ebp, 0x17
jne 0x1001f228
lea edx, [esp + 0xa8]
push 0x25
push edx
call dword [sym.imp.MSVCR90.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x1001f112
mov byte [esi], 0
inc esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xac]
push ecx
push 0x17
call fcn.10023b30
add esp, 0xc
test eax, eax
jle 0x1001f159
mov eax, dword [esp + 0x18]
mov edx, 0x17
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x1001f159
push esi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1b4]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x1001f1c8
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x1001f2fe
movzx eax, di
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.1000a240
add esp, 0xc
inc edi
push edi
call ebp
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x1001f187
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x2c], 0x80
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xac]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x1001f2da
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [ebx + 0x860c], esi
call fcn.10024630
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1001f31e
cmp ebp, 2
jne 0x1001f161
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xac]
push edx
push ebp
call fcn.10023b30
add esp, 0xc
test eax, eax
jle 0x1001f161
mov ecx, dword [esp + 0x18]
mov eax, ebp
push ecx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x1001f161
push esi
push str.Couldnt_bind_to__s
push ebx
call fcn.1000a2d0
add esp, 0xc
jmp 0x1001f327
mov eax, dword [esp + 0x1b8]
cmp eax, 0x17
jne 0x1001f2b3
mov edx, eax
push edi
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
jmp 0x1001f165
cmp eax, 2
jne 0x1001f165
push edi
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x1001f165
movzx ecx, di
push ecx
push str.Local_port:__hu_n
push ebx
call fcn.1000a240
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + 0x2ac], 1
xor eax, eax
jmp 0x1001f32c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [ebx + 0x860c], esi
call fcn.10024630
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.1000a2d0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100377f0
add esp, 0x19c
ret