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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x498d74]
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.004424b0
add esp, 0xc
test edi, edi
jne 0x430a12
cmp word [ebp - 0x208], di
jne 0x430a12
xor eax, eax
jmp 0x430cad
push 0x80
lea eax, [ebp - 0x184]
push 0
push eax
call fcn.004424b0
add esp, 0xc
test edi, edi
je 0x430b63
push edi
call fcn.00444890
pop ecx
cmp eax, ebx
jae 0x430b63
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebp - 0x20c]
call fcn.00440cb4
add esp, 0x10
test eax, eax
je 0x430a80
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.0043052e
add esp, 0x14
jmp 0x430b28
cmp dword [ebp - 0x20c], 2
mov eax, dword [esi + 0x23c]
mov dword [ebp - 0x21c], eax
jne 0x430a9f
mov dword [esi + 0x23c], 1
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x210]
call fcn.00428c5f
add esp, 0x10
cmp eax, 1
jne 0x430ad0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x210]
call fcn.004329cc
pop ecx
pop ecx
mov eax, dword [ebp - 0x21c]
mov dword [esi + 0x23c], eax
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x430b4f
push ebx
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.00428a48
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.0043052e
push dword [ebp - 0x214]
push esi
call fcn.00428dc1
add esp, 0x2c
cmp dword [ebp - 0x20c], 2
jne 0x430b93
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.00440c8b
add esp, 0xc
test eax, eax
jle 0x430b93
jmp 0x430b6c
push edi
push str.Couldnt_bind_to__s
push esi
call fcn.00430598
add esp, 0xc
jmp 0x430caa
cmp dword [ebp - 0x20c], 2
jne 0x430b93
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 0x430be7
dec dword [ebp - 0x220]
cmp dword [ebp - 0x220], 0
jle 0x430c80
movzx eax, word [ebp - 0x208]
push eax
push str.Bind_to_local_port__d_failed__trying_next_n
push esi
call fcn.0043052e
add esp, 0xc
inc dword [ebp - 0x208]
cmp word [ebp - 0x184], 2
jne 0x430be7
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 0x430b9b
mov eax, 0x80
push eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.004424b0
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 0x430c58
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push dword [ebp - 0x210]
mov dword [esi + 0x8494], edi
call fcn.00440a93
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x430ca1
movzx eax, word [ebp - 0x208]
push eax
push str.Local_port:__d_n
push esi
call fcn.0043052e
mov eax, dword [ebp - 0x210]
add esp, 0xc
mov byte [eax + 0x13f], 1
jmp 0x430a0b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push dword [ebp - 0x210]
mov dword [esi + 0x8494], edi
call fcn.00440a93
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.00430598
add esp, 0x18
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044249e
leave
ret