Function at 0x670cbc20
Capabilities:
Get system information on windows

Disassembly:
push 0xffffffffffffffff
push 0x6713e8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x67221378]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x14], edi
test eax, eax
jne 0x670cbca3
lea eax, [esp + 0x50]
push 5
push eax
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 0xd
mov ecx, edi
mov dword [esp + 0x50], 0
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x670cbef0
mov eax, dword [esp + 0x50]
push eax
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
jmp 0x670cbef0
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov edx, ebx
or edx, ecx
jne 0x670cbd07
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x5c]
jne 0x670cbd07
lea ecx, [esp + 0x50]
push 0x57
push ecx
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 8
mov ecx, edi
mov dword [esp + 0x50], 1
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov edx, dword [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x670cbef0
mov ecx, dword [esp + 0x50]
push ecx
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
jmp 0x670cbef0
or ebp, 0xffffffff
cmp dword [esi + 0x24], ebp
jne 0x670cbdd6
mov eax, dword [esi + 0x20]
cmp eax, ebp
jne 0x670cbd65
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x670cbd36
push eax
call dword [sym.imp.MSVCR90.dll__fileno]
push eax
call dword [sym.imp.MSVCR90.dll__get_osfhandle]
add esp, 8
cmp eax, ebp
jne 0x670cbd65
lea edx, [esp + 0x50]
push 5
push edx
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 0xd
mov ecx, edi
mov dword [esp + 0x50], 2
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], ebp
lock xadd dword [eax], ebp
jmp 0x670cbcef
mov edx, dword [esi + 0x18]
and edx, 2
mov ecx, 0
setne cl
push 0
push 0
push 0
lea ecx, [ecx + ecx + 2]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x24], eax
cmp eax, ebp
jne 0x670cbdd2
lea eax, [esp + 0x50]
push ebp
push eax
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
push eax
push 0xd
mov ecx, edi
mov dword [esp + 0x50], 3
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x48], ebp
lock xadd dword [ecx], ebp
jne 0x670cbef0
mov edx, dword [esp + 0x50]
push edx
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
jmp 0x670cbef0
mov ecx, dword [esp + 0x54]
mov eax, dword [esi + 0x18]
mov edx, eax
and edx, 1
mov dword [esp + 0x50], 0
je 0x670cbdf0
mov dword [esp + 0x50], 4
and eax, 2
je 0x670cbdfd
mov dword [esp + 0x50], 2
mov eax, ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ecx
sar eax, 0x1f
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x38]
dec eax
mov edi, ebx
and edi, eax
je 0x670cbe20
not eax
and eax, ebx
mov ebx, eax
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x50]
mov ecx, dword [esi + 0x24]
add edx, edi
push edx
push ebx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x670cbe59
lea edx, [esp + 0x50]
lea ebx, [eax + edi]
push edx
lea ecx, [esi + 0x28]
mov dword [esp + 0x54], ebx
call fcn.6710fb90
mov dword [eax], edi
mov eax, ebx
jmp 0x670cbef2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xffffffffffffffff
cmp eax, 5
je 0x670cbea3
lea eax, [esp + 0x5c]
push eax
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
mov ecx, dword [esp + 0x14]
push eax
push 8
mov dword [esp + 0x50], 5
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x48], 0xffffffff
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x670cbee6
mov eax, dword [esp + 0x58]
push eax
jmp 0x670cbede
lea ecx, [esp + 0x1c]
push ecx
call sym.QtCore4.dll_class_QString___cdecl_qt_error_string_int_
add esp, 8
mov ecx, dword [esp + 0x14]
push eax
push 0xd
mov dword [esp + 0x50], 4
call sym.QtCore4.dll_protected:_void___thiscall_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const__
mov edx, dword [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x670cbee6
mov ecx, dword [esp + 0x18]
push ecx
call sym.QtCore4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data__
add esp, 4
mov edx, dword [esi + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0x14