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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x462370]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov esi, dword [ebx]
mov dword [ebp - 0x210], ecx
movzx eax, word [esi + 0x5e0]
mov edx, dword [esi + 0x5e4]
push edi
mov edi, dword [esi + 0x94c]
mov dword [ebp - 0x20c], ecx
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x218], edx
cmp edi, ecx
jne 0x412c57
cmp ax, cx
jne 0x412c57
xor eax, eax
jmp 0x41303e
push 0x80
push ecx
lea eax, [ebp - 0x184]
push eax
call fcn.0043c7f0
add esp, 0xc
test edi, edi
je 0x412ed4
push edi
call fcn.0043bce0
pop ecx
mov ecx, 0xff
cmp eax, ecx
jae 0x412ed4
push ecx
lea eax, [ebp - 0x103]
push 0
push eax
mov byte [ebp - 0x104], 0
call fcn.0043c7f0
push dword [0x462064]
and dword [ebp - 0x214], 0
call fcn.0043bce0
push eax
push edi
push dword [0x462064]
call fcn.0043b711
add esp, 0x1c
test eax, eax
jne 0x412d27
push dword [0x462064]
call fcn.0043bce0
pop ecx
add edi, eax
mov dword [ebp - 0x214], 1
push 0x100
lea eax, [ebp - 0x104]
push eax
push edi
push dword [ebx + 0x8c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040f813
xor ecx, ecx
add esp, 0x18
sub eax, ecx
je 0x412d60
dec eax
je 0x412d58
dec eax
jne 0x412d7c
push dword [ebp + 0xc]
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.0040e9e4
add esp, 0x14
jmp 0x412e4c
push dword [0x462068]
call fcn.0043bce0
push eax
push edi
push dword [0x462068]
call fcn.0043b711
add esp, 0x10
test eax, eax
jne 0x412cdc
push dword [0x462068]
call fcn.0043bce0
pop ecx
add edi, eax
xor ecx, ecx
jmp 0x412d88
xor eax, eax
inc eax
jmp 0x41303e
cmp dword [ebp - 0x214], ecx
je 0x412d88
push edi
push str.Couldnt_bind_to_interface__s
push esi
call fcn.0040ea8b
add esp, 0xc
jmp 0x41303b
cmp dword [ebp - 0x214], ecx
jne 0x412ec2
mov eax, dword [ebx + 0x2d0]
push 2
mov dword [ebp - 0x214], eax
pop eax
cmp dword [ebp + 0xc], eax
jne 0x412da8
mov dword [ebx + 0x2d0], 1
jmp 0x412db4
cmp dword [ebp + 0xc], 0x17
jne 0x412db4
mov dword [ebx + 0x2d0], eax
lea eax, [ebp - 0x210]
push eax
push ecx
push ecx
push edi
push ebx
call fcn.0042a221
add esp, 0x14
cmp eax, 1
jne 0x412ddb
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0040fbba
pop ecx
pop ecx
mov eax, dword [ebp - 0x214]
mov dword [ebx + 0x2d0], eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x412ec2
push 0x100
lea ecx, [ebp - 0x104]
push ecx
push dword [eax]
call fcn.00429866
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
push edi
push str.Name__s_family__i_resolved_to__s_family__i_n
push esi
call fcn.0040e9e4
push dword [ebp - 0x210]
push esi
call fcn.0042a3d5
mov eax, dword [ebp - 0x210]
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
add esp, 0x2c
cmp ecx, dword [eax + 4]
jne 0x412d58
cmp dword [ebp + 0xc], 0x17
jne 0x412e9a
lea eax, [ebp - 0x17c]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x17
call fcn.0043061b
add esp, 0xc
test eax, eax
jle 0x412e8b
push 0x17
pop eax
push dword [ebp - 0x208]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x182], ax
mov dword [ebp - 0x20c], 0x1c
jmp 0x412f29
cmp dword [ebp + 0xc], 2
jne 0x412f29
lea eax, [ebp - 0x180]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
call fcn.0043061b
add esp, 0xc
test eax, eax
jle 0x412f29
jmp 0x412f02
and dword [esi + 0xf74], 0xfffffff7
push edi
push str.Couldnt_bind_to__s
jmp 0x412d6e
cmp dword [ebp + 0xc], 0x17
jne 0x412efc
push 0x17
pop eax
push dword [ebp - 0x208]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x20c], 0x1c
jmp 0x412f22
cmp dword [ebp + 0xc], 2
jne 0x412f29
push 2
pop eax
push dword [ebp - 0x208]
mov word [ebp - 0x184], ax
call dword [sym.imp.WS2_32.dll_htons]
mov dword [ebp - 0x20c], 0x10
mov word [ebp - 0x182], ax
mov edi, dword [sym.imp.WS2_32.dll_bind]
jmp 0x412f73
dec dword [ebp - 0x218]
cmp dword [ebp - 0x218], 0
jle 0x41300b
movzx eax, word [ebp - 0x208]
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push esi
call fcn.0040e9e4
add esp, 0xc
inc dword [ebp - 0x208]
push dword [ebp - 0x208]
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [ebp - 0x182], ax
push dword [ebp - 0x20c]
lea eax, [ebp - 0x184]
push eax
push dword [ebp + 8]
call edi
test eax, eax
js 0x412f31
mov edi, 0x80
push edi
lea eax, [ebp - 0x204]
push 0
push eax
mov dword [ebp - 0x218], edi
call fcn.0043c7f0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x412fe6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
push edi
lea eax, [ebp - 0x84]
push eax
push ebx
mov dword [esi + 0xcac], ebx
call fcn.00431c8d
push eax
push ebx
push str.getsockname___failed_with_errno__d:__s
jmp 0x413032
movzx eax, word [ebp - 0x208]
push eax
push str.Local_port:__hu_n
push esi
call fcn.0040e9e4
add esp, 0xc
or dword [ebx + 0x2a4], 0x1000000
jmp 0x412c50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [esi + 0xcac], edi
call fcn.00431c8d
push eax
push edi
push str.bind_failed_with_errno__d:__s
push esi
call fcn.0040ea8b
add esp, 0x1c
push 0x2d
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c86a
leave
ret