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

Disassembly:
sub esp, 0x210
mov eax, dword [esp + 0x214]
push ebx
push ebp
push esi
mov esi, dword [eax]
mov al, byte [0x4350f8]
xor edx, edx
push edi
mov dword [esp + 0x10], edx
mov ecx, dword [esi + 0x124]
mov bx, word [esi + 0x120]
mov ebp, dword [esi + 0x2a4]
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xa0], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xa1]
cmp ebp, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
jne 0x413c49
cmp bx, dx
jne 0x413c49
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
cmp ebp, edx
rep stosd dword es:[edi], eax
je 0x413d92
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
jae 0x413d92
mov edi, dword [esp + 0x22c]
lea ecx, [esp + 0xa0]
push 0x100
push ecx
push ebp
push edi
call fcn.00426d40
add esp, 0x10
test eax, eax
je 0x413cb3
lea edx, [esp + 0xa0]
push edi
push edx
push ebp
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push esi
call fcn.00412fe0
add esp, 0x14
jmp 0x413d52
mov eax, dword [esi + 0x22c]
cmp edi, 2
mov dword [esp + 0x18], eax
jne 0x413ccc
mov dword [esi + 0x22c], 1
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x10]
push ecx
push 0
push ebp
push edx
call fcn.0040a150
add esp, 0x10
cmp eax, 1
jne 0x413cfe
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.00415a40
add esp, 8
mov edx, dword [esp + 0x18]
mov dword [esi + 0x22c], edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x413d73
mov edx, dword [eax]
lea ecx, [esp + 0xa0]
push 0x100
push ecx
push edx
call fcn.00409f80
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [esp + 0xac]
mov edx, dword [ecx + 4]
push edx
push eax
push edi
push ebp
push str.Name__s_family__i_resolved_to__s_family__i_n
push esi
call fcn.00412fe0
mov ecx, dword [esp + 0x34]
push ecx
push esi
call fcn.0040a3a0
add esp, 0x2c
cmp edi, 2
jne 0x413db7
lea edx, [esp + 0x24]
lea eax, [esp + 0xa0]
push edx
push eax
push edi
call fcn.00426c50
add esp, 0xc
test eax, eax
jle 0x413db7
jmp 0x413d9c
push ebp
push str.Couldnt_bind_to__s
push esi
call fcn.00413050
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp dword [esp + 0x22c], 2
jne 0x413db7
push ebx
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov dword [esp + 0x14], 0x10
mov ecx, dword [esp + 0x14]
mov ebp, dword [esp + 0x228]
mov edi, dword [sym.imp.WS2_32.dll_bind]
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
call edi
test eax, eax
jge 0x413e22
mov eax, dword [esp + 0x1c]
dec eax
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x413ea7
mov eax, ebx
and eax, 0xffff
push eax
push str.Bind_to_local_port__d_failed__trying_next_n
push esi
call fcn.00412fe0
add esp, 0xc
inc ebx
cmp word [esp + 0x20], 2
jne 0x413e11
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x22], ax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x20]
push ecx
push edx
push ebp
call edi
test eax, eax
jl 0x413dd5
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1a0]
mov dword [esp + 0x18], 0x80
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1a0]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x413e77
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x224]
mov edi, eax
push edi
push edx
mov dword [esi + 0x8484], edi
call fcn.00426750
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x413eca
and ebx, 0xffff
push ebx
push str.Local_port:__d_n
push esi
call fcn.00412fe0
mov eax, dword [esp + 0x230]
add esp, 0xc
pop edi
pop esi
mov byte [eax + 0x13f], 1
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x224]
mov edi, eax
push edi
push ecx
mov dword [esi + 0x8484], edi
call fcn.00426750
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.00413050
add esp, 0x18
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret