Function at 0x40f460
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428a3b
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5ee008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40f67c
cmp dword [esi + 0x74], 0
jne 0x40f67c
lea edi, [esi + 0x5c]
mov dword [ebp - 0x134], 1
push edi
mov dword [ebp - 0x138], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x20], 0
je 0x40f675
push str.RtlGetVersion
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x128]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
test eax, eax
je 0x40f52a
lea ecx, [ebp - 0x12c]
push ecx
call eax
test eax, eax
je 0x40f5a4
mov eax, dword [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_call_RtlGetVersion____err_d__RtlGetVersion_p
push str.QMReportMgr::CReportManager::FillSysInfo
push 0xe7
push str.C:qci_workspace_root_workspaces__qci_pipeline_9528_1FTCommonQMCommonLibDllQMReportMgrQMReportMgr.cpp
call fcn.0040d250
add esp, 0x18
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40f5a4
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x40f5a4
mov eax, dword [esi + 0x20]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x32], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x36], cx
mov eax, dword [esi + 0x20]
mov word [eax + 0x34], cx
jmp 0x40f5d9
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x128]
mov word [ecx + 0x30], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x124]
mov word [ecx + 0x32], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x18]
mov word [ecx + 0x36], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ebp - 0x120]
mov word [ecx + 0x34], ax
mov ecx, dword [esi + 0x20]
movzx eax, word [ecx + 0x36]
push eax
movzx eax, word [ecx + 0x34]
push eax
movzx eax, word [ecx + 0x32]
push eax
movzx eax, word [ecx + 0x30]
push eax
push str.Windows_version:__d._d._d__sp__d_
push str.QMReportMgr::CReportManager::FillSysInfo
push 0x104
push str.C:qci_workspace_root_workspaces__qci_pipeline_9528_1FTCommonQMCommonLibDllQMReportMgrQMReportMgr.cpp
call fcn.0040d250
add esp, 0x20
mov dword [ebp - 0x13c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x15c], xmm0
push str.GetNativeSystemInfo
push 0x5e2838
movups xmmword [ebp - 0x14c], xmm0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40f64d
lea ecx, [ebp - 0x15c]
push ecx
call eax
jmp 0x40f65a
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esi + 0x20]
mov ax, word [ebp - 0x15c]
mov word [ecx + 0x38], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x3a], ax
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425e27
mov esp, ebp
pop ebp
ret