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

Disassembly:
sub esp, 0x34
mov eax, dword [0x640c4350]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
lea ebx, [esi + 0x5c]
mov word [ebx], ax
lea edi, [esi + 0x58]
mov ecx, edi
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::clear_void_
xor ecx, ecx
mov word [esi + 0x64], cx
lea ecx, [esi + 0x60]
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::clear_void_
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
jne 0x6406bcef
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.6408e98c
add esp, 0x34
ret
push ebp
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1c
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
push ecx
push eax
movdqu xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebp, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x6406be79
push edi
push ebx
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x6c]
call fcn.6406d7e0
movzx eax, word [esp + 0x34]
add esp, 0x10
sub eax, 2
je 0x6406be6d
sub eax, 0x15
je 0x6406be61
mov dword [esi + 0x54], 0xffffffff
push 5
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 4
call sym.Qt5Network.dll_public:_bool___thiscall_QHostAddress::operator_enum_QHostAddress::SpecialAddress_const
test al, al
je 0x6406bdd0
call dword [sym.imp.Qt5Core.dll_public:_static_enum_QSysInfo::WinVersion___cdecl_QSysInfo::windowsVersion_void_]
cmp eax, 0x80
jl 0x6406bdd0
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
push 0x1b
push 0x29
push dword [esi + 0x6c]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x6406bdd0
cmp dword [esp + 0x18], eax
jne 0x6406bdd0
push 4
lea ecx, [esp + 0x18]
mov dword [esi + 0x54], 2
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::constructor_enum_QHostAddress::SpecialAddress_
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov dword [edi], eax
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::destructor_void_
cmp dword [esi + 0x54], 1
jne 0x6406be19
lea eax, [esp + 0x13]
mov byte [esp + 0x13], 0
push eax
mov ecx, edi
call sym.Qt5Network.dll_public:_unsigned_int___thiscall_QHostAddress::toIPv4Address_bool__const
cmp byte [esp + 0x13], 0
je 0x6406be19
test eax, eax
jne 0x6406be19
push 4
lea ecx, [esp + 0x18]
mov dword [esi + 0x54], 2
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::constructor_enum_QHostAddress::SpecialAddress_
mov ecx, dword [edi]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x14]
mov dword [edi], eax
call sym.Qt5Network.dll_public:_void___thiscall_QHostAddress::destructor_void_
lea eax, [esp + 0x1c]
mov dword [esp + 0x3c], 0
push eax
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
push dword [esi + 0x6c]
movdqu xmmword [esp + 0x30], xmm0
movq qword [esp + 0x40], xmm0
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x6406bea6
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x64]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x6c]
call fcn.6406d7e0
add esp, 0x10
jmp 0x6406bea8
mov dword [esi + 0x54], 1
jmp 0x6406bd5e
mov dword [esi + 0x54], 0
jmp 0x6406bd5e
call ebp
cmp eax, 0x2736
jne 0x6406bd5e
push 8
push 0xa
mov ecx, esi
call fcn.6406a9d0
pop ebp
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.6408e98c
add esp, 0x34
ret
call ebp
push dword [esi + 0x6c]
call fcn.6406d910
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [esi + 0x50], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.6408e98c
add esp, 0x34
ret