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

Disassembly:
push 0x160
mov eax, 0x4c9ab2
call fcn.0044d7c5
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.0044d1b0
mov esi, 0x11c
push esi
lea eax, [ebp - 0x12c]
push ebx
push eax
call fcn.0044d1b0
add esp, 0x18
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x12c], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, ebx
jne 0x4347d7
xor eax, eax
jmp 0x435164
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4347fd
lea ecx, [ebp - 0x16c]
push ecx
call eax
jmp 0x43480a
lea eax, [ebp - 0x16c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x11c], 2
jne 0x434ec1
cmp dword [ebp - 0x128], 4
jbe 0x434e6f
push 0x4d02f4
mov ecx, edi
call fcn.004116d4
cmp dword [ebp - 0x128], 6
mov esi, str.Enterprise_Edition
jne case.0x434a8f.5
cmp dword [ebp - 0x124], 2
jne 0x4349e2
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
push str.CurrentVersion
call fcn.0041217e
and dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.HKEY_LOCAL_MACHINE
mov byte [ebp - 4], 1
call fcn.0041217e
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x138]
push eax
call fcn.00418222
add esp, 0x10
push 0x4d6b0c
lea ecx, [ebp - 0x138]
mov dword [ebp - 4], 2
call fcn.0040fd18
mov ebx, str.Windows_10
test eax, eax
jne 0x4348d4
mov dword [ebp - 0x130], 0x1b
push str.Windows_8
jmp 0x434929
push 0x4d0b74
lea ecx, [ebp - 0x138]
call fcn.0040fd18
test eax, eax
jne 0x4348f9
mov dword [ebp - 0x130], 0x1e
push str.Windows_8.1
jmp 0x434929
push 0x4d0b6c
lea ecx, [ebp - 0x138]
call fcn.0040fd18
test eax, eax
jne 0x43491a
mov dword [ebp - 0x130], 0x1f
push ebx
jmp 0x434929
mov dword [ebp - 0x130], 0x20
push str.Windows
mov ecx, edi
call fcn.0041efeb
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.CurrentMajorVersionNumber
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [ebp - 4], 3
call fcn.0041217e
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov byte [ebp - 4], 2
call fcn.00417188
add esp, 8
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.CurrentMinorVersionNumber
mov dword [ebp - 0x134], eax
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [ebp - 4], 4
call fcn.0041217e
push esi
mov byte [ebp - 4], 2
call fcn.00417188
add esp, 0xc
cmp dword [ebp - 0x134], 0xa
jne 0x4349c7
test eax, eax
jne 0x4349c7
push ebx
mov ecx, edi
mov dword [ebp - 0x130], 0x1f
call fcn.004116d4
mov ecx, dword [ebp - 0x138]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.0040f083
mov esi, str.Enterprise_Edition
xor ebx, ebx
jmp 0x434a4a
cmp dword [ebp - 0x124], 1
jne 0x434a15
cmp byte [ebp - 0x12], 1
mov ecx, edi
jne 0x434a04
mov dword [ebp - 0x130], 0x17
push str.Windows_7
jmp 0x434a45
mov dword [ebp - 0x130], 0x19
push str.Windows_Server_2008_R2
jmp 0x434a45
cmp dword [ebp - 0x124], ebx
jne 0x434a4a
cmp byte [ebp - 0x12], 1
mov ecx, edi
jne 0x434a36
mov dword [ebp - 0x130], 0x13
push str.Windows_Vista
jmp 0x434a45
mov dword [ebp - 0x130], 0x15
push str.Windows_Server_2008
call fcn.0041efeb
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 ebx
push ebx
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call eax
mov eax, dword [ebp - 0x144]
cmp eax, 0x19
ja 0x434b02
je 0x434afb
dec eax
cmp eax, 0x11
ja case.0x434a8f.5
jmp dword [eax*4 + 0x43516a]
push 0x4d69f8
jmp 0x434b0c
push str.Home_Premium_Edition
jmp 0x434b0c
push str.Home_Basic_Edition
jmp 0x434b0c
push esi
jmp 0x434b0c
push str.Business_Edition
jmp 0x434b0c
push str.Starter_Edition
jmp 0x434b0c
push str.HPC_Server_Edition
jmp 0x434b0c
push str.Datacenter_Edition
jmp 0x434b0c
push str.Datacenter_Edition__core_installation_
jmp 0x434b0c
push str.Enterprise_Edition__core_installation_
jmp 0x434b0c
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x434b0c
push str.Small_Business_Server
jmp 0x434b0c
push str.Standard_Edition
jmp 0x434b0c
push str.Standard_Edition__core_installation_
jmp 0x434b0c
push str.Web_Server_Edition
jmp 0x434b0c
push str.Small_Business_Server_Premium_Edition
jmp 0x434b0c
cmp eax, 0x30
jne case.0x434a8f.5
push 0x4d66f0
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x434d2b
cmp dword [ebp - 0x124], 2
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
jne 0x434c5c
push 0x59
call ebx
test eax, eax
je 0x434b4c
mov dword [ebp - 0x130], 0x11
push str.Windows_Server_2003_R2_
jmp 0x434b9c
test dword [ebp - 0x14], 0x2000
je 0x434b5c
push str.Windows_Storage_Server_2003
jmp 0x434b92
test dword [ebp - 0x14], 0x8000
je 0x434b6c
push str.Windows_Home_Server_2003
jmp 0x434b92
cmp byte [ebp - 0x12], 1
jne 0x434b8d
cmp word [ebp - 0x16c], 9
jne 0x434b8d
mov dword [ebp - 0x130], 0xe
push str.Windows_XP_Professional_x64_Edition
jmp 0x434b9c
push str.Windows_Server_2003_
mov dword [ebp - 0x130], 0xf
mov ecx, edi
call fcn.0041efeb
cmp byte [ebp - 0x12], 1
je 0x434c4f
cmp word [ebp - 0x16c], 6
jne 0x434bdb
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0x10
je 0x434bce
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x434c48
test byte [ebp - 0x14], 2
je 0x434c4f
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x434c48
cmp word [ebp - 0x16c], 9
jne 0x434c12
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0x10
je 0x434bfc
push str.Datacenter_x64_Edition
jmp 0x434c48
test byte [ebp - 0x14], 2
mov ecx, edi
je 0x434c0b
push str.Enterprise_x64_Edition
jmp 0x434c4a
push str.Standard_x64_Edition
jmp 0x434c4a
mov eax, dword [ebp - 0x14]
test eax, 0x4000
je 0x434c23
push str.Compute_Cluster_Edition
jmp 0x434c48
test al, al
jns 0x434c2e
push str.Datacenter_Edition
jmp 0x434c48
test al, 2
je 0x434c35
push esi
jmp 0x434c48
test eax, 0x400
je 0x434c43
push str.Web_Edition
jmp 0x434c48
push str.Standard_Edition
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x434d2b
cmp dword [ebp - 0x124], 1
mov esi, str.Professional
jne 0x434cd3
push str.Windows_XP
mov ecx, edi
mov dword [ebp - 0x130], 0xd
call fcn.0041efeb
test dword [ebp - 0x14], 0x200
mov ecx, edi
je 0x434c92
push str.Home_Edition
jmp 0x434c93
push esi
call fcn.0041efeb
push 0x57
call ebx
test eax, eax
je 0x434ca7
push str.Media_Center_Edition
jmp 0x434cc3
push 0x58
call ebx
test eax, eax
je 0x434cb6
push str.Starter_Edition
jmp 0x434cc3
push 0x56
call ebx
test eax, eax
je 0x434cca
push str.Tablet_PC_Edition
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x434d2b
cmp dword [ebp - 0x124], 0
jne 0x434d2b
push str.Windows_2000
mov ecx, edi
call fcn.0041efeb
cmp byte [ebp - 0x12], 1
jne 0x434cfb
mov dword [ebp - 0x130], 0xb
push esi
jmp 0x434d24
test byte [ebp - 0x14], 0x80
mov dword [ebp - 0x130], 0xc
je 0x434d12
push str.Datacenter_Server
jmp 0x434d24
test byte [ebp - 0x14], 2
je 0x434d1f
push str.Advanced_Server
jmp 0x434d24
push str.Server
mov ecx, edi
call fcn.0041efeb
lea eax, [ebp - 0x118]
push eax
call fcn.0044c78e
pop ecx
test eax, eax
je 0x434d56
push 0x4d0f60
mov ecx, edi
call fcn.0041efeb
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call fcn.0041efeb
push 0x502868
lea ecx, [ebp - 0x134]
call fcn.0040fd3c
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
push str.CurrentBuildNumber
mov dword [ebp - 4], 5
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x140], esp
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [ebp - 4], 6
call fcn.0041217e
push ecx
mov ecx, esp
mov dword [ebp - 0x138], esp
push str.HKEY_LOCAL_MACHINE
mov byte [ebp - 4], 7
call fcn.0041217e
lea eax, [ebp - 0x13c]
push eax
mov byte [ebp - 4], 5
call fcn.00418222
add esp, 0x10
mov eax, dword [ebp - 0x13c]
cmp dword [eax - 0xc], 0
mov byte [ebp - 4], 8
jne 0x434dde
push dword [ebp - 0x120]
push str.__Build__d_
jmp 0x434de4
push eax
push str.__Build__s_
lea eax, [ebp - 0x134]
push eax
call fcn.0041182d
add esp, 0xc
push str.9431
lea ecx, [ebp - 0x13c]
call fcn.0040fd18
test eax, eax
jne 0x434e13
push str._Preview
mov ecx, edi
call fcn.0041efeb
mov esi, dword [ebp - 0x134]
push dword [esi - 0xc]
mov ecx, edi
push esi
call fcn.0041ed16
cmp dword [ebp - 0x128], 6
jb 0x434e54
cmp word [ebp - 0x16c], 9
jne 0x434e3e
push str.__64_bit
jmp 0x434e4d
cmp word [ebp - 0x16c], 0
jne 0x434e54
push str.__32_bit
mov ecx, edi
call fcn.0041efeb
mov ecx, dword [ebp - 0x13c]
add ecx, 0xfffffff0
call fcn.0040f083
lea ecx, [esi - 0x10]
call fcn.0040f083
jmp 0x43515e
jne 0x434e93
cmp dword [ebp - 0x124], ebx
jne 0x43515e
push str.Windows_NT4
mov ecx, edi
mov dword [ebp - 0x130], 6
call fcn.0041efeb
cmp dword [ebp - 0x128], 3
jne 0x43515e
cmp dword [ebp - 0x124], 0x33
jne 0x43515e
mov dword [ebp - 0x130], 5
push str.Windows_NT_3.51
jmp 0x435157
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x11c], ebx
jne 0x434f98
push 4
pop ebx
cmp dword [ebp - 0x128], ebx
jne 0x43515e
cmp dword [ebp - 0x124], 0x5a
push 0xa
pop esi
jne 0x434efd
push str.Windows_Millennium_Edition
mov ecx, edi
mov dword [ebp - 0x130], esi
call fcn.0041efeb
cmp dword [ebp - 0x124], esi
jne 0x434f4b
cmp dword [ebp - 0x120], 0x887
jb 0x434f2f
push str.Windows_98_Second_Edition
mov ecx, edi
mov dword [ebp - 0x130], 9
call fcn.0041efeb
cmp dword [ebp - 0x124], esi
jne 0x434f4b
push str.Windows_98
mov ecx, edi
mov dword [ebp - 0x130], 8
call fcn.0041efeb
cmp dword [ebp - 0x124], esi
jae 0x434f6b
cmp dword [ebp - 0x120], 0x438
jbe 0x434f6b
push str.Windows_95_OEM_Service_Release_2
mov ecx, edi
mov dword [ebp - 0x130], ebx
call fcn.0041efeb
cmp dword [ebp - 0x128], ebx
jne 0x43515e
cmp dword [ebp - 0x124], 0
jne 0x43515e
mov dword [ebp - 0x130], 3
push str.Windows_95
jmp 0x435157
cmp dword [ebp - 0x11c], 3
jne 0x43515e
mov dword [ebp - 0x130], 7
cmp dword [ebp - 0x128], ebx
jne 0x434fd0
cmp dword [ebp - 0x124], 0
jne 0x43515e
push str.Windows_CE_1.0
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 2
jne 0x43504b
cmp dword [ebp - 0x124], 0
jne 0x434ff7
push str.Windows_CE_2.0
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 2
jne 0x43504b
cmp dword [ebp - 0x124], ebx
jne 0x435014
push str.Windows_CE_2.1
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 2
jne 0x43504b
cmp dword [ebp - 0x124], 0xb
jne 0x435032
push str.Windows_CE_2.11
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 2
jne 0x43504b
cmp dword [ebp - 0x124], 0xc
jne 0x43515e
push str.Windows_CE_2.12
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 3
jne 0x43506d
cmp dword [ebp - 0x124], 0
jne 0x43515e
push str.Windows_CE_3.0
mov ecx, edi
call fcn.0041efeb
push 4
pop esi
cmp dword [ebp - 0x128], esi
jne 0x4350e7
cmp dword [ebp - 0x124], 0
jne 0x435095
push str.Windows_CE_4.0
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], esi
jne 0x4350e7
cmp dword [ebp - 0x124], ebx
jne 0x4350b1
push str.Windows_CE_4.1
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], esi
jne 0x4350e7
cmp dword [ebp - 0x124], 2
jne 0x4350ce
push str.Windows_CE_4.2
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], esi
jne 0x4350e7
cmp dword [ebp - 0x124], 0x15
jne 0x43515e
push str.Windows_CE_4.21
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x435140
cmp dword [ebp - 0x124], 0
jne 0x43510e
push str.Windows_CE_5.0
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x435140
cmp dword [ebp - 0x124], ebx
jne 0x43512b
push str.Windows_CE_5.1
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 5
jne 0x435140
cmp dword [ebp - 0x124], 2
jne 0x43515e
push str.Windows_CE_5.2
mov ecx, edi
call fcn.0041efeb
cmp dword [ebp - 0x128], 6
jne 0x43515e
cmp dword [ebp - 0x124], 0
jne 0x43515e
push str.Windows_CE_6.0
mov ecx, edi
call fcn.0041efeb
mov eax, dword [ebp - 0x130]
call fcn.0044d848
ret