Function at 0x1002ccf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x1002ccf9
push ecx
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 + 0x34]
xor eax, eax
push ebp
push 0x1002d48b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [0x1001a120]
call fcn.1001366c
lea eax, [ebp - 0x20]
mov edx, dword [0x1001a120]
call fcn.1001366c
lea eax, [ebp - 0x54]
mov edx, dword [0x1002cc50]
call fcn.1001366c
lea eax, [ebp - 0x58]
mov edx, dword [0x1002cc78]
call fcn.1001366c
lea eax, [ebp - 0x5c]
mov edx, dword [0x1002cca0]
call fcn.1001366c
lea eax, [ebp - 0x60]
mov edx, dword [0x1002ccc8]
call fcn.1001366c
mov byte [ebp - 0x15], 0
xor eax, eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x3c]
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.1002b108
test al, al
je 0x1002d3da
call fcn.10030794
xor eax, eax
call fcn.1001ff58
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1002cdbc
mov eax, dword [ebp - 0x14]
push eax
call fcn.100164f4
test eax, eax
jne 0x1002cdc0
xor eax, eax
jmp 0x1002cdc2
mov al, 1
mov byte [ebp - 0x25], al
cmp byte [ebp + 0x38], 0
je 0x1002d37c
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x1002ce42
cmp byte [0x1003bbec], 0
jne 0x1002cded
call fcn.1001a6ec
test eax, eax
jne 0x1002cdff
cmp byte [ebp - 0x25], 0
je 0x1002cdff
push 0x32
call sub.KERNEL32.dll_SetLastError
jmp 0x1002d3da
cmp byte [0x1003bbec], 0
je 0x1002ce1d
call fcn.1001aed4
test al, al
jne 0x1002ce1d
push 5
call sub.KERNEL32.dll_SetLastError
jmp 0x1002d3da
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x24]
push eax
mov al, byte [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x30]
push eax
call fcn.10029a9c
test eax, eax
je 0x1002d3da
cmp byte [0x1003bbec], 0
je 0x1002d376
mov eax, dword [ebp + 0x2c]
cmp eax, dword [0x1003bbcc]
jne 0x1002ce62
call fcn.10028490
mov dword [ebp + 0x2c], eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x1002ce8f
mov al, byte [ebp + 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x35]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov eax, esi
call fcn.1002a720
test al, al
jne 0x1002ce8f
xor eax, eax
jmp 0x1002ce91
mov al, 1
mov byte [ebp - 0x15], al
mov byte [ebp - 0x61], 0
cmp dword [ebp + 0x24], 0
je 0x1002cf47
mov eax, dword [ebp + 0x24]
cmp word [eax], 0
je 0x1002cf47
lea eax, [ebp - 0x50]
mov edx, dword [ebp + 0x24]
call fcn.10012c24
mov ebx, dword [0x1003c4e0]
mov ebx, dword [ebx]
mov dl, 0x7c
mov eax, dword [ebp - 0x50]
call ebx
push eax
lea eax, [ebp - 0x54]
mov ecx, 1
mov edx, dword [0x1002cc50]
call fcn.10013660
add esp, 4
mov eax, dword [ebp - 0x54]
call fcn.100134a4
push eax
lea eax, [ebp - 0x58]
mov ecx, 1
mov edx, dword [0x1002cc78]
call fcn.10013660
add esp, 4
mov eax, dword [ebp - 0x54]
call fcn.100134ac
test eax, eax
jl 0x1002cf47
inc eax
mov dword [ebp - 0x74], eax
xor ebx, ebx
lea eax, [ebp - 0x78]
push eax
mov esi, dword [0x1003c4ec]
mov esi, dword [esi]
lea edx, [ebx + 1]
mov cl, 0x7c
mov eax, dword [ebp - 0x50]
call esi
mov eax, dword [ebp - 0x78]
mov edx, dword [ebp - 0x58]
lea ecx, [edx + ebx*4]
mov edx, dword [ebp - 0x54]
lea edx, [edx + ebx*4]
call fcn.1002b87c
or al, byte [ebp - 0x61]
mov byte [ebp - 0x61], al
inc ebx
dec dword [ebp - 0x74]
jne 0x1002cf11
cmp dword [ebp + 0x20], 0
je 0x1002cff6
mov eax, dword [ebp + 0x20]
cmp word [eax], 0
je 0x1002cff6
lea eax, [ebp - 0x50]
mov edx, dword [ebp + 0x20]
call fcn.10012c24
mov ebx, dword [0x1003c4e0]
mov ebx, dword [ebx]
mov dl, 0x7c
mov eax, dword [ebp - 0x50]
call ebx
push eax
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x1002cca0]
call fcn.10013660
add esp, 4
mov eax, dword [ebp - 0x5c]
call fcn.100134a4
push eax
lea eax, [ebp - 0x60]
mov ecx, 1
mov edx, dword [0x1002ccc8]
call fcn.10013660
add esp, 4
mov eax, dword [ebp - 0x5c]
call fcn.100134ac
test eax, eax
jl 0x1002cff6
inc eax
mov dword [ebp - 0x74], eax
xor ebx, ebx
lea eax, [ebp - 0x7c]
push eax
mov esi, dword [0x1003c4ec]
mov esi, dword [esi]
lea edx, [ebx + 1]
mov cl, 0x7c
mov eax, dword [ebp - 0x50]
call esi
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x60]
lea ecx, [edx + ebx*4]
mov edx, dword [ebp - 0x5c]
lea edx, [edx + ebx*4]
call fcn.1002b87c
or al, byte [ebp - 0x61]
mov byte [ebp - 0x61], al
inc ebx
dec dword [ebp - 0x74]
jne 0x1002cfc0
cmp byte [ebp - 0x61], 0
je 0x1002d00d
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x70], eax
jmp 0x1002d012
xor eax, eax
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x5c]
call fcn.100134a4
mov ebx, eax
lea esi, [ebx + 2]
push esi
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x1002cca0]
call fcn.10013660
add esp, 4
push esi
lea eax, [ebp - 0x60]
mov ecx, 1
mov edx, dword [0x1002ccc8]
call fcn.10013660
add esp, 4
lea edx, [ebp - 0x80]
mov eax, dword [0x1003c464]
mov eax, dword [eax]
call fcn.10015d38
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x60]
lea eax, [eax + ebx*4]
call fcn.10012c78
lea edx, [ebp - 0x84]
mov eax, dword [0x1003bd38]
call fcn.10015d38
mov edx, dword [ebp - 0x84]
mov eax, dword [ebp - 0x60]
lea eax, [eax + ebx*4 + 4]
call fcn.10012c78
mov byte [ebp - 0x45], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
cmp byte [ebp - 0x45], 0
je 0x1002d0a2
push 0xa
call sub.KERNEL32.dll_Sleep
mov byte [ebp - 0x45], 0
mov byte [ebp - 0x2e], 1
lea eax, [ebp - 0x1c]
call fcn.1001a994
mov eax, dword [ebp - 0x1c]
call fcn.100134a4
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x1002cc28]
call fcn.10013660
add esp, 4
mov eax, dword [ebp - 0x1c]
call fcn.100134ac
test eax, eax
jl 0x1002d306
inc eax
mov dword [ebp - 0x74], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [eax + ebx*4], edx
mov byte [ebp - 0x2d], 1
mov eax, dword [ebp - 0x20]
call fcn.100134ac
mov edx, eax
test edx, edx
jl 0x1002d124
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 0x1002d120
mov byte [ebp - 0x2d], 0
jmp 0x1002d124
inc eax
dec edx
jne 0x1002d104
cmp dword [ebp + 0x1c], 0
je 0x1002d152
xor eax, eax
jmp 0x1002d12f
inc eax
mov edx, dword [ebp + 0x1c]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x1002d145
mov ecx, ebx
add ecx, ecx
mov esi, dword [ebp - 0x1c]
cmp edx, dword [esi + ecx*8]
jne 0x1002d12e
mov edx, dword [ebp + 0x1c]
cmp dword [edx + eax*4], 0
je 0x1002d152
mov byte [ebp - 0x2d], 0
cmp byte [ebp - 0x2d], 0
je 0x1002d2fc
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8 + 4]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
call fcn.1002b87c
xor al, 1
and al, byte [ebp - 0x61]
je 0x1002d1b1
push 0x8000
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
push eax
call fcn.10028a94
test eax, eax
je 0x1002d1b1
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x70]
call fcn.10012c24
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x6c]
call fcn.1002b87c
cmp dword [ebp - 0x54], 0
je 0x1002d1e3
mov eax, dword [ebp - 0x54]
call fcn.100134ac
push eax
mov eax, dword [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x58]
call fcn.100134ac
push eax
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.1002b9d8
test al, al
je 0x1002d2fc
mov eax, dword [ebp - 0x5c]
call fcn.100134ac
push eax
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x60]
call fcn.100134ac
push eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x6c]
call fcn.1002b9d8
test al, al
jne 0x1002d2fc
mov byte [ebp - 0x2e], 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 - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x1002d2d5
mov eax, dword [ebp - 0x2c]
push eax
call fcn.1001a73c
cmp eax, 1
sbb eax, eax
inc eax
cmp al, byte [ebp - 0x25]
jne 0x1002d2ca
cmp byte [ebp + 0x28], 0
jne 0x1002d268
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*8 + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.10028250
test al, al
jne 0x1002d2ca
mov eax, dword [ebp + 0x2c]
cmp eax, dword [0x1003bbc8]
je 0x1002d2ad
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8]
call fcn.100281a8
cmp eax, dword [ebp + 0x2c]
je 0x1002d2ad
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
call fcn.100281a8
test eax, eax
jne 0x1002d2ca
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp - 0x2c]
call fcn.10028250
test al, al
je 0x1002d2ca
push ebp
mov eax, dword [ebp - 0x24]
lea eax, [eax + ebx*4]
push eax
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + eax*8]
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
call fcn.1002cb10
pop ecx
mov eax, dword [ebp - 0x2c]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x1002d2fc
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x2c], eax
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + eax*8], 0
je 0x1002d2fc
cmp dword [ebp - 0x2c], 5
je 0x1002d2fc
mov edx, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [edx + eax*8], ecx
mov byte [ebp - 0x45], 1
inc ebx
dec dword [ebp - 0x74]
jne 0x1002d0e7
cmp dword [ebp - 0x44], 0
jne 0x1002d314
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x24]
call fcn.100134ac
test eax, eax
jl 0x1002d341
inc eax
mov dword [ebp - 0x74], eax
xor ebx, ebx
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x1002d33b
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp + 0x18]
call fcn.1002b808
inc ebx
dec dword [ebp - 0x74]
jne 0x1002d326
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x1001a120]
call fcn.100136a8
inc dword [ebp - 0x4c]
cmp byte [ebp - 0x2e], 0
jne 0x1002d365
cmp dword [ebp - 0x4c], 5
jne 0x1002d095
cmp dword [ebp - 0x70], 0
je 0x1002d3da
mov eax, dword [ebp - 0x70]
push eax
call sub.KERNEL32.dll_LocalFree
jmp 0x1002d3da
mov byte [ebp - 0x15], 1
jmp 0x1002d3da
push ebx
call fcn.1001a73c
cmp eax, 1
sbb eax, eax
inc eax
cmp al, byte [ebp - 0x25]
jne 0x1002d3d1
cmp byte [ebp + 0xc], 0
jne 0x1002d399
cmp byte [ebp - 0x25], 0
jne 0x1002d3d1
push ebp
lea eax, [ebp - 0x2c]
push eax
push ebx
call fcn.1001c66c
mov edx, eax
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.1002cb10
pop ecx
test al, al
je 0x1002d3d1
cmp dword [ebp - 0x2c], 0
je 0x1002d3d5
call sub.KERNEL32.dll_GetTickCount
mov ecx, eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x2c]
call fcn.1002b808
test al, al
jne 0x1002d3d5
xor eax, eax
jmp 0x1002d3d7
mov al, 1
mov byte [ebp - 0x15], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1002d495
lea eax, [ebp - 0x88]
call fcn.10012afc
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.1001254c
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.10012b14
lea eax, [ebp - 0x6c]
mov edx, 2
call fcn.10012b14
lea eax, [ebp - 0x60]
mov edx, dword [0x1002ccc8]
call fcn.1001366c
lea eax, [ebp - 0x5c]
mov edx, dword [0x1002cca0]
call fcn.1001366c
lea eax, [ebp - 0x58]
mov edx, dword [0x1002cc78]
call fcn.1001366c
lea eax, [ebp - 0x54]
mov edx, dword [0x1002cc50]
call fcn.1001366c
lea eax, [ebp - 0x50]
call fcn.10012afc
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.1001254c
lea eax, [ebp - 0x24]
mov edx, dword [0x1002cc28]
call fcn.1001366c
lea eax, [ebp - 0x20]
mov edx, dword [0x1001a120]
mov ecx, 2
call fcn.10013084
ret