Function at 0x670ec5b0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, r8
mov rbx, rdx
mov rdi, rcx
mov rsi, qword [rcx + 0x18]
cmp dword [rcx + 0x38], 0
jne 0x670ec62e
mov edx, 5
lea rcx, [rax + 8]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0xd0]
lock dec dword [rax]
jne 0x670ec859
mov rcx, qword [rsp + 0xd0]
call sym.QtCoreVBox4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data____ptr64_
jmp 0x670ec859
test rdx, rdx
jne 0x670ec675
test r8, r8
jne 0x670ec675
lea edx, [r8 + 0x57]
lea rcx, [rsp + 0x48]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x48]
lock dec dword [rax]
jne 0x670ec859
mov rcx, qword [rsp + 0x48]
call sym.QtCoreVBox4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data____ptr64_
jmp 0x670ec859
xor ebp, ebp
lea r14d, [rbp + 2]
lea r12d, [rbp + 4]
cmp qword [rcx + 0x80], 0xffffffffffffffff
jne 0x670ec75e
mov rcx, qword [rcx + 0x78]
cmp rcx, 0xffffffffffffffff
jne 0x670ec6f5
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x670ec6b7
call qword [sym.imp.MSVCR100.dll__fileno]
mov ecx, eax
call qword [sym.imp.MSVCR100.dll__get_osfhandle]
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x670ec6f5
mov edx, 5
lea rcx, [rsp + 0x40]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x670ec859
mov rcx, qword [rsp + 0x40]
call sym.QtCoreVBox4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data____ptr64_
jmp 0x670ec859
mov eax, dword [rdi + 0x38]
and eax, r14d
mov r8d, r14d
cmovne r8d, r12d
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
xor r9d, r9d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rdi + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x670ec75e
or edx, eax
lea rcx, [rsp + 0x50]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x670ec859
mov rcx, qword [rsp + 0x50]
call sym.QtCoreVBox4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data____ptr64_
jmp 0x670ec859
mov ecx, dword [rdi + 0x38]
mov eax, ecx
and eax, 1
cmovne ebp, r12d
and ecx, r14d
cmovne ebp, r14d
mov r15, rbx
sar r15, 0x20
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rsp + 0x90]
dec r11d
mov r14d, ebx
and r14d, r11d
je 0x670ec79c
not r11d
and ebx, r11d
lea rax, [r14 + r13]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8d, r15d
mov edx, ebp
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x670ec7e1
lea rbx, [r14 + rax]
mov qword [rsp + 0x58], rbx
lea rcx, [rdi + 0x88]
lea rdx, [rsp + 0x58]
call fcn.670ec460
mov dword [rax], r14d
mov rax, rbx
jmp 0x670ec85b
call qword [sym.imp.KERNEL32.dll_GetLastError]
or edx, 0xffffffff
cmp eax, 5
je 0x670ec81c
lea rcx, [rsp + 0x30]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 8
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x30]
lock dec dword [rax]
jne 0x670ec84c
mov rcx, qword [rsp + 0x30]
jmp 0x670ec847
lea rcx, [rsp + 0x38]
call sym.QtCoreVBox4.dll_class_QString___cdecl_qt_error_string_int_
nop
mov r8, rax
mov edx, 0xd
mov rcx, rsi
call sym.QtCoreVBox4.dll_protected:_void___cdecl_QAbstractFileEngine::setError_enum_QFile::FileError__class_QString_const____ptr64____ptr64
nop
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x670ec84c
mov rcx, qword [rsp + 0x38]
call sym.QtCoreVBox4.dll_private:_static_void___cdecl_QString::free_struct_QString::Data____ptr64_
mov rcx, qword [rdi + 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret