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

Disassembly:
sub esp, 0x21c
mov eax, dword [0x520d08]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
mov ebp, dword [esp + 0x228]
push esi
xor eax, eax
push edi
mov edi, dword [ebp]
mov dword [esp + 0x10], eax
movzx ebx, word [edi + 0x178]
mov ecx, dword [edi + 0x17c]
mov esi, dword [edi + 0x38c]
push 0xff
push eax
lea edx, [esp + 0x131]
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov byte [esp + 0x134], al
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
test esi, esi
jne 0x417ddd
test bx, bx
je 0x418112
push 0x80
lea eax, [esp + 0x2c]
push 0
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
je 0x4180c5
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e00
sub eax, edx
cmp eax, 0xff
jae 0x4180c5
mov edx, dword [0x51d014]
mov eax, edx
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e20
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR90.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x417e55
mov eax, dword [0x51d014]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e43
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x417e9b
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e60
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x417e97
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417e80
mov ebp, dword [esp + 0x238]
sub eax, edx
add esi, eax
jmp 0x417f17
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x70]
mov ebp, dword [esp + 0x238]
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push esi
push eax
push ebp
call fcn.0040bd30
add esp, 0x14
sub eax, 0
je 0x417ef7
sub eax, 1
je 0x417eed
sub eax, 1
jne 0x417f0f
push ebp
lea ecx, [esp + 0x12c]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.00415d60
add esp, 0x14
jmp 0x417fb0
mov eax, 1
jmp 0x418140
test ebx, ebx
je 0x417f17
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.00415df0
add esp, 0xc
jmp 0x41813b
test ebx, ebx
jne 0x4180b4
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x240]
mov dword [esp + 0x14], edx
cmp ebp, 2
jne 0x417f34
mov dword [ebx + 0x240], 1
lea eax, [esp + 0x10]
push eax
push 0
push esi
push ebx
call fcn.0040caa0
add esp, 0x10
cmp eax, 1
jne 0x417f58
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0040bbc0
add esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x240], edx
test eax, eax
je 0x4180b4
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x12c]
push ecx
push edx
call fcn.0040c810
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0x138]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.00415d60
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.0040cc90
add esp, 0x2c
cmp ebp, 2
jne 0x417fee
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x12c]
push eax
push ebp
call fcn.0041b360
add esp, 0xc
test eax, eax
jle 0x417fee
mov edx, dword [esp + 0x20]
mov ecx, ebp
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x41805f
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x418116
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.00415d60
add esp, 0xc
inc ebx
cmp word [esp + 0x28], 2
jne 0x41804a
push ebx
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x2a], ax
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x418012
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x20], 0x80
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xac]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x4180f6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
mov dword [edi + 0x85cc], esi
call fcn.0041b1c0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x418132
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.00415df0
add esp, 0xc
jmp 0x41813b
cmp dword [esp + 0x238], 2
jne 0x417ff6
mov eax, 2
push ebx
mov word [esp + 0x2c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
jmp 0x417ff6
movzx eax, bx
push eax
push str.Local_port:__hu_n
push edi
call fcn.00415d60
add esp, 0xc
mov dword [ebp + 0x220], 1
xor eax, eax
jmp 0x418140
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push ebp
mov dword [edi + 0x85cc], esi
call fcn.0041b1c0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00415df0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d2b58
add esp, 0x21c
ret