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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b5c10
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 0x5516d3
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 0x551718
lea ecx, [ebp - 0x40]
push ecx
call eax
jmp 0x551722
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xdc]
cmp eax, 1
jne 0x551772
mov dword [esi], 4
cmp dword [ebp - 0xe8], 4
jne 0x551bdb
mov eax, dword [ebp - 0xe4]
cmp eax, 0xa
jae 0x551751
mov dword [esi], 5
jne 0x55175e
mov dword [esi], 6
jmp 0x551bdb
cmp eax, 0x5a
jne 0x551bdb
mov dword [esi], 7
jmp 0x551bdb
cmp eax, 2
jne 0x551bcc
mov dword [esi], 8
mov eax, dword [ebp - 0xe8]
cmp eax, 3
jne 0x551797
mov dword [esi], 9
jmp 0x551bdb
cmp eax, 4
jne 0x5517a7
mov dword [esi], 0xa
jmp 0x551bdb
cmp eax, 5
jne 0x5518ef
mov dword [esi], 0xb
mov eax, dword [ebp - 0xe4]
test eax, eax
jne 0x5517f9
mov dword [esi], 0xc
cmp byte [ebp - 0x52], 1
jne 0x5517d7
mov dword [esi], 0xd
jmp 0x551bdb
mov eax, dword [ebp - 0x54]
test al, al
jns 0x5517e9
mov dword [esi], 0xe
jmp 0x551bdb
and al, 2
neg al
sbb eax, eax
add eax, 0x10
mov dword [esi], eax
jmp 0x551bdb
cmp eax, 1
jne 0x551819
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 0x551bdb
cmp eax, 2
jne 0x551bdb
mov dword [esi], 0x14
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x55183f
mov dword [esi], 0x15
mov eax, dword [ebp - 0x54]
jmp 0x551879
mov eax, dword [ebp - 0x54]
cmp ax, 0x2000
jne 0x551850
mov dword [esi], 0x16
jmp 0x551879
cmp ax, 0x8000
jne 0x55185e
mov dword [esi], 0x17
jmp 0x551879
cmp byte [ebp - 0x52], 1
jne 0x551873
cmp word [ebp - 0x40], 9
jne 0x551873
mov dword [esi], 0x18
jmp 0x5518ef
mov dword [esi], 0x19
cmp byte [ebp - 0x52], 1
je 0x5518ef
mov ecx, dword [ebp - 0x40]
cmp cx, 6
jne 0x5518a0
test al, al
jns 0x551894
mov dword [esi], 0x1a
jmp 0x5518ef
test al, 2
je 0x5518ef
mov dword [esi], 0x1b
jmp 0x5518ef
cmp cx, 9
jne 0x5518bd
test al, al
jns 0x5518b2
mov dword [esi], 0x1c
jmp 0x5518ef
and al, 2
neg al
sbb eax, eax
add eax, 0x1e
jmp 0x5518ed
test ah, 0x40
je 0x5518ca
mov dword [esi], 0x1f
jmp 0x5518ef
test al, al
jns 0x5518d6
mov dword [esi], 0x20
jmp 0x5518ef
test al, 2
je 0x5518e2
mov dword [esi], 0x21
jmp 0x5518ef
shr eax, 0xa
not eax
and eax, 1
or eax, 0x22
mov dword [esi], eax
cmp dword [ebp - 0xe8], 6
jne case.0x551ac8.5
mov dword [esi], 0x24
mov eax, dword [ebp - 0xe4]
test eax, eax
jne case.0x55196b.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 0x55192f
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 0x55195e
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.0x55196b.5
jmp dword [eax*4 + 0x551c04]
xor eax, eax
test bl, bl
setne al
add eax, 0x27
jmp 0x551a5e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x29
mov dword [esi], ecx
jmp case.0x55196b.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x2b
mov dword [esi], edx
jmp case.0x55196b.5
xor eax, eax
test bl, bl
setne al
add eax, 0x2d
jmp 0x551a5e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x2f
mov dword [esi], ecx
jmp case.0x55196b.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x31
mov dword [esi], edx
jmp case.0x55196b.5
xor eax, eax
test bl, bl
setne al
add eax, 0x33
jmp 0x551a5e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x35
mov dword [esi], ecx
jmp case.0x55196b.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x37
mov dword [esi], edx
jmp case.0x55196b.5
xor eax, eax
test bl, bl
setne al
add eax, 0x39
jmp 0x551a5e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x3b
mov dword [esi], ecx
jmp case.0x55196b.5
mov dword [esi], 0x3d
jmp case.0x55196b.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x3e
mov dword [esi], edx
jmp case.0x55196b.5
xor eax, eax
test bl, bl
setne al
add eax, 0x40
jmp 0x551a5e
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x42
mov dword [esi], ecx
jmp case.0x55196b.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x44
mov dword [esi], edx
jmp case.0x55196b.5
xor eax, eax
test bl, bl
setne al
add eax, 0x46
mov dword [esi], eax
cmp dword [ebp - 0xe4], 1
jne case.0x551ac8.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 0x551a8c
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 0x551abb
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.0x551ac8.5
jmp dword [eax*4 + 0x551c68]
xor eax, eax
test bl, bl
setne al
add eax, 0x4a
jmp 0x551bbb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x4c
mov dword [esi], ecx
jmp case.0x551ac8.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x4e
mov dword [esi], edx
jmp case.0x551ac8.5
xor eax, eax
test bl, bl
setne al
add eax, 0x50
jmp 0x551bbb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x52
mov dword [esi], ecx
jmp case.0x551ac8.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x54
mov dword [esi], edx
jmp case.0x551ac8.5
xor eax, eax
test bl, bl
setne al
add eax, 0x56
jmp 0x551bbb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x58
mov dword [esi], ecx
jmp case.0x551ac8.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x5a
mov dword [esi], edx
jmp case.0x551ac8.5
xor eax, eax
test bl, bl
setne al
add eax, 0x5c
jmp 0x551bbb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x5e
mov dword [esi], ecx
jmp case.0x551ac8.5
mov dword [esi], 0x60
jmp case.0x551ac8.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x61
mov dword [esi], edx
jmp case.0x551ac8.5
xor eax, eax
test bl, bl
setne al
add eax, 0x63
jmp 0x551bbb
xor ecx, ecx
test bl, bl
setne cl
add ecx, 0x65
mov dword [esi], ecx
jmp case.0x551ac8.5
xor edx, edx
test bl, bl
setne dl
add edx, 0x67
mov dword [esi], edx
jmp case.0x551ac8.5
xor eax, eax
test bl, bl
setne al
add eax, 0x69
mov dword [esi], eax
cmp dword [ebp - 0xe8], 7
jb 0x551bcc
mov dword [esi], 0x6b
cmp dword [ebp - 0xdc], 3
jne 0x551bdb
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