Function at 0x41b31c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x41b325
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 0x41baab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [0x40a40c]
call fcn.00404588
lea eax, [ebp - 0x20]
mov edx, dword [0x40a40c]
call fcn.00404588
lea eax, [ebp - 0x50]
mov edx, dword [0x41b27c]
call fcn.00404588
lea eax, [ebp - 0x54]
mov edx, dword [0x41b2a4]
call fcn.00404588
lea eax, [ebp - 0x58]
mov edx, dword [0x41b2cc]
call fcn.00404588
lea eax, [ebp - 0x5c]
mov edx, dword [0x41b2f4]
call fcn.00404588
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.0041989c
test al, al
je 0x41b9ea
call fcn.0041e9c0
call fcn.0040fc24
cmp byte [ebp + 0x34], 0
je 0x41b99d
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x41b443
call fcn.0040ad54
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41b3fc
push 5
call sub.KERNEL32.dll_SetLastError
jmp 0x41b9ea
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call fcn.00406ed4
test eax, eax
je 0x41b41e
push 0x32
call sub.KERNEL32.dll_SetLastError
jmp 0x41b9ea
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.00418418
test eax, eax
je 0x41b9ea
cmp byte [0x4d3c24], 0
je 0x41b997
mov eax, dword [ebp + 0x28]
cmp eax, dword [0x4d3c04]
jne 0x41b463
call fcn.00417070
mov dword [ebp + 0x28], eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x41b490
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.00418eb4
test al, al
jne 0x41b490
xor eax, eax
jmp 0x41b492
mov al, 1
mov byte [ebp - 0x15], al
mov byte [ebp - 0x5d], 0
cmp dword [ebp + 0x20], 0
je 0x41b554
mov eax, dword [ebp + 0x20]
cmp word [eax], 0
je 0x41b554
lea eax, [ebp - 0x4c]
mov edx, dword [ebp + 0x20]
call fcn.00403c30
mov dl, 0x7c
mov eax, dword [ebp - 0x4c]
call fcn.00405ef0
push eax
lea eax, [ebp - 0x50]
mov ecx, 1
mov edx, dword [0x41b27c]
call fcn.0040457c
add esp, 4
mov eax, dword [ebp - 0x50]
call fcn.004043c0
push eax
lea eax, [ebp - 0x54]
mov ecx, 1
mov edx, dword [0x41b2a4]
call fcn.0040457c
add esp, 4
mov eax, dword [ebp - 0x50]
call fcn.004043c8
test eax, eax
jl 0x41b554
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.00403784
mov eax, dword [ebp - 0x7c]
lea edx, [ebx + 1]
mov cl, 0x7c
call fcn.00405f34
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.00403c84
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.0041a004
or al, byte [ebp - 0x5d]
mov byte [ebp - 0x5d], al
inc ebx
dec dword [ebp - 0x70]
jne 0x41b50d
cmp dword [ebp + 0x1c], 0
je 0x41b61b
mov eax, dword [ebp + 0x1c]
cmp word [eax], 0
je 0x41b61b
lea eax, [ebp - 0x4c]
mov edx, dword [ebp + 0x1c]
call fcn.00403c30
mov dl, 0x7c
mov eax, dword [ebp - 0x4c]
call fcn.00405ef0
push eax
lea eax, [ebp - 0x58]
mov ecx, 1
mov edx, dword [0x41b2cc]
call fcn.0040457c
add esp, 4
mov eax, dword [ebp - 0x58]
call fcn.004043c0
push eax
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x41b2f4]
call fcn.0040457c
add esp, 4
mov eax, dword [ebp - 0x58]
call fcn.004043c8
test eax, eax
jl 0x41b61b
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.00403784
mov eax, dword [ebp - 0x88]
lea edx, [ebx + 1]
mov cl, 0x7c
call fcn.00405f34
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.00403c84
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.0041a004
or al, byte [ebp - 0x5d]
mov byte [ebp - 0x5d], al
inc ebx
dec dword [ebp - 0x70]
jne 0x41b5c8
cmp byte [ebp - 0x5d], 0
je 0x41b632
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov dword [ebp - 0x6c], eax
jmp 0x41b637
xor eax, eax
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x58]
call fcn.004043c0
mov ebx, eax
lea esi, [ebx + 2]
push esi
lea eax, [ebp - 0x58]
mov ecx, 1
mov edx, dword [0x41b2cc]
call fcn.0040457c
add esp, 4
push esi
lea eax, [ebp - 0x5c]
mov ecx, 1
mov edx, dword [0x41b2f4]
call fcn.0040457c
add esp, 4
lea edx, [ebp - 0x8c]
mov eax, dword [0x4d447c]
mov eax, dword [eax]
call fcn.00406224
mov edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ebx*4]
call fcn.00403c84
lea edx, [ebp - 0x90]
mov eax, dword [0x4d3d84]
call fcn.00406224
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 0x5c]
lea eax, [eax + ebx*4 + 4]
call fcn.00403c84
mov byte [ebp - 0x41], 0
xor eax, eax
mov dword [ebp - 0x48], eax
cmp byte [ebp - 0x41], 0
je 0x41b6cd
push 0xa
call sub.KERNEL32.dll_Sleep
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x2a], 1
lea eax, [ebp - 0x1c]
call fcn.0040a9fc
mov eax, dword [ebp - 0x1c]
call fcn.004043c0
push eax
lea eax, [ebp - 0x24]
mov ecx, 1
mov edx, dword [0x404f2c]
call fcn.0040457c
add esp, 4
mov eax, dword [ebp - 0x1c]
call fcn.004043c8
test eax, eax
jl 0x41b927
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.004043c8
mov edx, eax
test edx, edx
jl 0x41b74f
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 0x41b74b
mov byte [ebp - 0x29], 0
jmp 0x41b74f
inc eax
dec edx
jne 0x41b72f
cmp dword [ebp + 0x18], 0
je 0x41b77d
xor eax, eax
jmp 0x41b75a
inc eax
mov edx, dword [ebp + 0x18]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x41b770
mov ecx, ebx
add ecx, ecx
mov esi, dword [ebp - 0x1c]
cmp edx, dword [esi + ecx*8]
jne 0x41b759
mov edx, dword [ebp + 0x18]
cmp dword [edx + eax*4], 0
je 0x41b77d
mov byte [ebp - 0x29], 0
cmp byte [ebp - 0x29], 0
je 0x41b91d
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.0041a004
xor al, 1
and al, byte [ebp - 0x5d]
je 0x41b7dc
push 0x8000
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
push eax
call fcn.00417674
test eax, eax
je 0x41b7dc
lea eax, [ebp - 0x94]
mov edx, dword [ebp - 0x6c]
call fcn.00403c30
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x68]
call fcn.0041a004
cmp dword [ebp - 0x50], 0
je 0x41b80e
mov eax, dword [ebp - 0x50]
call fcn.004043c8
push eax
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x54]
call fcn.004043c8
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
call fcn.0041a16c
test al, al
je 0x41b91d
mov eax, dword [ebp - 0x58]
call fcn.004043c8
push eax
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0x5c]
call fcn.004043c8
push eax
mov ecx, dword [ebp - 0x58]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
call fcn.0041a16c
test al, al
jne 0x41b91d
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 0x41b8f6
mov eax, dword [ebp - 0x28]
push eax
call fcn.00416f8c
test eax, eax
jne 0x41b8eb
cmp byte [ebp + 0x24], 0
jne 0x41b88c
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.00416d8c
test al, al
jne 0x41b8eb
mov eax, dword [ebp + 0x28]
cmp eax, dword [0x4d3c00]
je 0x41b8d1
mov eax, ebx
add eax, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + eax*8]
call fcn.00417010
cmp eax, dword [ebp + 0x28]
je 0x41b8d1
mov esi, ebx
add esi, esi
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*8]
call fcn.00417010
test eax, eax
jne 0x41b8eb
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + esi*8 + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00416d8c
test al, al
je 0x41b8eb
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.0041b170
pop ecx
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x41b91d
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 0x41b91d
cmp dword [ebp - 0x28], 5
je 0x41b91d
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 0x41b712
cmp dword [ebp - 0x40], 0
jne 0x41b935
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x24]
call fcn.004043c8
test eax, eax
jl 0x41b962
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 0x41b95c
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp + 0x14]
call fcn.00419f90
inc ebx
dec dword [ebp - 0x70]
jne 0x41b947
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [0x40a40c]
call fcn.004045c4
inc dword [ebp - 0x48]
cmp byte [ebp - 0x2a], 0
jne 0x41b986
cmp dword [ebp - 0x48], 5
jne 0x41b6c0
cmp dword [ebp - 0x6c], 0
je 0x41b9ea
mov eax, dword [ebp - 0x6c]
push eax
call sub.KERNEL32.dll_LocalFree
jmp 0x41b9ea
mov byte [ebp - 0x15], 1
jmp 0x41b9ea
cmp byte [ebp + 8], 0
jne 0x41b9ad
push ebx
call fcn.00416f8c
test eax, eax
jne 0x41b9e1
push ebp
push ebx
call fcn.0040c5b8
mov edx, eax
lea ecx, [ebp - 0x28]
mov eax, ebx
call fcn.0041b170
pop ecx
test al, al
je 0x41b9e1
cmp dword [ebp - 0x28], 0
je 0x41b9e5
call sub.KERNEL32.dll_GetTickCount
mov ecx, eax
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x28]
call fcn.00419f90
test al, al
jne 0x41b9e5
xor eax, eax
jmp 0x41b9e7
mov al, 1
mov byte [ebp - 0x15], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bab5
lea eax, [ebp - 0x94]
call fcn.00403b18
lea eax, [ebp - 0x90]
mov edx, 4
call fcn.0040352c
lea eax, [ebp - 0x80]
call fcn.00403b18
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0040352c
lea eax, [ebp - 0x74]
call fcn.00403b18
lea eax, [ebp - 0x68]
mov edx, 2
call fcn.00403b30
lea eax, [ebp - 0x5c]
mov edx, dword [0x41b2f4]
call fcn.00404588
lea eax, [ebp - 0x58]
mov edx, dword [0x41b2cc]
call fcn.00404588
lea eax, [ebp - 0x54]
mov edx, dword [0x41b2a4]
call fcn.00404588
lea eax, [ebp - 0x50]
mov edx, dword [0x41b27c]
call fcn.00404588
lea eax, [ebp - 0x4c]
call fcn.00403b18
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0040352c
lea eax, [ebp - 0x24]
mov edx, dword [0x404f2c]
call fcn.00404588
lea eax, [ebp - 0x20]
mov edx, dword [0x40a40c]
mov ecx, 2
call fcn.00403fa0
ret