Function at 0x1002adf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x1002adf9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov esi, eax
mov ebx, dword [ebp + 0x30]
xor eax, eax
push ebp
push 0x1002b57f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [0x100193f4]
call fcn.10013540
lea eax, [ebp - 0x20]
mov edx, dword [0x100193f4]
call fcn.10013540
lea eax, [ebp - 0x50]
mov edx, dword [0x1002ad50]
call fcn.10013540
lea eax, [ebp - 0x54]
mov edx, dword [0x1002ad78]
call fcn.10013540
lea eax, [ebp - 0x58]
mov edx, dword [0x1002ada0]
call fcn.10013540
lea eax, [ebp - 0x5c]
mov edx, dword [0x1002adc8]
call fcn.10013540
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x38]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.10029364
test al, al
je 0x1002b4be
call fcn.1002e49c
call fcn.1001ee54
cmp byte [ebp + 0x34], 0
je 0x1002b471
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1002af17
call fcn.10019d3c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x1002aed0
push 5
call sub.KERNEL32.dll_SetLastError
jmp 0x1002b4be
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call fcn.10015ebc
test eax, eax
je 0x1002aef2
push 0x32
call sub.KERNEL32.dll_SetLastError
jmp 0x1002b4be
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov al, byte [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x28]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x2c]
push eax
call fcn.10027ee0
test eax, eax
je 0x1002b4be
cmp byte [0x10037c24], 0
je 0x1002b46b
mov eax, dword [ebp + 0x28]
cmp eax, dword [0x10037c04]
jne 0x1002af37
call fcn.1002694c
mov dword [ebp + 0x28], eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x1002af64
mov al, byte [ebp + 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x31]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.1002897c
test al, al
jne 0x1002af64
xor eax, eax
jmp 0x1002af66
mov al, 1
mov byte [ebp - 0x15], al
mov byte [ebp - 0x5d], 0
cmp dword [ebp + 0x20], 0
je 0x1002b028
mov eax, dword [ebp + 0x20]
cmp word [eax], 0
je 0x1002b028
lea eax, [ebp - 0x4c]
mov edx, dword [ebp + 0x20]
call fcn.10012c30
mov dl, 0x7c
mov eax, dword [ebp - 0x4c]
call fcn.10014ed8
push eax
lea eax, [ebp - 0x50]
mov ecx, 1
mov edx, dword [0x1002ad50]
call fcn.10013534
add esp, 4
mov eax, dword [ebp - 0x50]
call fcn.10013378
push eax
lea eax, [ebp - 0x54]
mov ecx, 1
mov edx, dword [0x1002ad78]
call fcn.10013534
add esp, 4
mov eax, dword [ebp - 0x50]
call fcn.10013380
test eax, eax
jl 0x1002b028
inc eax
mov dword [ebp - 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x4c]
call fcn.10012784
mov eax, dword [ebp - 0x7c]
lea edx, [ebx + 1]
mov cl, 0x7c
call fcn.10014f1c
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.10012c84
mov eax, dword [ebp - 0x74]
mov edx, dword [ebp - 0x54]
lea ecx, [edx + ebx*4]
mov edx, dword [ebp - 0x50]
lea edx, [edx + ebx*4]
call fcn.10029ad8
or al, byte [ebp - 0x5d]
mov byte [ebp - 0x5d], al
inc ebx
dec dword [ebp - 0x70]
jne 0x1002afe1
cmp dword [ebp + 0x1c], 0
je 0x1002b0ef
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
je 0x1002b0ef
lea eax, [ebp - 0x4c]
mov edx, dword [ebp + 0x1c]
call fcn.10012c30
mov dl, 0x7c
mov eax, dword [ebp - 0x4c]
call fcn.10014ed8
push eax
lea eax, [ebp - 0x58]
mov ecx, 1
mov edx, dword [0x1002ada0]
call fcn.10013534
add esp, 4
mov eax, dword [ebp - 0x58]
call fcn.10013378
push eax
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x1002adc8]
call fcn.10013534
add esp, 4
mov eax, dword [ebp - 0x58]
call fcn.10013380
test eax, eax
jl 0x1002b0ef
inc eax
mov dword [ebp - 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x4c]
call fcn.10012784
mov eax, dword [ebp - 0x88]
lea edx, [ebx + 1]
mov cl, 0x7c
call fcn.10014f1c
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.10012c84
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x5c]
lea ecx, [edx + ebx*4]
mov edx, dword [ebp - 0x58]
lea edx, [edx + ebx*4]
call fcn.10029ad8
or al, byte [ebp - 0x5d]
mov byte [ebp - 0x5d], al
inc ebx
dec dword [ebp - 0x70]
jne 0x1002b09c
cmp byte [ebp - 0x5d], 0
je 0x1002b106
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x6c], eax
jmp 0x1002b10b
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
call fcn.10013378
mov ebx, eax
lea esi, [ebx + 2]
push esi
lea eax, [ebp - 0x58]
mov ecx, 1
mov edx, dword [0x1002ada0]
call fcn.10013534
add esp, 4
push esi
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x1002adc8]
call fcn.10013534
add esp, 4
lea edx, [ebp - 0x8c]
mov eax, dword [0x100384a4]
mov eax, dword [eax]
call fcn.1001520c
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ebx*4]
call fcn.10012c84
lea edx, [ebp - 0x90]
mov eax, dword [0x10037d8c]
call fcn.1001520c
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ebx*4 + 4]
call fcn.10012c84
mov byte [ebp - 0x41], 0
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x41], 0
je 0x1002b1a1
push 0xa
call sub.KERNEL32.dll_Sleep
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x2a], 1
lea eax, [ebp - 0x1c]
call fcn.100199e4
mov eax, dword [ebp - 0x1c]
call fcn.10013378
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x10013f14]
call fcn.10013534
add esp, 4
mov eax, dword [ebp - 0x1c]
call fcn.10013380
test eax, eax
jl 0x1002b3fb
inc eax
mov dword [ebp - 0x70], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + ebx*4], edx
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x20]
call fcn.10013380
mov edx, eax
test edx, edx
jl 0x1002b223
inc edx
xor eax, eax
mov ecx, eax
add ecx, ecx
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi + ecx*8]
mov esi, ebx
add esi, esi
mov edi, dword [ebp - 0x1c]
cmp ecx, dword [edi + esi*8]
jne 0x1002b21f
mov byte [ebp - 0x29], 0
jmp 0x1002b223
inc eax
dec edx
jne 0x1002b203
cmp dword [ebp + 0x18], 0
je 0x1002b251
xor eax, eax
jmp 0x1002b22e
inc eax
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x1002b244
mov ecx, ebx
add ecx, ecx
mov esi, dword [ebp - 0x1c]
cmp edx, dword [esi + ecx*8]
jne 0x1002b22d
mov edx, dword [ebp + 0x18]
cmp dword [edx + eax*4], 0
je 0x1002b251
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x1002b3f1
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 4]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x68]
call fcn.10029ad8
xor al, 1
and al, byte [ebp - 0x5d]
je 0x1002b2b0
push 0x8000
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
push eax
call fcn.10026f50
test eax, eax
je 0x1002b2b0
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0x6c]
call fcn.10012c30
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x68]
call fcn.10029ad8
cmp dword [ebp - 0x50], 0
je 0x1002b2e2
mov eax, dword [ebp - 0x50]
call fcn.10013380
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x54]
call fcn.10013380
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
call fcn.10029c40
test al, al
je 0x1002b3f1
mov eax, dword [ebp - 0x58]
call fcn.10013380
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
call fcn.10013380
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
call fcn.10029c40
test al, al
jne 0x1002b3f1
mov byte [ebp - 0x2a], 0
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8]
push eax
push 0
push 0x47a
call sub.KERNEL32.dll_OpenProcess
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x1002b3ca
mov eax, dword [ebp - 0x28]
push eax
call fcn.10026868
test eax, eax
jne 0x1002b3bf
cmp byte [ebp + 0x24], 0
jne 0x1002b360
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*8 + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.10026668
test al, al
jne 0x1002b3bf
mov eax, dword [ebp + 0x28]
cmp eax, dword [0x10037c00]
je 0x1002b3a5
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8]
call fcn.100268ec
cmp eax, dword [ebp + 0x28]
je 0x1002b3a5
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
call fcn.100268ec
test eax, eax
jne 0x1002b3bf
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.10026668
test al, al
je 0x1002b3bf
push ebp
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*8]
mov eax, dword [ebp - 0x24]
lea ecx, [eax + ebx*4]
mov eax, dword [ebp - 0x28]
call fcn.1002ac44
pop ecx
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x1002b3f1
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x28], eax
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8], 0
je 0x1002b3f1
cmp dword [ebp - 0x28], 5
je 0x1002b3f1
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx + eax*8], ecx
mov byte [ebp - 0x41], 1
inc ebx
dec dword [ebp - 0x70]
jne 0x1002b1e6
cmp dword [ebp - 0x40], 0
jne 0x1002b409
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
call fcn.10013380
test eax, eax
jl 0x1002b436
inc eax
mov dword [ebp - 0x70], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1002b430
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x14]
call fcn.10029a64
inc ebx
dec dword [ebp - 0x70]
jne 0x1002b41b
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x100193f4]
call fcn.1001357c
inc dword [ebp - 0x48]
cmp byte [ebp - 0x2a], 0
jne 0x1002b45a
cmp dword [ebp - 0x48], 5
jne 0x1002b194
cmp dword [ebp - 0x6c], 0
je 0x1002b4be
mov eax, dword [ebp - 0x6c]
push eax
call sub.KERNEL32.dll_LocalFree
jmp 0x1002b4be
mov byte [ebp - 0x15], 1
jmp 0x1002b4be
cmp byte [ebp + 8], 0
jne 0x1002b481
push ebx
call fcn.10026868
test eax, eax
jne 0x1002b4b5
push ebp
push ebx
call fcn.1001b5a0
mov edx, eax
lea ecx, [ebp - 0x28]
mov eax, ebx
call fcn.1002ac44
pop ecx
test al, al
je 0x1002b4b5
cmp dword [ebp - 0x28], 0
je 0x1002b4b9
call sub.KERNEL32.dll_GetTickCount
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.10029a64
test al, al
jne 0x1002b4b9
xor eax, eax
jmp 0x1002b4bb
mov al, 1
mov byte [ebp - 0x15], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002b589
lea eax, [ebp - 0x94]
call fcn.10012b18
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.1001252c
lea eax, [ebp - 0x80]
call fcn.10012b18
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.1001252c
lea eax, [ebp - 0x74]
call fcn.10012b18
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.10012b30
lea eax, [ebp - 0x5c]
mov edx, dword [0x1002adc8]
call fcn.10013540
lea eax, [ebp - 0x58]
mov edx, dword [0x1002ada0]
call fcn.10013540
lea eax, [ebp - 0x54]
mov edx, dword [0x1002ad78]
call fcn.10013540
lea eax, [ebp - 0x50]
mov edx, dword [0x1002ad50]
call fcn.10013540
lea eax, [ebp - 0x4c]
call fcn.10012b18
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.1001252c
lea eax, [ebp - 0x24]
mov edx, dword [0x10013f14]
call fcn.10013540
lea eax, [ebp - 0x20]
mov edx, dword [0x100193f4]
mov ecx, 2
call fcn.10012f58
ret