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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46c932
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x492014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x288], 0
call fcn.00403a20
mov dword [ebp - 4], 1
test edi, edi
jne 0x416fcf
lea ecx, [ebp - 0x48]
call fcn.00403b30
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403fc0
mov byte [ebp - 0x284], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x284]
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403e50
jmp 0x41718c
push 0x118
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
mov dword [ebp - 0x164], 0x11c
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4170eb
cmp dword [ebp - 0x160], 6
ja 0x417020
jne 0x4170a5
cmp dword [ebp - 0x15c], 2
jb 0x4170a5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x4170a5
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4170a5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4170a5
movups xmm0, xmmword [0x48121c]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x48122c]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4170a5
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4170a5
cmp word [esi + 2], ax
jbe 0x4170a5
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x158], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4170eb
push 0x118
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.0044b5b0
add esp, 0xc
mov dword [ebp - 0x280], 0x11c
lea eax, [ebp - 0x280]
push eax
call esi
cmp dword [ebp - 0x160], 6
push edi
push 0
jb 0x4170fe
push 0x1000
jmp 0x417116
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x417122
push edi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41714c
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.004171c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push eax
call fcn.00403990
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403930
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.00403b30
push eax
call fcn.00403fb0
mov esi, dword [ebp - 0x284]
add esp, 4
mov ecx, esi
push eax
call fcn.00403fc0
mov byte [ebp - 0x284], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x284]
push eax
call fcn.00403fb0
add esp, 4
mov ecx, esi
push eax
call fcn.00403e50
mov dword [ebp - 0x288], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00403930
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004345d1
mov esp, ebp
pop ebp
ret