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

Disassembly:
sub esp, 0x210
mov eax, dword [esp + 0x214]
push ebx
xor edx, edx
push ebp
mov ebx, dword [eax]
mov al, byte [0x4a6ea0]
mov dword [esp + 8], edx
push esi
mov ecx, dword [ebx + 0x13c]
mov bp, word [ebx + 0x138]
mov esi, dword [ebx + 0x344]
push edi
mov dword [esp + 0x1c], ecx
mov byte [esp + 0xa0], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xa1]
cmp esi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
jne 0x4420c9
cmp bp, dx
jne 0x4420c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
cmp esi, edx
rep stosd dword es:[edi], eax
je 0x4422a7
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
jae 0x4422a7
mov edx, dword [0x4a1c60]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call fcn.0042dbd0
add esp, 0xc
test eax, eax
jne 0x442128
mov edi, dword [0x4a1c60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
jmp 0x442248
mov edx, dword [str.host_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call fcn.0042dbd0
add esp, 0xc
test eax, eax
jne 0x442237
mov edi, dword [str.host_]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
mov edi, dword [esp + 0x224]
mov eax, dword [edi + 0x21c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x22c]
cmp eax, 2
jne 0x442184
mov dword [edi + 0x21c], 1
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push edi
call fcn.00436990
add esp, 0x10
cmp eax, 1
jne 0x4421a8
lea edx, [esp + 0x10]
push edx
push edi
call fcn.004361c0
add esp, 8
mov eax, dword [esp + 0x18]
mov dword [edi + 0x21c], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x442288
mov edx, dword [eax]
lea ecx, [esp + 0xa0]
push 0x100
push ecx
push edx
call fcn.00436790
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea eax, [esp + 0xac]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x238]
push edx
push eax
push ecx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.00440d50
mov edx, dword [esp + 0x34]
push edx
push ebx
call fcn.00436bf0
mov edi, dword [esp + 0x258]
add esp, 0x2c
cmp edi, 2
jne 0x4422cc
lea eax, [esp + 0x24]
lea ecx, [esp + 0xa0]
push eax
push ecx
push edi
call fcn.00446370
add esp, 0xc
test eax, eax
jle 0x4422cc
jmp 0x4422b1
push esi
call fcn.0045d2c0
add esp, 4
test eax, eax
je 0x44215d
mov edi, dword [esp + 0x22c]
lea ecx, [esp + 0xa0]
push 0x100
push ecx
push esi
push edi
call fcn.0045d2c0
add esp, 0x10
test eax, eax
je 0x4423ec
lea edx, [esp + 0xa0]
push edi
push edx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.00440d50
add esp, 0x14
jmp 0x44220e
push esi
push str.Couldnt_bind_to__s
push ebx
call fcn.00440dc0
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp dword [esp + 0x22c], 2
jne 0x4422cc
push ebp
mov word [esp + 0x24], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov dword [esp + 0x14], 0x10
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x228]
mov edi, dword [sym.imp.WS2_32.dll_bind]
lea eax, [esp + 0x20]
push edx
push eax
push esi
call edi
test eax, eax
jge 0x442338
mov eax, dword [esp + 0x1c]
dec eax
test eax, eax
mov dword [esp + 0x1c], eax
jle 0x4423c0
mov ecx, ebp
and ecx, 0xffff
push ecx
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.00440d50
add esp, 0xc
inc ebp
cmp word [esp + 0x20], 2
jne 0x442327
push ebp
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x22], ax
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push edx
push eax
push esi
call edi
test eax, eax
jl 0x4422ea
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x1a0]
lea edx, [esp + 0x1a0]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0x80
push ecx
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x44238d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x224]
push esi
push eax
mov dword [ebx + 0x857c], esi
call fcn.00443d70
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x4423e3
and ebp, 0xffff
push ebp
push str.Local_port:__hu_n
push ebx
call fcn.00440d50
mov ecx, dword [esp + 0x230]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [ecx + 0x1fc], 1
pop ebx
add esp, 0x210
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x224]
mov esi, eax
push esi
push edx
mov dword [ebx + 0x857c], esi
call fcn.00443d70
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.00440dc0
add esp, 0x18
pop edi
pop esi
pop ebp
mov eax, 0x2d
pop ebx
add esp, 0x210
ret