Function at 0x10005910
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007b8ad
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x1009e090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
push 0x98
lea eax, [ebp - 0x144]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x270], 1
call fcn.100577a0
add esp, 0xc
mov dword [ebp - 0x148], 0x9c
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push eax
push 0x64
push 0
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
test eax, eax
jne 0x100059e5
mov eax, dword [ebp - 0x26c]
push eax
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov dword [ebp - 0x144], esi
mov dword [ebp - 0x140], edi
jmp 0x10005a5a
cmp dword [ebp - 0x144], 6
jne 0x10005a5a
cmp dword [ebp - 0x140], 2
jne 0x10005a5a
push 1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 0x11c
mov edi, eax
mov esi, edx
lea eax, [ebp - 0x268]
push 0
push eax
call fcn.100577a0
add esp, 0xc
mov dword [ebp - 0x268], 0x11c
lea eax, [ebp - 0x268]
mov dword [ebp - 0x260], 3
push esi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov ecx, dword [ebp - 0x140]
test eax, eax
mov edx, 3
cmovne ecx, edx
mov dword [ebp - 0x140], ecx
push str.GetNativeSystemInfo
push 0x10096684
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
lea ecx, [ebp - 0x298]
push ecx
cmove eax, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
call eax
mov eax, dword [ebp - 0x144]
cmp eax, 0xa
jne 0x10005acd
cmp byte [ebp - 0xae], 1
je 0x10005abb
push str.Windows_10_Server
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 0xa
jne 0x10005acd
cmp byte [ebp - 0xae], 1
jne 0x10005cff
push str.Windows_10
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 3
jne 0x10005b3e
cmp byte [ebp - 0xae], 1
je 0x10005b1d
push str.Windows_Server_2012_R2
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 3
jne 0x10005b3e
cmp byte [ebp - 0xae], 1
jne 0x10005cff
push str.Windows_8.1
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x10005ba0
cmp byte [ebp - 0xae], 1
je 0x10005b7f
push str.Windows_Server_2012
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x10005ba0
cmp byte [ebp - 0xae], 1
jne 0x10005cff
push str.Windows_8
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 1
jne 0x10005bfc
cmp byte [ebp - 0xae], al
je 0x10005bdf
push str.Windows_Server_2008_R2
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
cmp eax, 1
jne 0x10005bfc
cmp byte [ebp - 0xae], al
jne 0x10005cff
push str.Windows_7
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x10005cff
cmp byte [ebp - 0xae], 1
je 0x10005c3e
push str.Windows_Server_2008
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 6
jne 0x10005c50
cmp dword [ebp - 0x140], 0
jne 0x10005cff
cmp byte [ebp - 0xae], 1
jne 0x10005cff
push str.Windows_Vista
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x10005cf1
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x10005cb6
cmp byte [ebp - 0xae], 1
jne 0x10005c99
cmp word [ebp - 0x298], 9
jne 0x10005c99
push str.Windows_XP_x64
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x10005cf1
mov eax, dword [ebp - 0x140]
cmp eax, 2
jne 0x10005cb6
push str.Windows_Server_2003
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x10005cf1
mov eax, dword [ebp - 0x140]
cmp eax, 1
jne 0x10005cd8
push str.Windows_XP
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x10005cf1
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x10005cff
push str.Windows_2000
mov ecx, ebx
call fcn.10004420
mov eax, dword [ebp - 0x144]
cmp eax, 5
jae 0x10005cff
push str.unknown
mov ecx, ebx
call fcn.10004420
cmp word [ebp - 0xb4], 0
je 0x10005e87
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0xf
mov byte [ebp - 0xa8], 0
push 0x80
lea eax, [ebp - 0x90]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.100577a0
add esp, 0xc
lea ecx, [ebp - 0xa8]
push str._Service_Pack
call fcn.10004420
movzx eax, word [ebp - 0xb4]
push eax
push 0x100967a4
lea eax, [ebp - 0x90]
push 0x80
push eax
call fcn.100058d0
lea edi, [ebp - 0x90]
add esp, 0x10
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10005d80
mov edx, dword [ebp - 0x94]
sub edi, ecx
mov ecx, dword [ebp - 0x98]
mov eax, edx
sub eax, ecx
push edi
cmp edi, eax
ja 0x10005dcf
lea eax, [edi + ecx]
cmp edx, 0x10
mov dword [ebp - 0x98], eax
lea esi, [ebp - 0xa8]
cmovae esi, dword [ebp - 0xa8]
lea eax, [ebp - 0x90]
add esi, ecx
push eax
push esi
call fcn.100580f0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10005def
lea eax, [ebp - 0x90]
mov byte [ebp - 0x26c], 0
push eax
push dword [ebp - 0x26c]
lea ecx, [ebp - 0xa8]
push edi
call fcn.10004a20
cmp dword [ebp - 0x94], 0x10
lea ecx, [ebp - 0xa8]
mov esi, dword [ebx + 0x14]
mov eax, esi
cmovae ecx, dword [ebp - 0xa8]
mov edx, dword [ebx + 0x10]
sub eax, edx
mov edi, dword [ebp - 0x98]
cmp edi, eax
ja 0x10005e3a
lea eax, [edx + edi]
mov dword [ebx + 0x10], eax
mov eax, ebx
cmp esi, 0x10
jb 0x10005e26
mov eax, dword [ebx]
push edi
lea esi, [eax + edx]
push ecx
push esi
call fcn.100580f0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x10005e51
push edi
push ecx
mov byte [ebp - 0x26c], 0
mov ecx, ebx
push dword [ebp - 0x26c]
push edi
call fcn.10004a20
mov edx, dword [ebp - 0x94]
cmp edx, 0x10
jb 0x10005e87
mov ecx, dword [ebp - 0xa8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10005e7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005ea5
push edx
push ecx
call fcn.100400df
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10040099
mov esp, ebp
pop ebp
ret
call fcn.1005ccac
int3