Function at 0x41b670
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x420788
push eax
mov dword fs:[0], esp
sub esp, 0x14c
test esi, esi
push ebx
push edi
je 0x41b861
cmp dword [esi + 0x7c], 0
jne 0x41b861
lea edi, [esi + 0x64]
push edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
cmp dword [esi + 0x20], 0
jne 0x41b6c9
push edi
jmp 0x41b85b
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push str.ntdll.dll
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x118
mov edi, eax
lea eax, [ebp - 0x154]
push 0
push eax
call fcn.0041ecbc
add esp, 0xc
test edi, edi
mov dword [ebp - 0x158], 0x11c
je 0x41b715
lea ecx, [ebp - 0x158]
push ecx
call edi
test eax, eax
je 0x41b76d
push edi
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.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTCommonQMCommonLibDllQMReportMgrQMReportMgr.cpp
call fcn.0041e220
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0x18
lea edx, [ebp - 0x158]
push edx
mov dword [ebp - 0x158], 0x11c
call edi
test eax, eax
jne 0x41b76d
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], 0x114
call edi
test eax, eax
je 0x41b7a4
movzx edx, word [ebp - 0x154]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x38], dx
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x150]
mov word [eax + 0x3a], cx
mov edx, dword [esi + 0x20]
mov ax, word [ebp - 0x44]
mov word [edx + 0x3e], ax
movzx edx, word [ebp - 0x14c]
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x3c], dx
jmp 0x41b7c2
mov ecx, dword [esi + 0x20]
xor eax, eax
mov word [ecx + 0x38], ax
mov edx, dword [esi + 0x20]
mov word [edx + 0x3a], ax
mov ecx, dword [esi + 0x20]
mov word [ecx + 0x3e], ax
mov edx, dword [esi + 0x20]
mov word [edx + 0x3c], ax
mov eax, dword [esi + 0x20]
movzx ecx, word [eax + 0x3e]
movzx edx, word [eax + 0x3c]
push ecx
movzx ecx, word [eax + 0x3a]
push edx
movzx edx, word [eax + 0x38]
push ecx
push edx
push str.Windows_version:__d._d._d__sp__d_
push str.QMReportMgr::CReportManager::FillSysInfo
push 0x104
push str.D:jenkins_TrunkworkspaceMainline_SourceJob_2qqpcmgr_projFTCommonQMCommonLibDllQMReportMgrQMReportMgr.cpp
call fcn.0041e220
xor eax, eax
add esp, 0x20
push str.GetNativeSystemInfo
push str.kernel32.dll
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b835
lea ecx, [ebp - 0x38]
push ecx
call eax
jmp 0x41b83f
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esi + 0x20]
mov cx, word [ebp - 0x38]
mov word [eax + 0x40], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov edx, dword [esi + 0x20]
mov word [edx + 0x42], ax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret