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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afb80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov dword [esi], 3
mov dword [ebp - 4], 0
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0xec]
rep stosd dword es:[edi], eax
mov dword [ebp - 0xec], 0x9c
lea eax, [ebp - 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x54c113
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0xdc], 1
movzx ecx, al
mov dword [ebp - 0xe8], ecx
movzx edx, ah
mov dword [ebp - 0xe4], edx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
push str.GetNativeSystemInfo
push str.kernel32.dll
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x54c158
lea ecx, [ebp - 0x40]
push ecx
call eax
jmp 0x54c162
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xdc]
cmp eax, 1
jne 0x54c1b2
mov dword [esi], 4
cmp dword [ebp - 0xe8], 4
jne 0x54c61b
mov eax, dword [ebp - 0xe4]
cmp eax, 0xa
jae 0x54c191
mov dword [esi], 5
jne 0x54c19e
mov dword [esi], 6
jmp 0x54c61b
cmp eax, 0x5a
jne 0x54c61b
mov dword [esi], 7
jmp 0x54c61b
cmp eax, 2
jne 0x54c60c
mov dword [esi], 8
mov eax, dword [ebp - 0xe8]
cmp eax, 3
jne 0x54c1d7
mov dword [esi], 9
jmp 0x54c61b
cmp eax, 4
jne 0x54c1e7
mov dword [esi], 0xa
jmp 0x54c61b
cmp eax, 5
jne 0x54c32f
mov dword [esi], 0xb
mov eax, dword [ebp - 0xe4]
test eax, eax
jne 0x54c239
mov dword [esi], 0xc
cmp byte [ebp - 0x52], 1
jne 0x54c217
mov dword [esi], 0xd
jmp 0x54c61b
mov eax, dword [ebp - 0x54]
test al, al
jns 0x54c229
mov dword [esi], 0xe
jmp 0x54c61b
and al, 2
neg al
sbb eax, eax
add eax, 0x10
mov dword [esi], eax
jmp 0x54c61b
cmp eax, 1
jne 0x54c259
mov dword [esi], 0x11
mov eax, dword [ebp - 0x54]
shr eax, 9
not eax
and eax, 1
or eax, 0x12
mov dword [esi], eax
jmp 0x54c61b
cmp eax, 2
jne 0x54c61b
mov dword [esi], 0x14
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x54c27f
mov dword [esi], 0x15
mov eax, dword [ebp - 0x54]
jmp 0x54c2b9
mov eax, dword [ebp - 0x54]
cmp ax, 0x2000
jne 0x54c290
mov dword [esi], 0x16
jmp 0x54c2b9
cmp ax, 0x8000
jne 0x54c29e
mov dword [esi], 0x17
jmp 0x54c2b9
cmp byte [ebp - 0x52], 1
jne 0x54c2b3
cmp word [ebp - 0x40], 9
jne 0x54c2b3
mov dword [esi], 0x18
jmp 0x54c32f
mov dword [esi], 0x19
cmp byte [ebp - 0x52], 1
je 0x54c32f
mov ecx, dword [ebp - 0x40]
cmp cx, 6
jne 0x54c2e0
test al, al
jns 0x54c2d4
mov dword [esi], 0x1a
jmp 0x54c32f
test al, 2
je 0x54c32f
mov dword [esi], 0x1b
jmp 0x54c32f
cmp cx, 9
jne 0x54c2fd
test al, al
jns 0x54c2f2
mov dword [esi], 0x1c
jmp 0x54c32f
and al, 2
neg al
sbb eax, eax
add eax, 0x1e
jmp 0x54c32d
test ah, 0x40
je 0x54c30a
mov dword [esi], 0x1f
jmp 0x54c32f
test al, al
jns 0x54c316
mov dword [esi], 0x20
jmp 0x54c32f
test al, 2
je 0x54c322
mov dword [esi], 0x21
jmp 0x54c32f
shr eax, 0xa
not eax
and eax, 1
or eax, 0x22
mov dword [esi], eax
cmp dword [ebp - 0xe8], 6
jne case.0x54c508.5
mov dword [esi], 0x24
mov eax, dword [ebp - 0xe4]
test eax, eax
jne case.0x54c3ab.5
xor ecx, ecx
cmp byte [ebp - 0x52], 1
setne cl
add ecx, 0x25
mov dword [esi], ecx
xor bl, bl
mov byte [ebp - 0x11], bl
cmp word [ebp - 0x40], 9
jne 0x54c36f
mov bl, 1
mov byte [ebp - 0x11], bl
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x18], 0
test eax, eax
je 0x54c39e
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push 6
call eax
mov eax, dword [ebp - 0x18]
dec eax
cmp eax, 0x18
ja case.0x54c3ab.5
jmp dword [eax*4 + 0x54c644]
xor eax, eax
test bl, bl
setne al
add eax, 0x27
jmp 0x54c49e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x29
mov dword [esi], ecx
jmp case.0x54c3ab.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x2b
mov dword [esi], edx
jmp case.0x54c3ab.5
xor eax, eax
test bl, bl
setne al
add eax, 0x2d
jmp 0x54c49e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x2f
mov dword [esi], ecx
jmp case.0x54c3ab.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x31
mov dword [esi], edx
jmp case.0x54c3ab.5
xor eax, eax
test bl, bl
setne al
add eax, 0x33
jmp 0x54c49e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x35
mov dword [esi], ecx
jmp case.0x54c3ab.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x37
mov dword [esi], edx
jmp case.0x54c3ab.5
xor eax, eax
test bl, bl
setne al
add eax, 0x39
jmp 0x54c49e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x3b
mov dword [esi], ecx
jmp case.0x54c3ab.5
mov dword [esi], 0x3d
jmp case.0x54c3ab.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x3e
mov dword [esi], edx
jmp case.0x54c3ab.5
xor eax, eax
test bl, bl
setne al
add eax, 0x40
jmp 0x54c49e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x42
mov dword [esi], ecx
jmp case.0x54c3ab.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x44
mov dword [esi], edx
jmp case.0x54c3ab.5
xor eax, eax
test bl, bl
setne al
add eax, 0x46
mov dword [esi], eax
cmp dword [ebp - 0xe4], 1
jne case.0x54c508.5
xor ecx, ecx
cmp byte [ebp - 0x52], 1
setne cl
add ecx, 0x48
mov dword [esi], ecx
xor bl, bl
mov byte [ebp - 0x12], bl
cmp word [ebp - 0x40], 9
jne 0x54c4cc
mov bl, 1
mov byte [ebp - 0x12], bl
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x54c4fb
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
push 6
call eax
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, 0x18
ja case.0x54c508.5
jmp dword [eax*4 + 0x54c6a8]
xor eax, eax
test bl, bl
setne al
add eax, 0x4a
jmp 0x54c5fb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x4c
mov dword [esi], ecx
jmp case.0x54c508.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x4e
mov dword [esi], edx
jmp case.0x54c508.5
xor eax, eax
test bl, bl
setne al
add eax, 0x50
jmp 0x54c5fb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x52
mov dword [esi], ecx
jmp case.0x54c508.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x54
mov dword [esi], edx
jmp case.0x54c508.5
xor eax, eax
test bl, bl
setne al
add eax, 0x56
jmp 0x54c5fb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x58
mov dword [esi], ecx
jmp case.0x54c508.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x5a
mov dword [esi], edx
jmp case.0x54c508.5
xor eax, eax
test bl, bl
setne al
add eax, 0x5c
jmp 0x54c5fb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x5e
mov dword [esi], ecx
jmp case.0x54c508.5
mov dword [esi], 0x60
jmp case.0x54c508.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x61
mov dword [esi], edx
jmp case.0x54c508.5
xor eax, eax
test bl, bl
setne al
add eax, 0x63
jmp 0x54c5fb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x65
mov dword [esi], ecx
jmp case.0x54c508.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x67
mov dword [esi], edx
jmp case.0x54c508.5
xor eax, eax
test bl, bl
setne al
add eax, 0x69
mov dword [esi], eax
cmp dword [ebp - 0xe8], 7
jb 0x54c60c
mov dword [esi], 0x6b
cmp dword [ebp - 0xdc], 3
jne 0x54c61b
mov dword [esi], 0x6c
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret