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

Disassembly:
sub esp, 0x214
mov eax, dword [0x4cdbb4]
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 + 0x178]
mov esi, dword [edi + 0x38c]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x17c]
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.00487ce0
add esp, 0xc
cmp esi, ebp
jne 0x4522c1
cmp bx, bp
je 0x4525cc
push 0x80
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.00487ce0
add esp, 0xc
cmp esi, ebp
je 0x4524b3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4522e1
sub eax, edx
cmp eax, 0xff
jae 0x4524b3
mov edx, dword [0x4cd914]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452300
sub eax, ebp
push eax
push esi
push edx
call fcn.0048d0ef
add esp, 0xc
test eax, eax
jne 0x452330
mov eax, dword [0x4cd914]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452320
sub eax, edx
add esi, eax
jmp 0x45245c
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
jmp 0x452340
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452340
sub eax, ebp
push eax
push esi
push edx
call fcn.0048d0ef
add esp, 0xc
test eax, eax
jne 0x45244b
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x452364
sub eax, edx
add esi, eax
cmp dword [esp + 0x230], 2
mov eax, dword [esp + 0x10]
mov ebp, dword [eax + 0x21c]
jne 0x45238d
mov dword [eax + 0x21c], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push eax
call fcn.004486c0
add esp, 0x10
cmp eax, 1
jne 0x4523b5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.00448050
add esp, 8
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edx + 0x21c], ebp
test eax, eax
je 0x45249f
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0x124]
push ecx
push edx
call fcn.00448480
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.00450a50
mov edx, dword [esp + 0x38]
push edx
push edi
call fcn.004488b0
mov ebp, dword [esp + 0x25c]
add esp, 0x2c
cmp ebp, 2
jne 0x4524db
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x124]
push ecx
push ebp
call fcn.00455770
add esp, 0xc
test eax, eax
jle 0x4524db
mov edx, ebp
mov word [esp + 0x20], dx
jmp 0x4524c7
push esi
call fcn.0046e1c0
add esp, 4
test eax, eax
je 0x45236f
mov ebp, dword [esp + 0x230]
push 0x100
lea eax, [esp + 0x124]
push eax
push esi
push ebp
call fcn.0046e1c0
add esp, 0x10
test eax, eax
je 0x4525f9
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.00450a50
add esp, 0x14
jmp 0x45241b
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.00450ae0
add esp, 0xc
jmp 0x4525f9
cmp dword [esp + 0x230], 2
jne 0x4524db
mov eax, 2
mov word [esp + 0x20], ax
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x1c], 0x10
mov word [esp + 0x22], ax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x22c]
mov esi, dword [sym.imp.WS2_32.dll_bind]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
call esi
test eax, eax
jge 0x45254c
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
nop
mov eax, dword [esp + 0x18]
dec eax
mov dword [esp + 0x18], eax
test eax, eax
jle 0x4525d0
movzx ecx, bx
push ecx
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.00450a50
add esp, 0xc
inc ebx
cmp word [esp + 0x20], 2
jne 0x452534
push ebx
call ebp
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x22c]
push edx
lea eax, [esp + 0x24]
push eax
push ecx
call esi
test eax, eax
jl 0x452500
push 0x80
lea edx, [esp + 0xa4]
push 0
push edx
mov dword [esp + 0x24], 0x80
call fcn.00487ce0
mov edx, dword [esp + 0x238]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xa4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x4525ac
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [edi + 0x85cc], esi
call fcn.00455520
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4525f0
movzx ecx, bx
push ecx
push str.Local_port:__hu_n
push edi
call fcn.00450a50
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [edx + 0x1fc], 1
xor eax, eax
jmp 0x4525fe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
push eax
mov dword [edi + 0x85cc], esi
call fcn.00455520
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.00450ae0
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004874cc
add esp, 0x214
ret