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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d322
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x493014]
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.00403aa0
mov dword [ebp - 4], 1
test edi, edi
jne 0x41792f
lea ecx, [ebp - 0x48]
call fcn.00403bb0
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00404040
mov byte [ebp - 0x284], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x284]
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00403ed0
jmp 0x417aec
push pe_nt_image_headers32
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.0044bf20
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 0x417a4b
cmp dword [ebp - 0x160], 6
ja 0x417980
jne 0x417a05
cmp dword [ebp - 0x15c], 2
jb 0x417a05
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x417a05
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x417a05
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x417a05
movups xmm0, xmmword [0x4823c8]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x4823d8]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417a05
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x417a05
cmp word [esi + 2], ax
jbe 0x417a05
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 0x417a4b
push pe_nt_image_headers32
lea eax, [ebp - 0x27c]
push 0
push eax
call fcn.0044bf20
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 0x417a5e
push 0x1000
jmp 0x417a76
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x417a82
push edi
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x417aac
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00417b20
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
push eax
call fcn.00403a10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004039b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x48]
call fcn.00403bb0
push eax
call fcn.00404030
mov esi, dword [ebp - 0x284]
add esp, 4
mov ecx, esi
push eax
call fcn.00404040
mov byte [ebp - 0x284], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x284]
push eax
call fcn.00404030
add esp, 4
mov ecx, esi
push eax
call fcn.00403ed0
mov dword [ebp - 0x288], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004039b0
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.00434f3f
mov esp, ebp
pop ebp
ret