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

Disassembly:
push ebp
lea ebp, [esp - 0x154]
sub esp, 0x1d4
mov eax, dword [0x614b80]
xor eax, ebp
mov dword [ebp + 0x150], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x80]
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov esi, 0x9c
push esi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.0057ad60
add esp, 0xc
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push eax
call esi
test eax, eax
jne 0x55390a
mov ebx, 0x94
push ebx
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0057ad60
add esp, 0xc
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], ebx
call esi
test eax, eax
je 0x553d85
call fcn.0043b760
mov eax, dword [eax + 0x1c]
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.0054ece7
test eax, eax
je 0x553942
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x48]
jbe 0x553942
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ecx
jmp 0x553945
mov eax, dword [ebp - 0x44]
movzx esi, word [ebp + 0x48]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
mov dword [edi + 0x14], esi
movzx esi, word [ebp + 0x4a]
mov dword [edi + 8], ecx
sub ecx, 0
mov dword [edi + 0xc], edx
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
je 0x553d6d
dec ecx
je 0x553cf7
dec ecx
jne 0x553d82
push eax
push edx
mov ebx, str.Microsoft_Windows_NT_d._d
push ebx
mov esi, 0x400
push esi
push dword [edi + 0x1c]
call fcn.00439b20
mov ecx, dword [ebp - 0x48]
add esp, 0x14
cmp ecx, 4
ja 0x5539b0
push str.Microsoft_Windows_NT
push esi
push dword [edi + 0x1c]
call fcn.0057a7c3
add esp, 0xc
jmp 0x553b46
cmp ecx, 5
jne 0x553a50
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x5539c7
push str.Microsoft_Windows_2000
jmp 0x55399f
cmp eax, 1
jne 0x553a18
push str.Microsoft_Windows_XP
push esi
push dword [edi + 0x1c]
call fcn.0057a7c3
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
add esp, 0xc
push 0x57
call ebx
test eax, eax
je 0x5539fc
push str.Media_Center_Edition
push esi
push dword [edi + 0x1c]
call fcn.00439c00
add esp, 0xc
push 0x56
call ebx
test eax, eax
je 0x553b46
push str.Tablet_PC_Edition
push esi
push dword [edi + 0x1c]
call fcn.00439c00
jmp 0x5539a8
cmp eax, 2
jne 0x553a48
cmp byte [ebp + 0x4e], 1
jne 0x553a3e
cmp word [ebp - 0x80], 6
jne 0x553a34
push str.Microsoft_Windows_XP_IA64
jmp 0x55399f
push str.Microsoft_Windows_XP_x64
jmp 0x55399f
push str.Microsoft_Windows_Server_2003
jmp 0x55399f
push eax
push 5
jmp 0x553b39
push 6
pop eax
cmp ecx, eax
jne 0x553b04
mov ecx, dword [ebp - 0x44]
test ecx, ecx
jne 0x553a78
cmp byte [ebp + 0x4e], 1
jne 0x553a71
push ecx
push eax
push str.Microsoft_Windows_Vista___d._d_
jmp 0x553adf
push str.Microsoft_Windows_Server_2008
jmp 0x553abf
cmp ecx, 1
jne 0x553a92
cmp byte [ebp + 0x4e], cl
jne 0x553a8b
push ecx
push eax
push str.Microsoft_Windows_7___d._d_
jmp 0x553adf
push str.Microsoft_Windows_Server_2008_R2
jmp 0x553abf
cmp ecx, 2
jne 0x553aa6
cmp byte [ebp + 0x4e], 1
jne 0x553aba
push ecx
push eax
push str.Microsoft_Windows_8___d._d_
jmp 0x553adf
cmp ecx, 3
jne 0x553acd
cmp byte [ebp + 0x4e], 1
jne 0x553aba
push ecx
push eax
push str.Microsoft_Windows_8.1___d._d_
jmp 0x553adf
push str.Microsoft_Windows_Server_2012_R2
push esi
push dword [edi + 0x1c]
call fcn.0057a7c3
add esp, 0xc
jmp 0x553aeb
cmp ecx, 4
jne 0x553aeb
cmp byte [ebp + 0x4e], 1
push ecx
push eax
je 0x553b1e
push str.Microsoft_Windows_Server___d._d_
push esi
push dword [edi + 0x1c]
call fcn.00439b20
add esp, 0x14
movzx eax, word [ebp + 0x4a]
push eax
movzx eax, word [ebp + 0x48]
push eax
push dword [ebp - 0x44]
mov ecx, edi
push dword [ebp - 0x48]
call fcn.00553460
jmp 0x553b46
push 0xa
pop eax
push dword [ebp - 0x44]
cmp ecx, eax
jne 0x553b25
cmp byte [ebp + 0x4e], 1
push eax
jne 0x553ada
cmp dword [ebp - 0x40], 0x55ec
jae 0x553b31
push str.Microsoft_Windows_10___d._d_
jmp 0x553adf
cmp ecx, 0xb
jne 0x553b38
cmp byte [ebp + 0x4e], 1
push ecx
jne 0x553ada
push str.Microsoft_Windows_11___d._d_
jmp 0x553adf
push ecx
push ebx
push esi
push dword [edi + 0x1c]
call fcn.00439b20
add esp, 0x14
cmp byte [ebp + 0x4e], 1
mov ebx, 0x200
jne 0x553b84
cmp dword [ebp - 0x48], 4
jne 0x553b61
push str.Workstation_4.0
jmp 0x553c22
cmp dword [ebp - 0x48], 5
jne 0x553c2e
test dword [ebp + 0x4c], ebx
je 0x553b7a
push str.Home_Edition
jmp 0x553c22
push str.Professional
jmp 0x553c22
cmp byte [ebp + 0x4e], 3
je 0x553b94
cmp byte [ebp + 0x4e], 2
jne 0x553c2e
cmp dword [ebp - 0x48], 5
jne 0x553c06
cmp dword [ebp - 0x44], 2
jne 0x553bdb
mov eax, dword [ebp + 0x4c]
test al, al
jns 0x553bae
push str.Datacenter_Edition
jmp 0x553c22
test al, 2
je 0x553bb9
push str.Enterprise_Edition
jmp 0x553c22
mov ecx, esi
cmp ax, cx
jne 0x553bc7
push str.Web_Edition
jmp 0x553c22
cmp ax, 1
jne 0x553bd4
push str.Small_Business_Edition
jmp 0x553c22
push str.Standard_Edition
jmp 0x553c22
cmp dword [ebp - 0x44], 0
jne 0x553cc6
test byte [ebp + 0x4c], 0x80
je 0x553bf2
push str.Datacenter_Server
jmp 0x553c22
test byte [ebp + 0x4c], 2
je 0x553bff
push str.Advanced_Server
jmp 0x553c22
push str.Server
jmp 0x553c22
cmp dword [ebp - 0x48], 4
ja 0x553cc6
test byte [ebp + 0x4c], 2
je 0x553c1d
push str.Server_4.0__Enterprise_Edition
jmp 0x553c22
push str.Server_4.0
push esi
push dword [edi + 0x1c]
call fcn.00439c00
add esp, 0xc
cmp dword [ebp - 0x48], 4
jne 0x553cc6
push str.Service_Pack_6
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x553cc6
lea eax, [ebp - 0x50]
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 - 0x40]
push eax
jne 0x553c91
push str.Service_Pack_6a__Build__d_
lea eax, [ebp + 0x50]
push 0x100
push eax
call fcn.00439b20
lea eax, [ebp + 0x50]
push eax
push ebx
push dword [edi + 0x20]
call fcn.00439b20
add esp, 0x1c
jmp 0x553cb8
lea eax, [ebp - 0x38]
push eax
push str._s__Build__d_
lea eax, [ebp + 0x50]
push 0x100
push eax
call fcn.00439b20
lea eax, [ebp + 0x50]
push eax
push ebx
push dword [edi + 0x20]
call fcn.00439b20
add esp, 0x20
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x553d82
movzx eax, word [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
push str._s__Build__d_
lea eax, [ebp + 0x50]
push 0x100
push eax
call fcn.00439b20
lea eax, [ebp + 0x50]
push eax
push ebx
push dword [edi + 0x20]
call fcn.00439b20
add esp, 0x20
jmp 0x553d82
cmp edx, 4
jne 0x553d66
test eax, eax
jne 0x553d32
push str.Microsoft_Windows_95
mov esi, 0x400
push esi
push dword [edi + 0x1c]
call fcn.0057a7c3
add esp, 0xc
cmp byte [ebp - 0x37], 0x43
je 0x553d22
cmp byte [ebp - 0x37], 0x42
jne 0x553d82
push str._OSR2
push esi
push dword [edi + 0x1c]
call fcn.00439c00
jmp 0x553d7f
cmp eax, 0xa
jne 0x553d5a
push str.Microsoft_Windows_98
mov esi, 0x400
push esi
push dword [edi + 0x1c]
call fcn.0057a7c3
add esp, 0xc
cmp byte [ebp - 0x37], 0x41
jne 0x553d82
push str._SE
jmp 0x553d27
cmp eax, 0x5a
jne 0x553d82
push str.Microsoft_Windows_Millennium_Edition
jmp 0x553d72
push str.Microsoft_Windows_9x
jmp 0x553d72
push str.Microsoft_Win32s
push 0x400
push dword [edi + 0x1c]
call fcn.0057a7c3
add esp, 0xc
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x150]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057943e
add ebp, 0x154
leave
ret