Function at 0x100244e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10024502
xor eax, eax
jmp 0x100246f9
push 0x1003999c
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002452b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x100246f9
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 1
push 0
push 0
call dword [ebp - 4]
test eax, eax
je 0x100246b8
cmp dword [0x10050540], 0
jne 0x1002457e
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
movzx edx, cx
and edx, 0xff
movzx eax, dl
mov dword [0x10050540], eax
mov dword [ebp - 0x18], 0
cmp dword [0x10050540], 6
jae 0x100245fc
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
ja 0x100245fa
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
jmp 0x100245b8
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 8]
jae 0x100245f2
mov edx, dword [ebp - 0x24]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 8], 5
jl 0x100245d2
jmp 0x100245af
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + ecx]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
jmp 0x100245af
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
jmp 0x1002467a
mov edx, dword [ebp - 8]
sub edx, 1
mov eax, dword [ebp + 0xc]
cmp edx, dword [eax]
ja 0x1002467a
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
jmp 0x10024629
mov ecx, dword [ebp - 0x2c]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 8]
jae 0x10024672
mov eax, dword [ebp - 0x2c]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + eax], 0
je 0x10024650
mov edx, dword [ebp - 0x2c]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 8], 5
jl 0x10024652
jmp 0x10024620
mov ecx, dword [ebp - 0x2c]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov ecx, dword [esi + ecx]
mov dword [eax + edx*4], ecx
mov edx, dword [ebp - 0x28]
add edx, 1
mov dword [ebp - 0x28], edx
jmp 0x10024620
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
push 0x100399b4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x10024699
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x18], 0
jne 0x100246b1
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
jmp 0x100246f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x30], 0x47f
jne 0x100246f7
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, 1
jmp 0x100246f9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret