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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x640fe3b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov word [esi + 0x5c], cx
lea edi, [esi + 0x58]
mov ecx, edi
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QHostAddress::clear_void_
xor ecx, ecx
mov word [esi + 0x64], cx
lea ecx, [esi + 0x60]
call sym.Qt5NetworkKso.dll_public:_void___thiscall_kso_qt::QHostAddress::clear_void_
mov eax, dword [esi + 0x74]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x68], 0
cmp eax, 0xffffffff
jne 0x6407d00a
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1c
push ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_getsockname]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x6407d152
push edi
lea eax, [esi + 0x5c]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call fcn.6407eb90
movzx eax, word [ebp - 0x20]
add esp, 0x10
sub eax, 2
je 0x6407d146
sub eax, 0x15
je 0x6407d13a
mov dword [esi + 0x54], 0xffffffff
push 5
mov ecx, edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 4
call sym.Qt5NetworkKso.dll_public:_bool___thiscall_kso_qt::QHostAddress::operator_enum_kso_qt::QHostAddress::SpecialAddress_const
test al, al
je 0x6407d0bc
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1b
push 0x29
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x6407d0bc
cmp dword [ebp - 0x28], eax
jne 0x6407d0bc
push 4
mov ecx, edi
mov dword [esi + 0x54], 2
call sym.Qt5NetworkKso.dll_public:_class_kso_qt::QHostAddress____thiscall_kso_qt::QHostAddress::operator_enum_kso_qt::QHostAddress::SpecialAddress_
cmp dword [esi + 0x54], 1
jne 0x6407d0eb
lea eax, [ebp - 0x21]
mov byte [ebp - 0x21], 0
push eax
mov ecx, edi
call sym.Qt5NetworkKso.dll_public:_unsigned_int___thiscall_kso_qt::QHostAddress::toIPv4Address_bool__const
cmp byte [ebp - 0x21], 0
je 0x6407d0eb
test eax, eax
jne 0x6407d0eb
push 4
mov ecx, edi
mov dword [esi + 0x54], 2
call sym.Qt5NetworkKso.dll_public:_class_kso_qt::QHostAddress____thiscall_kso_qt::QHostAddress::operator_enum_kso_qt::QHostAddress::SpecialAddress_
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [esi + 0x74]
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
jne 0x6407d17d
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call fcn.6407eb90
add esp, 0x10
mov dword [esi + 0x6c], 1
mov dword [esi + 0x68], 1
jmp 0x6407d17f
mov dword [esi + 0x54], 1
jmp 0x6407d073
mov dword [esi + 0x54], 0
jmp 0x6407d073
call ebx
cmp eax, 0x2736
jne 0x6407d073
push 8
push 0xa
mov ecx, esi
call fcn.6407c150
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.640ad545
mov esp, ebp
pop ebp
ret
call ebx
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], 0
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x38], 4
push eax
push 0x1008
push 0xffff
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
je 0x6407d1c7
call ebx
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop ebx
mov dword [esi + 0x50], eax
xor ecx, ebp
pop edi
mov al, 1
pop esi
call fcn.640ad545
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x30]
cmp eax, 1
jne 0x6407d1d3
xor eax, eax
jmp 0x6407d1b1
cmp eax, 2
jne 0x6407d1ae
mov eax, 1
jmp 0x6407d1b1