Function at 0x4187b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442abe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x459070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jae 0x4187f7
and eax, 0xff00
cmp eax, 0x100
jb 0x4189fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 0x451234
push 0x17
push 0
push 0x45107c
mov dword [ebp - 0x30], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4189e6
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push edx
push 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4189d5
mov byte [ebp - 4], 5
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0x2c]
push edx
push 0
push 0x17
mov dword [ebp - 0x28], 0
mov ecx, dword [eax]
push 0x45118c
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x4189c4
mov byte [ebp - 4], 9
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
test eax, eax
js 0x4189b3
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
js 0x4189b3
xor esi, esi
cmp dword [ebp - 0x24], esi
jle 0x4189b3
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
push edx
mov dword [ebp - 0x14], 0
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x4189a2
mov byte [ebp - 4], 0x18
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x14]
push edx
mov dword [ebp - 0x18], 0
push 0x451280
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x418991
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x38]
cmp dword [ebp - 0x34], edi
jne 0x418963
mov byte [ebp - 4], 0x1f
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push edx
mov dword [ebp - 0x20], 0
push 0x451270
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x418952
mov eax, dword [ebp - 0x20]
xor ecx, ecx
test ebx, ebx
push 0
sete cl
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x14]
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x418963
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x21
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x418974
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x22
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x418985
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
cmp esi, dword [ebp - 0x24]
jl 0x4188c1
jmp 0x4189b3
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4189a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4189b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x23
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4189c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x24
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4189d5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0x25
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4189e6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x26
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4189fa
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422a60
mov esp, ebp
pop ebp
ret