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

Disassembly:
sub esp, 0xc0
lea eax, [esp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0x9c
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x100031d4
mov edx, dword [esp + 0xc8]
push 0x1001030c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov ecx, dword [esp + 0x2c]
mov eax, ecx
sub eax, 4
je 0x100033e6
dec eax
je 0x100032c4
dec eax
je 0x1000320d
mov eax, dword [esp + 0xc8]
push ecx
push ecx
push str.__d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x30]
sub eax, 0
je 0x1000327f
dec eax
je 0x1000323b
push 6
push 6
mov ecx, dword [esp + 0xd0]
push str.__d._d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop esi
add esp, 0xc0
ret
cmp byte [esp + 0xc2], 1
jne 0x1000324c
push 0x10010300
jmp 0x10003251
push str.S_2008_R2
mov esi, dword [esp + 0xcc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp word [esp + 4], 9
jne 0x10003473
push str._x64_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop esi
add esp, 0xc0
ret
cmp byte [esp + 0xc2], 1
je 0x100032aa
mov eax, dword [esp + 0xc0]
cmp ax, 0x80
jne 0x1000329d
push str.Vista_DtS
jmp 0x10003251
cmp ax, 2
jne 0x100032bd
push str.Vista_Etp
jmp 0x10003251
cmp word [esp + 0xc0], 0x200
jne 0x100032bd
push str.Vista_Home
jmp 0x10003251
push str.2008
jmp 0x10003251
mov eax, dword [esp + 0x30]
sub eax, 0
je 0x100033a5
dec eax
je 0x10003341
dec eax
je 0x100032f9
mov edx, dword [esp + 0xc8]
push 5
push 5
push str.__d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop esi
add esp, 0xc0
ret
cmp byte [esp + 0xc2], 1
jne 0x10003326
cmp word [esp + 4], 9
jne 0x10003326
mov eax, dword [esp + 0xc8]
push str.XP_Prf_x64
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov ecx, dword [esp + 0xc8]
push str.2003
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0xc0]
cmp ax, 0x40
jne 0x10003369
mov edx, dword [esp + 0xc8]
push str.XP_Emb
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
cmp ax, 0x200
jne 0x1000338a
mov eax, dword [esp + 0xc8]
push str.XP_HEd
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov ecx, dword [esp + 0xc8]
push str.XP_Prf
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
cmp word [esp + 0xc0], 2
jne 0x100033cb
mov edx, dword [esp + 0xc8]
push str.2000_Advs
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0xc8]
push str.2000
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10003437
cmp eax, 0xa
je 0x1000341c
cmp eax, 0x5a
je 0x10003401
push 4
push 4
jmp 0x1000321d
mov edx, dword [esp + 0xc8]
push 0x1001027c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0xc8]
push 0x10010278
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
mov eax, dword [esp + 0x38]
cmp eax, 2
jne 0x1000345b
mov ecx, dword [esp + 0xc8]
push str.NT_4.0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret
cmp eax, 1
jne 0x10003473
mov edx, dword [esp + 0xc8]
push 0x1001026c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop esi
add esp, 0xc0
ret