Function at 0x4c57ea
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0x160
mov eax, 0x584e11
call fcn.004fb9d0
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x24
lea eax, [ebp - 0x16c]
push ebx
push eax
mov dword [ebp - 0x130], ebx
call fcn.004fc1f0
mov esi, 0x11c
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.004fc1f0
add esp, 0x18
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4c61b5
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c586a
lea ecx, [ebp - 0x16c]
push ecx
call eax
jmp 0x4c5877
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x11c], 2
jne 0x4c5f39
cmp dword [ebp - 0x128], 4
jbe 0x4c5ef5
push 0x59a2c0
mov ecx, edi
call fcn.00433c70
cmp dword [ebp - 0x128], 6
mov esi, str.Enterprise_Edition
jne case.0x4c5b03.5
cmp dword [ebp - 0x124], 2
jne 0x4c5a54
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.CurrentVersion
call fcn.0043479c
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0043479c
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.HKEY_LOCAL_MACHINE
call fcn.0043479c
mov byte [ebp - 4], 2
lea eax, [ebp - 0x134]
push eax
or dword [ebp - 4], 0xffffffff
call fcn.0049b925
add esp, 0x10
mov dword [ebp - 4], 3
push 0x5ab218
lea ecx, [ebp - 0x134]
call fcn.00431ed3
test eax, eax
jne 0x4c5940
mov dword [ebp - 0x130], 0x1b
push str.Windows_8
jmp 0x4c5999
push 0x5a46f8
lea ecx, [ebp - 0x134]
call fcn.00431ed3
test eax, eax
jne 0x4c5965
mov dword [ebp - 0x130], 0x1e
push str.Windows_8.1
jmp 0x4c5999
push 0x5a46f0
lea ecx, [ebp - 0x134]
call fcn.00431ed3
test eax, eax
jne 0x4c598a
mov dword [ebp - 0x130], 0x1f
push str.Windows_10
jmp 0x4c5999
mov dword [ebp - 0x130], 0x20
push str.Windows
mov ecx, edi
call fcn.0043a9d7
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CurrentMajorVersionNumber
call fcn.0043479c
mov byte [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0043479c
mov byte [ebp - 4], 5
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov byte [ebp - 4], 3
call fcn.0049aac0
add esp, 8
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CurrentMinorVersionNumber
mov ebx, eax
call fcn.0043479c
mov byte [ebp - 4], 6
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0043479c
mov byte [ebp - 4], 7
push esi
mov byte [ebp - 4], 3
call fcn.0049aac0
add esp, 0xc
cmp ebx, 0xa
jne 0x4c5a3b
test eax, eax
jne 0x4c5a3b
push str.Windows_10
mov ecx, edi
mov dword [ebp - 0x130], 0x1f
call fcn.00433c70
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x134]
add ecx, 0xfffffff0
call fcn.004310e3
mov esi, str.Enterprise_Edition
jmp 0x4c5abc
cmp dword [ebp - 0x124], 1
jne 0x4c5a87
cmp byte [ebp - 0x12], 1
mov ecx, edi
jne 0x4c5a76
mov dword [ebp - 0x130], 0x17
push str.Windows_7
jmp 0x4c5ab7
mov dword [ebp - 0x130], 0x19
push str.Windows_Server_2008_R2
jmp 0x4c5ab7
cmp dword [ebp - 0x124], ebx
jne 0x4c5abc
cmp byte [ebp - 0x12], 1
mov ecx, edi
jne 0x4c5aa8
mov dword [ebp - 0x130], 0x13
push str.Windows_Vista
jmp 0x4c5ab7
mov dword [ebp - 0x130], 0x15
push str.Windows_Server_2008
call fcn.0043a9d7
push str.GetProductInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov eax, dword [ebp - 0x144]
cmp eax, 0x19
ja 0x4c5b76
je 0x4c5b6f
dec eax
cmp eax, 0x11
ja case.0x4c5b03.5
jmp dword [eax*4 + 0x4c61be]
push 0x5ab0d0
jmp 0x4c5b80
push str.Home_Premium_Edition
jmp 0x4c5b80
push str.Home_Basic_Edition
jmp 0x4c5b80
push esi
jmp 0x4c5b80
push str.Business_Edition
jmp 0x4c5b80
push str.Starter_Edition
jmp 0x4c5b80
push str.HPC_Server_Edition
jmp 0x4c5b80
push str.Datacenter_Edition
jmp 0x4c5b80
push str.Datacenter_Edition__core_installation_
jmp 0x4c5b80
push str.Enterprise_Edition__core_installation_
jmp 0x4c5b80
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4c5b80
push str.Small_Business_Server
jmp 0x4c5b80
push str.Standard_Edition
jmp 0x4c5b80
push str.Standard_Edition__core_installation_
jmp 0x4c5b80
push str.Web_Server_Edition
jmp 0x4c5b80
push str.Small_Business_Server_Premium_Edition
jmp 0x4c5b80
cmp eax, 0x30
jne case.0x4c5b03.5
push 0x5aadc8
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c5d9f
cmp dword [ebp - 0x124], 2
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x4c5cd0
push 0x59
call ebx
test eax, eax
je 0x4c5bc0
mov dword [ebp - 0x130], 0x11
push str.Windows_Server_2003_R2_
jmp 0x4c5c10
test dword [ebp - 0x14], 0x2000
je 0x4c5bd0
push str.Windows_Storage_Server_2003
jmp 0x4c5c06
test dword [ebp - 0x14], 0x8000
je 0x4c5be0
push str.Windows_Home_Server_2003
jmp 0x4c5c06
cmp byte [ebp - 0x12], 1
jne 0x4c5c01
cmp word [ebp - 0x16c], 9
jne 0x4c5c01
mov dword [ebp - 0x130], 0xe
push str.Windows_XP_Professional_x64_Edition
jmp 0x4c5c10
push str.Windows_Server_2003_
mov dword [ebp - 0x130], 0xf
mov ecx, edi
call fcn.0043a9d7
cmp byte [ebp - 0x12], 1
je 0x4c5cc3
cmp word [ebp - 0x16c], 6
jne 0x4c5c4f
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0x10
je 0x4c5c42
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4c5cbc
test byte [ebp - 0x14], 2
je 0x4c5cc3
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4c5cbc
cmp word [ebp - 0x16c], 9
jne 0x4c5c86
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0x10
je 0x4c5c70
push str.Datacenter_x64_Edition
jmp 0x4c5cbc
test byte [ebp - 0x14], 2
mov ecx, edi
je 0x4c5c7f
push str.Enterprise_x64_Edition
jmp 0x4c5cbe
push str.Standard_x64_Edition
jmp 0x4c5cbe
mov eax, dword [ebp - 0x14]
test eax, 0x4000
je 0x4c5c97
push str.Compute_Cluster_Edition
jmp 0x4c5cbc
test al, al
jns 0x4c5ca2
push str.Datacenter_Edition
jmp 0x4c5cbc
test al, 2
je 0x4c5ca9
push esi
jmp 0x4c5cbc
test eax, 0x400
je 0x4c5cb7
push str.Web_Edition
jmp 0x4c5cbc
push str.Standard_Edition
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c5d9f
cmp dword [ebp - 0x124], 1
mov esi, str.Professional
jne 0x4c5d47
push str.Windows_XP
mov ecx, edi
mov dword [ebp - 0x130], 0xd
call fcn.0043a9d7
test dword [ebp - 0x14], 0x200
mov ecx, edi
je 0x4c5d06
push str.Home_Edition
jmp 0x4c5d07
push esi
call fcn.0043a9d7
push 0x57
call ebx
test eax, eax
je 0x4c5d1b
push str.Media_Center_Edition
jmp 0x4c5d37
push 0x58
call ebx
test eax, eax
je 0x4c5d2a
push str.Starter_Edition
jmp 0x4c5d37
push 0x56
call ebx
test eax, eax
je 0x4c5d3e
push str.Tablet_PC_Edition
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c5d9f
cmp dword [ebp - 0x124], 0
jne 0x4c5d9f
push str.Windows_2000
mov ecx, edi
call fcn.0043a9d7
cmp byte [ebp - 0x12], 1
jne 0x4c5d6f
mov dword [ebp - 0x130], 0xb
push esi
jmp 0x4c5d98
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0xc
je 0x4c5d86
push str.Datacenter_Server
jmp 0x4c5d98
test byte [ebp - 0x14], 2
je 0x4c5d93
push str.Advanced_Server
jmp 0x4c5d98
push str.Server
mov ecx, edi
call fcn.0043a9d7
lea eax, [ebp - 0x118]
push eax
call fcn.004fb22e
pop ecx
test eax, eax
je 0x4c5dca
push 0x5a4b00
mov ecx, edi
call fcn.0043a9d7
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.0043a9d7
push 0x602968
lea ecx, [ebp - 0x134]
call fcn.00431ef7
mov dword [ebp - 4], 0xa
push ecx
mov ecx, esp
mov dword [ebp - 0x13c], esp
push str.CurrentBuildNumber
call fcn.0043479c
mov byte [ebp - 4], 0xb
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0043479c
mov byte [ebp - 4], 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.HKEY_LOCAL_MACHINE
call fcn.0043479c
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x140]
push eax
mov byte [ebp - 4], 0xa
call fcn.0049b925
add esp, 0x10
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x140]
cmp dword [eax - 0xc], 0
jne 0x4c5e56
push dword [ebp - 0x120]
push str.__Build__d_
jmp 0x4c5e5c
push eax
push str.__Build__s_
lea eax, [ebp - 0x134]
push eax
call fcn.00433c96
add esp, 0xc
push str.9431
lea ecx, [ebp - 0x140]
call fcn.00431ed3
test eax, eax
jne 0x4c5e8b
push str._Preview
mov ecx, edi
call fcn.0043a9d7
mov esi, dword [ebp - 0x134]
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.0043a942
cmp dword [ebp - 0x128], 6
jb 0x4c5ecc
cmp word [ebp - 0x16c], 9
jne 0x4c5eb6
push str.__64_bit
jmp 0x4c5ec5
cmp word [ebp - 0x16c], 0
jne 0x4c5ecc
push str.__32_bit
mov ecx, edi
call fcn.0043a9d7
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x140]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004310e3
mov ebx, dword [ebp - 0x130]
jmp 0x4c61b3
jne 0x4c5f12
cmp dword [ebp - 0x124], ebx
jne 0x4c61b3
push 6
pop ebx
push str.Windows_NT4
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 3
jne 0x4c61b3
cmp dword [ebp - 0x124], 0x33
jne 0x4c61b3
push 5
pop ebx
push str.Windows_NT_3.51
jmp 0x4c61ac
xor esi, esi
inc esi
cmp dword [ebp - 0x11c], esi
jne 0x4c5ff3
cmp dword [ebp - 0x128], 4
jne 0x4c61b3
cmp dword [ebp - 0x124], 0x5a
push 0xa
pop esi
jne 0x4c5f6f
push str.Windows_Millennium_Edition
mov ecx, edi
mov ebx, esi
call fcn.0043a9d7
cmp dword [ebp - 0x124], esi
jne 0x4c5faf
cmp dword [ebp - 0x120], 0x887
jb 0x4c5f9a
push 9
pop ebx
push str.Windows_98_Second_Edition
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x124], esi
jne 0x4c5faf
push 8
pop ebx
push str.Windows_98
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x124], esi
jae 0x4c5fcc
cmp dword [ebp - 0x120], 0x438
jbe 0x4c5fcc
push 4
pop ebx
push str.Windows_95_OEM_Service_Release_2
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 4
jne 0x4c61b3
cmp dword [ebp - 0x124], 0
jne 0x4c61b3
push 3
pop ebx
push str.Windows_95
jmp 0x4c61ac
cmp dword [ebp - 0x11c], 3
jne 0x4c61b3
push 7
pop ebx
cmp dword [ebp - 0x128], esi
jne 0x4c6024
cmp dword [ebp - 0x124], 0
jne 0x4c61b3
push str.Windows_CE_1.0
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 2
jne 0x4c609f
cmp dword [ebp - 0x124], 0
jne 0x4c604b
push str.Windows_CE_2.0
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 2
jne 0x4c609f
cmp dword [ebp - 0x124], esi
jne 0x4c6068
push str.Windows_CE_2.1
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 2
jne 0x4c609f
cmp dword [ebp - 0x124], 0xb
jne 0x4c6086
push str.Windows_CE_2.11
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 2
jne 0x4c609f
cmp dword [ebp - 0x124], 0xc
jne 0x4c61b3
push str.Windows_CE_2.12
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 3
jne 0x4c60c1
cmp dword [ebp - 0x124], 0
jne 0x4c61b3
push str.Windows_CE_3.0
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 4
jne 0x4c613c
cmp dword [ebp - 0x124], 0
jne 0x4c60e8
push str.Windows_CE_4.0
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 4
jne 0x4c613c
cmp dword [ebp - 0x124], esi
jne 0x4c6105
push str.Windows_CE_4.1
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 4
jne 0x4c613c
cmp dword [ebp - 0x124], 2
jne 0x4c6123
push str.Windows_CE_4.2
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 4
jne 0x4c613c
cmp dword [ebp - 0x124], 0x15
jne 0x4c61b3
push str.Windows_CE_4.21
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c6195
cmp dword [ebp - 0x124], 0
jne 0x4c6163
push str.Windows_CE_5.0
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c6195
cmp dword [ebp - 0x124], esi
jne 0x4c6180
push str.Windows_CE_5.1
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 5
jne 0x4c6195
cmp dword [ebp - 0x124], 2
jne 0x4c61b3
push str.Windows_CE_5.2
mov ecx, edi
call fcn.0043a9d7
cmp dword [ebp - 0x128], 6
jne 0x4c61b3
cmp dword [ebp - 0x124], 0
jne 0x4c61b3
push 0x5aa6f0
mov ecx, edi
call fcn.0043a9d7
mov eax, ebx
call fcn.004fba53
ret