Function at 0x40cb5d
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xd8
mov eax, dword [0x431920]
xor eax, ebp
mov dword [ebp + 0x64], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x78]
xor esi, esi
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 0xa
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea eax, [ebp - 0x44]
push eax
push 0x42b8d0
push 1
push esi
push 0x42c9b8
mov dword [ebp - 0x44], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x5c], esi
jl 0x40cbee
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x5c]
push edx
push eax
call dword [ecx + 0x38]
mov ebx, eax
cmp ebx, esi
jl 0x40cbee
push dword [ebp + 0x7c]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x40]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x68], esi
jl 0x40cc0a
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x68]
push edx
push 1
push esi
push dword [ebp - 0x5c]
push eax
call dword [ecx + 0x10]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x4c], esi
jl 0x40cc21
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x4c]
push edx
push esi
push eax
call dword [ecx + 0x34]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x50], esi
jl 0x40cc37
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x50]
push edx
push eax
call dword [ecx + 0x2c]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], esi
jl 0x40cc54
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea edx, [ebp - 0x70]
push edx
lea edx, [ebp - 0x6c]
push edx
push eax
call dword [ecx + 0xc]
mov ebx, eax
mov esi, 0x42c9d8
lea edi, [ebp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
cmp ebx, esi
jl 0x40cd53
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
lea edx, [ebp + 0x54]
push edx
push eax
call dword [ecx + 0x10]
mov ebx, eax
cmp ebx, esi
jl 0x40cd53
push 3
pop edi
mov esi, 0x94
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.00410e00
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x3c], 0xa
jb 0x40ccae
push 4
pop edi
mov eax, dword [ebp - 0x70]
fild dword [ebp - 0x70]
mov esi, dword [ebp - 0x50]
mov ebx, dword [esi]
push edi
test eax, eax
jge 0x40ccc4
fadd qword [0x42b8c8]
fmul qword [ebp + 0x70]
call fcn.00413d66
fild dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jge 0x40ccdd
fadd qword [0x42b8c8]
fmul qword [ebp + 0x70]
call fcn.00413d66
push eax
push dword [ebp - 0x4c]
push esi
call dword [ebx + 0x20]
mov ebx, eax
test ebx, ebx
jge 0x40cd3c
cmp edi, 4
jne 0x40cd3c
mov eax, dword [ebp - 0x70]
fild dword [ebp - 0x70]
mov esi, dword [ebp - 0x50]
mov ebx, dword [esi]
push 3
pop edi
push edi
test eax, eax
jge 0x40cd11
fadd qword [0x42b8c8]
fmul qword [ebp + 0x70]
call fcn.00413d66
fild dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x6c]
test eax, eax
jge 0x40cd2a
fadd qword [0x42b8c8]
fmul qword [ebp + 0x70]
call fcn.00413d66
push eax
push dword [ebp - 0x4c]
push esi
call dword [ebx + 0x20]
mov ebx, eax
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push edi
push str.interpolation_mode__d__d__d__p
call fcn.0040c1e2
add esp, 0x14
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x60], esi
jl 0x40cd69
lea eax, [ebp - 0x60]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x58], esi
jl 0x40cd91
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x58]
push edx
push eax
call dword [ecx + 0x38]
mov ebx, eax
cmp ebx, esi
jl 0x40cd91
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x38]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x54], esi
jl 0x40cdc1
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax]
lea edx, [ebp - 0x54]
push edx
push esi
push 0x42c9c8
push eax
call dword [ecx + 0x20]
mov ebx, eax
cmp ebx, esi
jl 0x40cdc1
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push 2
push dword [ebp - 0x58]
push eax
call dword [ecx + 0xc]
mov ebx, eax
cmp ebx, esi
mov dword [ebp - 0x48], esi
jl 0x40ce20
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x28]
cmp eax, esi
jl 0x40ce20
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0xc]
cmp eax, esi
jl 0x40ce20
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
lea edx, [ebp + 0x54]
push edx
push eax
call dword [ecx + 0x18]
cmp eax, esi
jl 0x40ce20
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push esi
push dword [ebp - 0x50]
push eax
call dword [ecx + 0x2c]
cmp eax, esi
jl 0x40ce20
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x30]
cmp eax, esi
jl 0x40ce20
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 0x44]
cmp eax, esi
je 0x40ce2d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x5c]
cmp eax, esi
je 0x40ce3a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x68]
cmp eax, esi
je 0x40ce47
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x4c]
cmp eax, esi
je 0x40ce54
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x50]
cmp eax, esi
je 0x40ce61
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x58]
cmp eax, esi
je 0x40ce6e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x54]
cmp eax, esi
je 0x40ce7b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x48]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x40ce8b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp + 0x64]
mov eax, dword [ebp - 0x60]
xor ecx, ebp
call fcn.0040f5c8
add ebp, 0x68
leave
ret