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

Disassembly:
sub esp, 0x214
mov eax, dword [0x4dfb64]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebp, ebp
push 0xff
mov dword [esp + 0x18], ebp
movzx ebx, word [edi + 0x140]
mov esi, dword [edi + 0x354]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x144]
lea ecx, [esp + 0x125]
push ebp
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov byte [esp + 0x12c], 0
call fcn.0048bdc0
add esp, 0xc
cmp esi, ebp
jne 0x448651
cmp bx, bp
je 0x448957
push 0x80
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.0048bdc0
add esp, 0xc
cmp esi, ebp
je 0x44883e
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x448671
sub eax, edx
cmp eax, 0xff
jae 0x44883e
mov edx, dword [0x4de4a0]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x448692
sub eax, ebp
push eax
push esi
push edx
call fcn.00491d54
add esp, 0xc
test eax, eax
jne 0x4486c6
mov eax, dword [0x4de4a0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4486b4
sub eax, edx
add esi, eax
jmp 0x4487ea
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4486d1
sub eax, ebp
push eax
push esi
push edx
call fcn.00491d54
add esp, 0xc
test eax, eax
jne 0x4487d9
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4486f7
sub eax, edx
add esi, eax
cmp dword [esp + 0x230], 2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x21c]
jne 0x448722
mov dword [eax + 0x21c], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
call fcn.0043de00
add esp, 0x10
cmp eax, 1
jne 0x44874a
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0043d810
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
mov edx, dword [esp + 0x10]
mov dword [edx + 0x21c], ebp
je 0x44882a
mov edx, dword [eax]
push pe_nt_image_headers32
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.0043db80
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x23c]
push edx
lea eax, [esp + 0x130]
push eax
push ecx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.00447fa0
mov edx, dword [esp + 0x38]
push edx
push edi
call fcn.0043dff0
mov ebp, dword [esp + 0x25c]
add esp, 0x2c
cmp ebp, 2
jne 0x448863
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x124]
push ecx
push ebp
call fcn.0044d240
add esp, 0xc
test eax, eax
jle 0x448863
jmp 0x448848
push esi
call fcn.0043d990
add esp, 4
test eax, eax
je 0x448704
mov ebp, dword [esp + 0x230]
push pe_nt_image_headers32
lea eax, [esp + 0x124]
push eax
push esi
push ebp
call fcn.0043d990
add esp, 0x10
test eax, eax
je 0x448984
push ebp
lea ecx, [esp + 0x124]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.00447fa0
add esp, 0x14
jmp 0x4487b0
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.00448030
add esp, 0xc
jmp 0x448984
cmp dword [esp + 0x230], 2
jne 0x448863
push ebx
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x1c], 0x10
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x22c]
mov esi, dword [sym.imp.WS2_32.dll_bind]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jge 0x4488d7
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [esp + 0x18]
sub eax, 1
test eax, eax
mov dword [esp + 0x18], eax
jle 0x44895b
movzx edx, bx
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.00447fa0
add esp, 0xc
add ebx, 1
cmp word [esp + 0x20], 2
jne 0x4488bf
push ebx
call ebp
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x22c]
push eax
lea ecx, [esp + 0x24]
push ecx
push edx
call esi
test eax, eax
jl 0x448887
push 0x80
lea eax, [esp + 0xa4]
push 0
push eax
mov dword [esp + 0x24], 0x80
call fcn.0048bdc0
mov eax, dword [esp + 0x238]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0xa4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x448937
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x858c], esi
call fcn.0044c400
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x44897b
movzx edx, bx
push edx
push str.Local_port:__hu_n
push edi
call fcn.00447fa0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax + 0x1fc], 1
xor eax, eax
jmp 0x448989
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x10]
mov esi, eax
push esi
push ecx
mov dword [edi + 0x858c], esi
call fcn.0044c400
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00448030
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0048b5ab
add esp, 0x214
ret