Function at 0x49201c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov ebx, eax
lea eax, [ebp - 0x1d4]
mov edx, dword [0x480a3c]
call fcn.00404c00
lea eax, [ebp - 0x214]
mov edx, dword [0x480a3c]
call fcn.00404c00
xor eax, eax
push ebp
push 0x4924b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, dword [0x48370c]
call fcn.004055d0
lea eax, [ebp - 0x18]
mov edx, dword [0x48370c]
call fcn.004055d0
mov byte [ebp - 0xd], 0
xor eax, eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x30]
lea edx, [ebp + 0x14]
lea eax, [ebp + 0x18]
call fcn.0048f810
test al, al
je 0x492460
call fcn.00485784
mov eax, dword [ebp - 0xc]
or eax, 8
and eax, 0xffffffef
cmp eax, 0xffffffed
je 0x4920d1
cmp eax, 0xffffffec
je 0x4920d1
cmp eax, 0xffffffeb
jne 0x49241f
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x492100
call fcn.00483d98
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4920f7
push 5
call sub.kernel32.dll_SetLastError
jmp 0x492460
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
mov esi, dword [ebp - 0xc]
or esi, 8
and esi, 0xffffffef
cmp esi, 0xffffffeb
jne 0x49211f
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0x3c]
call fcn.00485c44
test al, al
jne 0x492124
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x492131
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
jmp 0x492133
xor eax, eax
cmp esi, 0xffffffec
je 0x49213f
mov dword [ebp - 8], 0xffffffff
push eax
mov eax, dword [ebp - 8]
push eax
test byte [ebp - 0xc], 0x10
setne al
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x29]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, ebx
call fcn.0048ea0c
mov byte [ebp - 0xd], al
cmp dword [ebp - 0x3c], 0
je 0x492173
mov eax, dword [ebp - 0x3c]
push eax
call sub.kernel32.dll_LocalFree_1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
sete al
and al, byte [ebp - 0x29]
je 0x4921a4
lea ecx, [ebp - 0x214]
lea edx, [ebp - 0x1d4]
lea eax, [ebp - 0x191]
call fcn.004915dc
test al, al
jne 0x4921a4
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x3d], 0
xor eax, eax
mov dword [ebp - 0x44], eax
cmp byte [ebp - 0x3d], 0
je 0x4921ba
push 0xa
call sub.kernel32.dll_Sleep
mov byte [ebp - 0x3d], 0
mov byte [ebp - 0x22], 1
lea eax, [ebp - 0x14]
call fcn.00483a48
mov eax, dword [ebp - 0x14]
call fcn.00405408
push eax
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, dword [0x47e650]
call fcn.004055c4
add esp, 4
mov eax, dword [ebp - 0x14]
call fcn.00405410
test eax, eax
jl 0x4923be
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [eax + ebx*4], edx
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*8 + 4]
call fcn.0048fefc
mov byte [ebp - 0x21], al
mov eax, dword [ebp - 0x18]
call fcn.00405410
test eax, eax
jl 0x492249
inc eax
xor edx, edx
mov ecx, edx
add ecx, ecx
mov esi, dword [ebp - 0x18]
mov ecx, dword [esi + ecx*8]
mov esi, ebx
add esi, esi
mov edi, dword [ebp - 0x14]
cmp ecx, dword [edi + esi*8]
jne 0x492245
mov byte [ebp - 0x21], 0
jmp 0x492249
inc edx
dec eax
jne 0x492229
cmp byte [ebp - 0x21], 0
je 0x4923b4
call sub.kernel32.dll_GetCurrentProcessId
mov edx, ebx
add edx, edx
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + edx*8]
jne 0x49226e
test byte [ebp - 0xc], 8
je 0x4923b4
mov byte [ebp - 0x22], 0
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*8]
push eax
push 0
push 0x47a
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49238d
mov eax, dword [ebp - 0x20]
call fcn.0048ca44
test al, al
jne 0x492382
cmp byte [ebp - 0x29], 0
je 0x4922de
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x4922de
lea eax, [ebp - 0x1d4]
push eax
lea eax, [ebp - 0x214]
push eax
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*8]
lea ecx, [ebp - 0x191]
mov eax, dword [ebp - 0x20]
call fcn.00491ec0
mov eax, dword [ebp - 0xc]
or eax, 8
and eax, 0xffffffef
cmp eax, 0xffffffeb
jne 0x492303
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*8 + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0048cb3c
test al, al
je 0x492382
test byte [ebp - 0xc], 0x10
jne 0x492320
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*8 + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0048c90c
test al, al
jne 0x492382
mov eax, dword [ebp - 0xc]
or eax, 8
and eax, 0xffffffef
cmp eax, 0xffffffec
jne 0x492368
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + eax*8]
call fcn.0048cab4
cmp eax, dword [ebp - 8]
je 0x492368
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + esi*8]
call fcn.0048cab4
test eax, eax
jne 0x492382
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp - 0x20]
call fcn.0048c90c
test al, al
je 0x492382
push ebp
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + eax*8]
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + ebx*4]
mov eax, dword [ebp - 0x20]
call fcn.00490a98
pop ecx
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x4923b4
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x20], eax
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x14]
cmp dword [edx + eax*8], 0
je 0x4923b4
cmp dword [ebp - 0x20], 5
je 0x4923b4
mov edx, dword [ebp - 0x14]
xor ecx, ecx
mov dword [edx + eax*8], ecx
mov byte [ebp - 0x3d], 1
inc ebx
dec dword [ebp - 0x48]
jne 0x4921ff
cmp dword [ebp - 0x38], 0
jne 0x4923cc
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
call fcn.00405410
test eax, eax
jl 0x4923f9
inc eax
mov dword [ebp - 0x48], eax
xor ebx, ebx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x4923f3
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp + 0x10]
call fcn.0048fe88
inc ebx
dec dword [ebp - 0x48]
jne 0x4923de
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [0x48370c]
call fcn.0040560c
inc dword [ebp - 0x44]
cmp byte [ebp - 0x22], 0
jne 0x492460
cmp dword [ebp - 0x44], 5
jne 0x4921ad
jmp 0x492460
push ebp
mov eax, dword [ebp - 0xc]
push eax
call fcn.004853ac
mov edx, eax
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00490a98
pop ecx
test al, al
je 0x492457
cmp dword [ebp - 0x20], 0
je 0x49245b
call sub.kernel32.dll_GetTickCount_1
mov ecx, eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x20]
call fcn.0048fe88
test al, al
jne 0x49245b
xor eax, eax
jmp 0x49245d
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4924b9
lea eax, [ebp - 0x214]
mov edx, dword [0x480a3c]
mov ecx, 2
call fcn.00404d1c
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0040426c
lea eax, [ebp - 0x1c]
mov edx, dword [0x47e650]
call fcn.004055d0
lea eax, [ebp - 0x18]
mov edx, dword [0x48370c]
mov ecx, 2
call fcn.00404d1c
ret