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

Disassembly:
sub esp, 0x1c8
mov eax, dword [0x4e3e9c]
xor eax, esp
mov dword [esp + 0x1c4], eax
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x9c
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.0048f440
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0x9c
call edi
test eax, eax
jne 0x4a440d
push 0x94
push eax
lea eax, [esp + 0x38]
push eax
call fcn.0048f440
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x94
call edi
test eax, eax
jne 0x4a440d
pop edi
pop esi
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.0048e5ae
add esp, 0x1c8
ret
movzx edi, word [esp + 0xc4]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esi + 0x14], edi
movzx edi, word [esp + 0xc6]
mov dword [esi + 8], ecx
sub ecx, 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], edi
je 0x4a48a7
sub ecx, 1
je 0x4a4803
sub ecx, 1
jne 0x4a48bd
cmp edx, 4
ja 0x4a4473
push str.Microsoft_Windows_NT
mov edx, dword [esi + 0x1c]
push 0x400
push edx
call fcn.0048ef9c
add esp, 0xc
jmp 0x4a45a2
cmp edx, 5
jne 0x4a4549
test eax, eax
jne 0x4a448a
push str.Microsoft_Windows_2000
jmp 0x4a4531
cmp eax, 1
jne 0x4a44f0
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_XP
push 0x400
push ecx
call fcn.0048ef9c
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0x57
call edi
test eax, eax
je 0x4a44c9
mov edx, dword [esi + 0x1c]
push str.Media_Center_Edition
push 0x400
push edx
call fcn.00436830
add esp, 0xc
push 0x56
call edi
test eax, eax
je 0x4a45a2
mov eax, dword [esi + 0x1c]
push str.Tablet_PC_Edition
push 0x400
push eax
call fcn.00436830
add esp, 0xc
jmp 0x4a45a2
cmp eax, 2
jne 0x4a4544
cmp byte [esp + 0xca], 1
jne 0x4a452c
cmp word [esp + 0xc], 6
jne 0x4a4522
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_XP_IA64
push 0x400
push ecx
call fcn.0048ef9c
add esp, 0xc
jmp 0x4a45a2
push str.Microsoft_Windows_XP_x64
jmp 0x4a445d
push str.Microsoft_Windows_Server_2003
mov eax, dword [esi + 0x1c]
push 0x400
push eax
call fcn.0048ef9c
add esp, 0xc
jmp 0x4a45a2
push eax
push 5
jmp 0x4a458c
cmp edx, 6
push eax
jne 0x4a458b
push edx
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_Vista___d._d_
push 0x400
push edx
call fcn.00436a40
movzx eax, word [esp + 0xda]
movzx ecx, word [esp + 0xd8]
mov edx, dword [esp + 0x4c]
add esp, 0x14
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
mov ecx, esi
call fcn.004a41b0
jmp 0x4a45a2
push edx
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_NT_d._d
push 0x400
push ecx
call fcn.00436a40
add esp, 0x14
mov al, byte [esp + 0xca]
cmp al, 1
jne 0x4a45fc
mov eax, dword [esp + 0x34]
cmp eax, 4
jne 0x4a45c0
push str.Workstation_4.0
jmp 0x4a46e2
cmp eax, 5
jne 0x4a46f3
test dword [esp + 0xc8], 0x200
je 0x4a45e9
mov eax, dword [esi + 0x1c]
push str.Home_Edition
push 0x400
push eax
jmp 0x4a46eb
mov ecx, dword [esi + 0x1c]
push str.Professional
push 0x400
push ecx
jmp 0x4a46eb
cmp al, 3
je 0x4a4608
cmp al, 2
jne 0x4a46f3
mov eax, dword [esp + 0x34]
cmp eax, 5
jne 0x4a46be
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x4a4680
mov eax, dword [esp + 0xc8]
test al, al
jns 0x4a4633
push str.Datacenter_Edition
jmp 0x4a46e2
test al, 2
je 0x4a464a
mov eax, dword [esi + 0x1c]
push str.Enterprise_Edition
push 0x400
push eax
jmp 0x4a46eb
cmp ax, 0x400
jne 0x4a4663
mov ecx, dword [esi + 0x1c]
push str.Web_Edition
push 0x400
push ecx
jmp 0x4a46eb
cmp ax, 1
jne 0x4a4670
push str.Small_Business_Edition
jmp 0x4a46e2
mov eax, dword [esi + 0x1c]
push str.Standard_Edition
push 0x400
push eax
jmp 0x4a46eb
test eax, eax
jne 0x4a47c3
mov al, byte [esp + 0xc8]
test al, al
jns 0x4a46a3
mov ecx, dword [esi + 0x1c]
push str.Datacenter_Server
push 0x400
push ecx
jmp 0x4a46eb
test al, 2
je 0x4a46ae
push str.Advanced_Server
jmp 0x4a46e2
mov eax, dword [esi + 0x1c]
push str.Server
push 0x400
push eax
jmp 0x4a46eb
cmp eax, 4
ja 0x4a46f3
test byte [esp + 0xc8], 2
je 0x4a46dd
mov ecx, dword [esi + 0x1c]
push str.Server_4.0__Enterprise_Edition
push 0x400
push ecx
jmp 0x4a46eb
push str.Server_4.0
mov edx, dword [esi + 0x1c]
push 0x400
push edx
call fcn.00436830
add esp, 0xc
cmp dword [esp + 0x34], 4
jne 0x4a47c3
push str.Service_Pack_6
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4a47c3
lea ecx, [esp + 8]
push ecx
push 1
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4a4778
movzx edx, word [esp + 0x3c]
push edx
push str.Service_Pack_6a__Build__d_
lea eax, [esp + 0xd4]
push 0x100
push eax
call fcn.00436a40
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xdc]
push ecx
push 0x200
push edx
call fcn.00436a40
mov edx, dword [esp + 0x24]
add esp, 0x1c
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a48bd
movzx eax, word [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push str._s__Build__d_
lea edx, [esp + 0xd8]
push 0x100
push edx
call fcn.00436a40
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0xe0]
push eax
push 0x200
push ecx
call fcn.00436a40
mov edx, dword [esp + 0x28]
add esp, 0x20
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a48bd
movzx eax, word [esp + 0x3c]
push eax
lea ecx, [esp + 0x48]
push ecx
push str._s__Build__d_
lea edx, [esp + 0xd8]
push 0x100
push edx
call fcn.00436a40
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0xe0]
push eax
push 0x200
push ecx
call fcn.00436a40
add esp, 0x20
jmp 0x4a48bd
cmp edx, 4
jne 0x4a4897
test eax, eax
jne 0x4a484b
mov edx, dword [esi + 0x1c]
push str.Microsoft_Windows_95
push 0x400
push edx
call fcn.0048ef9c
mov al, byte [esp + 0x51]
add esp, 0xc
cmp al, 0x43
je 0x4a4836
cmp al, 0x42
jne 0x4a48bd
mov eax, dword [esi + 0x1c]
push str._OSR2
push 0x400
push eax
call fcn.00436830
jmp 0x4a48ba
cmp eax, 0xa
jne 0x4a4882
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_98
push 0x400
push ecx
call fcn.0048ef9c
add esp, 0xc
cmp byte [esp + 0x45], 0x41
jne 0x4a48bd
mov edx, dword [esi + 0x1c]
push str._SE
push 0x400
push edx
call fcn.00436830
jmp 0x4a48ba
cmp eax, 0x5a
jne 0x4a48bd
mov eax, dword [esi + 0x1c]
push str.Microsoft_Windows_Millennium_Edition
push 0x400
push eax
jmp 0x4a48b5
mov ecx, dword [esi + 0x1c]
push str.Microsoft_Windows_9x
push 0x400
push ecx
jmp 0x4a48b5
mov edx, dword [esi + 0x1c]
push str.Microsoft_Win32s
push 0x400
push edx
call fcn.0048ef9c
add esp, 0xc
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.0048e5ae
add esp, 0x1c8
ret