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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x49b854]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov dword [ebp - 0x210], eax
xor eax, eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], ecx
movzx ecx, word [esi + 0x128]
push edi
mov edi, dword [esi + 0x2b4]
mov ebx, 0xff
mov dword [ebp - 0x208], ecx
mov ecx, dword [esi + 0x12c]
push ebx
push eax
mov dword [ebp - 0x218], eax
mov byte [ebp - 0x104], al
lea eax, [ebp - 0x103]
push eax
mov dword [ebp - 0x220], ecx
call fcn.0045c380
add esp, 0xc
test edi, edi
jne 0x44a98d
cmp word [ebp - 0x208], di
jne 0x44a98d
xor eax, eax
jmp 0x44ac28
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.0045c380
add esp, 0xc
test edi, edi
je 0x44aade
push edi
call fcn.0045f220
pop ecx
cmp eax, ebx
jae 0x44aade
mov ebx, pe_nt_image_headers32
push ebx
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebp - 0x20c]
call fcn.00438104
add esp, 0x10
test eax, eax
je 0x44a9fb
push dword [ebp - 0x20c]
lea eax, [ebp - 0x104]
push eax
push edi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push esi
call fcn.0044a4a9
add esp, 0x14
jmp 0x44aaa3
cmp dword [ebp - 0x20c], 2
mov eax, dword [esi + 0x23c]
mov dword [ebp - 0x21c], eax
jne 0x44aa1a
mov dword [esi + 0x23c], 1
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x210]
call fcn.00442862
add esp, 0x10
cmp eax, 1
jne 0x44aa4b
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
call fcn.0044c9b0
pop ecx
pop ecx
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x23c], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x44aaca
push ebx
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.0044264b
mov eax, dword [ebp - 0x214]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x20c]
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
push esi
call fcn.0044a4a9
push dword [ebp - 0x214]
push esi
call fcn.004429c4
add esp, 0x2c
cmp dword [ebp - 0x20c], 2
jne 0x44ab0e
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.0045ac67
add esp, 0xc
test eax, eax
jle 0x44ab0e
jmp 0x44aae7
push edi
push str.Couldnt_bind_to__s
push esi
call fcn.0044a513
add esp, 0xc
jmp 0x44ac25
cmp dword [ebp - 0x20c], 2
jne 0x44ab0e
push 2
pop eax
push dword [ebp - 0x208]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x218], 0x10
mov word [ebp - 0x182], ax
mov edi, dword [sym.imp.WS2_32.dll_bind]
jmp 0x44ab62
dec dword [ebp - 0x220]
cmp dword [ebp - 0x220], 0
jle 0x44abfb
movzx eax, word [ebp - 0x208]
push eax
push str.Bind_to_local_port__d_failed__trying_next_n
push esi
call fcn.0044a4a9
add esp, 0xc
inc dword [ebp - 0x208]
cmp word [ebp - 0x184], 2
jne 0x44ab62
push dword [ebp - 0x208]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x182], ax
push dword [ebp - 0x218]
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 0xc]
call edi
test eax, eax
js 0x44ab16
mov eax, 0x80
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0045c380
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x44abd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push dword [ebp - 0x210]
mov dword [esi + 0x8494], edi
call fcn.0045aa6f
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x44ac1c
movzx eax, word [ebp - 0x208]
push eax
push str.Local_port:__d_n
push esi
call fcn.0044a4a9
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov byte [eax + 0x13f], 1
jmp 0x44a986
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push dword [ebp - 0x210]
mov dword [esi + 0x8494], edi
call fcn.0045aa6f
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.0044a513
add esp, 0x18
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bc90
leave
ret