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

Disassembly:
push ebp
lea ebp, [esp - 0x148]
sub esp, 0x1c8
mov eax, dword [0x56bbe0]
xor eax, ebp
mov dword [ebp + 0x144], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, 0x9c
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004aa1b0
add esp, 0xc
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push eax
call edi
test eax, eax
jne 0x48c073
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004aa1b0
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], ebx
call edi
test eax, eax
je 0x48c442
movzx edi, word [ebp + 0x3c]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x14], edi
movzx edi, word [ebp + 0x3e]
mov dword [esi + 8], eax
sub eax, 0
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x18], edi
je 0x48c42a
dec eax
je 0x48c3b4
dec eax
jne 0x48c43f
cmp edx, 4
ja 0x48c0ca
push str.Microsoft_Windows_NT
mov edi, 0x400
push edi
push dword [esi + 0x1c]
call fcn.004aaf1c
add esp, 0xc
jmp 0x48c203
cmp edx, 5
jne 0x48c16e
test ecx, ecx
jne 0x48c0de
push str.Microsoft_Windows_2000
jmp 0x48c0b4
cmp ecx, 1
jne 0x48c134
push str.Microsoft_Windows_XP
mov edi, 0x400
push edi
push dword [esi + 0x1c]
call fcn.004aaf1c
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0x57
call ebx
test eax, eax
je 0x48c118
push str.Media_Center_Edition
push edi
push dword [esi + 0x1c]
call fcn.00404cb7
add esp, 0xc
push 0x56
call ebx
test eax, eax
je 0x48c203
push str.Tablet_PC_Edition
push edi
push dword [esi + 0x1c]
call fcn.00404cb7
jmp 0x48c0c2
cmp ecx, 2
jne 0x48c169
cmp byte [ebp + 0x42], 1
jne 0x48c15f
cmp word [ebp - 0x80], 6
mov edi, 0x400
jne 0x48c155
push str.Microsoft_Windows_XP_IA64
jmp 0x48c0b9
push str.Microsoft_Windows_XP_x64
jmp 0x48c0b9
push str.Microsoft_Windows_Server_2003
jmp 0x48c0b4
push ecx
push 5
jmp 0x48c1ed
push 6
pop eax
cmp edx, eax
jne 0x48c1eb
mov edi, 0x400
test ecx, ecx
jne 0x48c194
cmp byte [ebp + 0x42], 1
jne 0x48c18d
push ecx
push eax
push str.Microsoft_Windows_Vista___d._d_
jmp 0x48c1c6
push str.Microsoft_Windows_Server_2008
jmp 0x48c1ac
cmp ecx, 1
jne 0x48c1ba
cmp byte [ebp + 0x42], cl
jne 0x48c1a7
push ecx
push eax
push str.Microsoft_Windows_7___d._d_
jmp 0x48c1c6
push str.Microsoft_Windows_Server_2008_R2
push edi
push dword [esi + 0x1c]
call fcn.004aaf1c
add esp, 0xc
jmp 0x48c1d2
cmp ecx, 2
jne 0x48c1d2
push ecx
push eax
push str.Microsoft_Windows_8___d._d_
push edi
push dword [esi + 0x1c]
call fcn.00404c23
add esp, 0x14
movzx eax, word [ebp + 0x3e]
push eax
movzx eax, word [ebp + 0x3c]
push eax
push dword [ebp - 0x50]
mov ecx, esi
push dword [ebp - 0x54]
call fcn.0048be6a
jmp 0x48c203
push ecx
push edx
push str.Microsoft_Windows_NT_d._d
mov edi, 0x400
push edi
push dword [esi + 0x1c]
call fcn.00404c23
add esp, 0x14
cmp byte [ebp + 0x42], 1
mov ebx, 0x200
jne 0x48c241
cmp dword [ebp - 0x54], 4
jne 0x48c21e
push str.Workstation_4.0
jmp 0x48c2df
cmp dword [ebp - 0x54], 5
jne 0x48c2eb
test dword [ebp + 0x40], ebx
je 0x48c237
push str.Home_Edition
jmp 0x48c2df
push str.Professional
jmp 0x48c2df
cmp byte [ebp + 0x42], 3
je 0x48c251
cmp byte [ebp + 0x42], 2
jne 0x48c2eb
cmp dword [ebp - 0x54], 5
jne 0x48c2c3
cmp dword [ebp - 0x50], 2
jne 0x48c298
mov eax, dword [ebp + 0x40]
test al, al
jns 0x48c26b
push str.Datacenter_Edition
jmp 0x48c2df
test al, 2
je 0x48c276
push str.Enterprise_Edition
jmp 0x48c2df
mov ecx, edi
cmp ax, cx
jne 0x48c284
push str.Web_Edition
jmp 0x48c2df
cmp ax, 1
jne 0x48c291
push str.Small_Business_Edition
jmp 0x48c2df
push str.Standard_Edition
jmp 0x48c2df
cmp dword [ebp - 0x50], 0
jne 0x48c383
test byte [ebp + 0x40], 0x80
je 0x48c2af
push str.Datacenter_Server
jmp 0x48c2df
test byte [ebp + 0x40], 2
je 0x48c2bc
push str.Advanced_Server
jmp 0x48c2df
push str.Server
jmp 0x48c2df
cmp dword [ebp - 0x54], 4
ja 0x48c383
test byte [ebp + 0x40], 2
je 0x48c2da
push str.Server_4.0__Enterprise_Edition
jmp 0x48c2df
push str.Server_4.0
push edi
push dword [esi + 0x1c]
call fcn.00404cb7
add esp, 0xc
cmp dword [ebp - 0x54], 4
jne 0x48c383
push str.Service_Pack_6
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x48c383
lea eax, [ebp - 0x5c]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionHotfixQ246009
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
movzx eax, word [ebp - 0x4c]
push eax
jne 0x48c34e
push str.Service_Pack_6a__Build__d_
lea eax, [ebp + 0x44]
push 0x100
push eax
call fcn.00404c23
lea eax, [ebp + 0x44]
push eax
push ebx
push dword [esi + 0x20]
call fcn.00404c23
add esp, 0x1c
jmp 0x48c375
lea eax, [ebp - 0x44]
push eax
push str._s__Build__d_
lea eax, [ebp + 0x44]
push 0x100
push eax
call fcn.00404c23
lea eax, [ebp + 0x44]
push eax
push ebx
push dword [esi + 0x20]
call fcn.00404c23
add esp, 0x20
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48c43f
movzx eax, word [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push str._s__Build__d_
lea eax, [ebp + 0x44]
push 0x100
push eax
call fcn.00404c23
lea eax, [ebp + 0x44]
push eax
push ebx
push dword [esi + 0x20]
call fcn.00404c23
add esp, 0x20
jmp 0x48c43f
cmp edx, 4
jne 0x48c423
test ecx, ecx
jne 0x48c3ef
push str.Microsoft_Windows_95
mov edi, 0x400
push edi
push dword [esi + 0x1c]
call fcn.004aaf1c
add esp, 0xc
cmp byte [ebp - 0x43], 0x43
je 0x48c3df
cmp byte [ebp - 0x43], 0x42
jne 0x48c43f
push str._OSR2
push edi
push dword [esi + 0x1c]
call fcn.00404cb7
jmp 0x48c43c
cmp ecx, 0xa
jne 0x48c417
push str.Microsoft_Windows_98
mov edi, 0x400
push edi
push dword [esi + 0x1c]
call fcn.004aaf1c
add esp, 0xc
cmp byte [ebp - 0x43], 0x41
jne 0x48c43f
push str._SE
jmp 0x48c3e4
cmp ecx, 0x5a
jne 0x48c43f
push str.Microsoft_Windows_Millennium_Edition
jmp 0x48c42f
push str.Microsoft_Windows_9x
jmp 0x48c42f
push str.Microsoft_Win32s
push 0x400
push dword [esi + 0x1c]
call fcn.004aaf1c
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x144]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a9399
add ebp, 0x148
leave
ret