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

Disassembly:
sub esp, 0x29c
mov eax, dword [0x5d2020]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0x2a0]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], ebp
movzx ebx, word [edi + 0x600]
mov esi, dword [edi + 0x9bc]
cmp esi, ebp
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x604]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], eax
jne 0x460f37
cmp bx, bp
je 0x4612cd
push 0x80
lea ecx, [esp + 0x2c]
push ebp
push ecx
call fcn.0044ea7c
add esp, 0xc
cmp esi, ebp
je 0x46127f
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x460f57
sub eax, edx
cmp eax, 0xff
jae 0x46127f
push 0xff
lea edx, [esp + 0xad]
push ebp
push edx
mov byte [esp + 0xb4], cl
call fcn.0044ea7c
mov edx, dword [0x5d2058]
mov eax, edx
mov dword [esp + 0x20], ebp
add esp, 0xc
lea ebp, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x460fa0
sub eax, ebp
mov ebp, dword [sym.imp.MSVCR80.dll_strncmp]
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x460fd9
mov eax, dword [0x5d2058]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x460fc5
sub eax, edx
add esi, eax
mov ebx, 1
jmp 0x461020
mov edx, dword [str.host_]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x460fe4
sub eax, ebx
push eax
push esi
push edx
call ebp
add esp, 0xc
test eax, eax
jne 0x46101c
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x461003
mov ebp, dword [esp + 0x2b8]
sub eax, edx
add esi, eax
jmp 0x4610a7
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x2f4]
mov ebp, dword [esp + 0x2b8]
push pe_nt_image_headers32
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x2c4]
push esi
push edx
push eax
push ebp
call fcn.004545e0
add esp, 0x18
sub eax, 0
je 0x461087
sub eax, 1
je 0x46107d
sub eax, 1
jne 0x46109f
push ebp
lea ecx, [esp + 0xac]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.0045c170
add esp, 0x14
jmp 0x461151
mov eax, 1
jmp 0x461307
test ebx, ebx
je 0x4610a7
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.0045c260
add esp, 0xc
jmp 0x461302
test ebx, ebx
jne 0x461261
cmp ebp, 2
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx + 0x5c8]
mov dword [esp + 0x14], edx
jne 0x4610c4
mov dword [ebx + 0x5c8], 1
lea eax, [esp + 0x10]
push eax
push 0
push 0
push esi
push ebx
call fcn.00483c80
add esp, 0x14
cmp eax, 1
jne 0x4610ea
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.00452c90
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x5c8], edx
je 0x461261
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.00483190
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push ebp
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.0045c170
mov ecx, dword [esp + 0x34]
push ecx
push edi
call fcn.00483ee0
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp ebp, dword [eax + 4]
jne 0x46107d
cmp ebp, 2
jne 0x46118d
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xac]
push edx
push ebp
call fcn.00489900
add esp, 0xc
test eax, eax
jle 0x46118d
mov eax, dword [esp + 0x1c]
push eax
mov word [esp + 0x2c], bp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov esi, dword [esp + 0x2b4]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
push ecx
lea edx, [esp + 0x2c]
push edx
push esi
call ebp
test eax, eax
jge 0x4611fd
nop
mov eax, dword [esp + 0x24]
sub eax, 1
test eax, eax
mov dword [esp + 0x24], eax
jle 0x4612d1
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.0045c170
add esp, 0xc
add ebx, 1
cmp word [esp + 0x28], 2
jne 0x4611ec
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 ebp
test eax, eax
jl 0x4611b0
push 0x80
lea eax, [esp + 0xac]
push 0
push eax
mov dword [esp + 0x20], 0x80
call fcn.0044ea7c
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 0x4612ad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x1ac]
push eax
push esi
mov dword [edi + 0xe4c], esi
call fcn.00489550
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4612f9
push esi
push str.Couldnt_bind_to__s
push edi
mov dword [edi + 0x1180], 0
call fcn.0045c260
add esp, 0xc
jmp 0x461302
cmp dword [esp + 0x2b8], 2
jne 0x461191
push ebx
mov word [esp + 0x2c], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x18], 0x10
jmp 0x461191
movzx ecx, bx
push ecx
push str.Local_port:__hu_n
push edi
call fcn.0045c170
mov edx, dword [esp + 0x2c]
add esp, 0xc
mov dword [edx + 0x584], 1
xor eax, eax
jmp 0x461307
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push pe_nt_image_headers32
lea eax, [esp + 0x1ac]
push eax
push esi
mov dword [edi + 0xe4c], esi
call fcn.00489550
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.0045c260
add esp, 0x1c
mov eax, 0x2d
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044e502
add esp, 0x29c
ret