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

Disassembly:
sub esp, 0x19c
mov eax, dword [0x54a020]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [eax]
mov dword [esp + 0x14], ebx
movzx ebp, word [edi + 0x180]
mov esi, dword [edi + 0x3b0]
cmp esi, ebx
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x184]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], eax
jne 0x441e97
cmp bp, bx
je 0x4421ef
push 0x80
lea ecx, [esp + 0x2c]
push ebx
push ecx
call sub.MSVCR80.dll_memset
add esp, 0xc
cmp esi, ebx
je 0x4421a1
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441eb7
sub eax, edx
cmp eax, 0xff
jae 0x4421a1
push 0xff
lea edx, [esp + 0xad]
push ebx
push edx
mov byte [esp + 0xb4], bl
call sub.MSVCR80.dll_memset
mov edx, dword [0x54a12c]
mov eax, edx
add esp, 0xc
mov dword [esp + 0x20], ebx
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441f00
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR80.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x441f39
mov eax, dword [0x54a12c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441f25
sub eax, edx
add esi, eax
mov ebp, 1
jmp 0x441f80
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441f44
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x441f7c
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x441f63
mov ebx, dword [esp + 0x1b8]
sub eax, edx
add esi, eax
jmp 0x442007
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x88]
mov ebx, dword [esp + 0x1b8]
push pe_nt_image_headers32
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x1c4]
push esi
push edx
push eax
push ebx
call fcn.00461110
add esp, 0x18
sub eax, 0
je 0x441fe7
sub eax, 1
je 0x441fdd
sub eax, 1
jne 0x441fff
push ebx
lea ecx, [esp + 0xac]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.0043fa20
add esp, 0x14
jmp 0x442089
mov eax, 1
jmp 0x442221
test ebp, ebp
je 0x442007
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0043fab0
add esp, 0xc
jmp 0x44221c
test ebp, ebp
jne 0x442190
cmp ebx, 2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x2c0]
jne 0x442020
mov dword [eax + 0x2c0], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
call fcn.00435980
mov eax, dword [esp + 0x20]
mov dword [eax + 0x2c0], ebp
mov eax, dword [esp + 0x24]
add esp, 0x10
test eax, eax
je 0x442190
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.00435670
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push ebx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.0043fa20
mov ecx, dword [esp + 0x38]
push ecx
push edi
call fcn.00435e40
add esp, 0x2c
cmp ebx, 2
jne 0x4420c5
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xac]
push eax
push ebx
call fcn.00461ce0
add esp, 0xc
test eax, eax
jle 0x4420c5
mov ecx, dword [esp + 0x1c]
push ecx
mov word [esp + 0x2c], bx
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x1b4]
mov ebx, dword [sym.imp.WSOCK32.dll_bind]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
test eax, eax
jge 0x442134
mov eax, dword [esp + 0x24]
sub eax, 1
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4421f3
movzx ecx, bp
push ecx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.0043fa20
add esp, 0xc
add ebp, 1
cmp word [esp + 0x28], 2
jne 0x442123
push ebp
call dword [sym.imp.WSOCK32.dll_ntohs]
mov word [esp + 0x2a], ax
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call ebx
test eax, eax
jl 0x4420e7
push 0x80
lea ecx, [esp + 0xac]
push 0
push ecx
mov dword [esp + 0x2c], 0x80
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xac]
push eax
push esi
call dword [sym.imp.WSOCK32.dll_getsockname]
test eax, eax
jge 0x4421cf
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x8630], esi
call fcn.004335e0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x442213
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.0043fab0
add esp, 0xc
jmp 0x44221c
cmp dword [esp + 0x1b8], 2
jne 0x4420c9
push ebp
mov word [esp + 0x2c], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
jmp 0x4420c9
movzx edx, bp
push edx
push str.Local_port:__hu_n
push edi
call fcn.0043fa20
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x290], 1
xor eax, eax
jmp 0x442221
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x8630], esi
call fcn.004335e0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.0043fab0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042b7d2
add esp, 0x19c
ret