Function at 0x10005e90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001da92
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x100260b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x11c
lea eax, [ebp - 0x12c]
push 0
push eax
mov dword [ebp - 0x140], 0
call fcn.1000ddc0
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
mov dword [ebp - 0x12c], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10005f15
lea edx, [ebp - 0x144]
push edx
lea eax, [ebp - 0x168]
push eax
lea ebx, [ebp - 0x12c]
call fcn.10006290
test eax, eax
jne 0x10005f25
push esi
mov ecx, 0x100222fc
call fcn.10003ce0
jmp 0x1000626f
lea ecx, [ebp - 0x130]
push ecx
mov ecx, 0x10022300
call fcn.10003ce0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x128], 6
mov ebx, 1
jne 0x10005fb3
cmp dword [ebp - 0x124], 0
jne 0x10005f6e
lea eax, [ebp - 0x130]
mov edx, str.Vista
cmp byte [ebp - 0x12], bl
je 0x10005f69
mov edx, str.Server2008
call fcn.100058c0
cmp dword [ebp - 0x124], ebx
jne 0x10005f90
lea eax, [ebp - 0x130]
mov edx, str.Win7
cmp byte [ebp - 0x12], bl
je 0x10005f8b
mov edx, str.Server2008R2
call fcn.100058c0
cmp dword [ebp - 0x124], 2
jne 0x10005fb3
lea eax, [ebp - 0x130]
mov edx, str.Win8
cmp byte [ebp - 0x12], bl
je 0x10005fae
mov edx, str.Server2012
call fcn.100058c0
cmp dword [ebp - 0x128], 5
mov edi, 9
jne 0x10006045
cmp dword [ebp - 0x124], 2
jne 0x10005ffa
cmp byte [ebp - 0x12], bl
jne 0x10005fe1
mov edx, str.WinXPx64
cmp word [ebp - 0x168], di
je 0x10005fe6
mov edx, str.Server2003
lea eax, [ebp - 0x130]
call fcn.100058c0
cmp dword [ebp - 0x128], 5
jne 0x10006045
cmp dword [ebp - 0x124], ebx
jne 0x10006022
push 5
push str.WinXP
lea ebx, [ebp - 0x130]
call fcn.100059e0
cmp dword [ebp - 0x128], 5
mov ebx, 1
jne 0x10006045
cmp dword [ebp - 0x124], 0
jne 0x10006045
lea eax, [ebp - 0x130]
mov edx, str.Win2000Pro
cmp byte [ebp - 0x12], bl
je 0x10006040
mov edx, str.Server2000
call fcn.100058c0
mov edx, dword [0x10026038]
mov eax, dword [edx + 0xc]
mov ecx, 0x10026038
call eax
add eax, 0x10
mov dword [ebp - 0x13c], eax
mov byte [ebp - 4], bl
mov edx, dword [0x10026038]
mov eax, dword [edx + 0xc]
mov ecx, 0x10026038
call eax
add eax, 0x10
mov dword [ebp - 0x134], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x128]
cmp eax, 5
jne 0x100060a7
cmp dword [ebp - 0x124], 2
jne 0x100060e4
cmp byte [ebp - 0x12], bl
jne 0x100060e4
cmp word [ebp - 0x168], di
jne 0x100060e4
mov edx, 0x100223dc
jmp 0x100060d9
cmp eax, 6
jb 0x100060e4
mov ax, word [ebp - 0x168]
cmp ax, di
jne 0x100060cf
push 0x100223e4
mov edi, 3
lea ebx, [ebp - 0x134]
call fcn.10002d10
jmp 0x100060e4
test ax, ax
jne 0x100060e4
mov edx, 0x100223ec
lea eax, [ebp - 0x134]
call fcn.10003e20
movzx ecx, word [ebp - 0x16]
movzx edx, word [ebp - 0x18]
mov eax, dword [ebp - 0x134]
push ecx
mov ecx, dword [ebp - 0x144]
push edx
mov edx, dword [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x128]
push ecx
push edx
push eax
push 0x77
push str._c_d._d_p_d__s_SP_d._d
lea edi, [ebp - 0x13c]
call fcn.10006c70
mov edx, dword [0x10026038]
mov eax, dword [edx + 0xc]
add esp, 0x20
mov ecx, 0x10026038
call eax
add eax, 0x10
mov dword [ebp - 0x138], eax
mov ecx, 0x10022424
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x1000616b
mov edx, ecx
movzx edi, dx
push edi
call fcn.100031e0
add esp, 4
test eax, eax
je 0x1000617b
push eax
mov eax, edi
lea edi, [ebp - 0x138]
call fcn.10002f40
jmp 0x1000617b
mov ebx, 0x10022424
lea edi, [ebp - 0x138]
call fcn.10002c40
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x140]
push ecx
lea ebx, [ebp - 0x130]
mov byte [ebp - 4], 4
call fcn.10002ab0
lea edx, [ebp - 0x13c]
push edx
push esi
mov ebx, eax
mov byte [ebp - 4], 5
call fcn.10002ab0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x140]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100061d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x138]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100061fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x134]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006220
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x13c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10006246
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x130]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000626f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000bb4c
mov esp, ebp
pop ebp
ret