Function at 0x2417010
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x24bf18b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x360
push ebx
push ebp
push esi
push edi
mov edi, edx
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ecx
je 0x241724c
cmp dword [esp + 0x380], ebx
je 0x241724c
push 0x24da3b8
xor esi, esi
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov ebp, eax
cmp ebp, ebx
je 0x241724c
push 0x24da3a8
push ebp
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x24170a8
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
lea edx, [esp + 0x24]
mov dword [esp + 0x30], ecx
push edx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x28], 0x14
call eax
test eax, eax
jne 0x24170a8
cmp dword [esp + 0x28], 5
jb 0x24170a8
mov esi, 1
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
cmp eax, ebx
je 0x24170bc
cmp eax, 1
jne 0x2417245
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebx
call dword [sym.imp.shell32.dll_SHGetMalloc]
test eax, eax
jne 0x241723f
call dword [sym.imp.kernel32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x2417154
xor eax, eax
neg esi
sbb esi, esi
mov ecx, 7
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
and esi, 0x40
push 0x24da394
lea edx, [esp + 0x16c]
or esi, 1
push ebp
mov word [esp + 0x170], bx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x2417235
lea ecx, [esp + 0x24]
push ecx
call eax
mov esi, eax
jmp 0x2417231
mov byte [esp + 0x64], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x378], ebx
call fcn.0247fbd0
test eax, eax
jne 0x24171ab
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x241724c
push eax
call fcn.024ad03a
add esp, 4
jmp 0x241724c
mov edx, dword [esp + 0x18]
xor eax, eax
neg esi
sbb esi, esi
mov ecx, 7
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
and esi, 0x40
push 0x24da380
lea ecx, [esp + 0x68]
or esi, 1
push ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
cmp eax, ebx
je 0x2417209
lea ecx, [esp + 0x44]
push ecx
call eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x378], 0xffffffff
mov dword [esp + 0x14], ebx
je 0x241722d
push eax
call fcn.024ad03a
add esp, 4
mov dword [esp + 0x18], ebx
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jne 0x2417269
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x370]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x36c
ret 4
mov edx, dword [esp + 0x380]
mov ecx, esi
call fcn.024821d0
test eax, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push esi
push eax
jne 0x2417288
call dword [ecx + 0x14]
jmp 0x2417235
call dword [ecx + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebp
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov eax, 1
jmp 0x241724e