Function at 0x41ab40
Capabilities:
Check os version
Extract resource via kernel32 functions
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f790
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x495014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2bc], edx
mov edi, ecx
mov dword [ebp - 0x2b0], edi
push 0x483b98
lea ecx, [ebp - 0x2c]
call fcn.00403a70
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00423830
mov ecx, eax
call fcn.004238f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004039d0
test esi, esi
je 0x41af94
push str.GetTokenInformation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetTokenInformation
push esi
mov dword [ebp - 0x2b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2b4], 0
mov dword [ebp - 0x2c4], eax
je 0x41af94
test eax, eax
je 0x41af94
push str.ConvertStringSidToSidW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DuplicateTokenEx
push esi
mov dword [ebp - 0x2b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2c0], eax
je 0x41af94
test eax, eax
je 0x41af94
push pe_nt_image_headers32
lea eax, [ebp - 0x16c]
push 0
push eax
call fcn.0044de20
add esp, 0xc
mov dword [ebp - 0x170], 0x11c
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41ad6f
cmp dword [ebp - 0x16c], 6
ja 0x41ac8f
jne 0x41ad14
cmp dword [ebp - 0x168], 2
jb 0x41ad14
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x41ad14
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41ad14
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41ad14
movups xmm0, xmmword [0x484974]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x484984]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41ad14
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41ad14
cmp word [esi + 2], ax
jbe 0x41ad14
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], 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 0x41ad6f
push pe_nt_image_headers32
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.0044de20
add esp, 0xc
mov dword [ebp - 0x290], 0x11c
lea eax, [ebp - 0x290]
push eax
call esi
mov esi, dword [ebp - 0x164]
test eax, eax
cmove esi, dword [ebp - 0x284]
mov dword [ebp - 0x164], esi
cmp dword [ebp - 0x16c], 6
jae 0x41ad8a
mov edx, dword [ebp - 0x2bc]
mov ecx, edi
call fcn.0041aa80
jmp 0x41af96
mov esi, dword [ebp - 0x2b4]
lea eax, [ebp - 0x298]
push eax
push 0
push 0
push 0x19
push edi
mov dword [ebp - 0x294], 0
mov dword [ebp - 0x298], 0
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x41af94
push dword [ebp - 0x298]
call fcn.00437835
mov edi, eax
add esp, 4
test edi, edi
je 0x41af94
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
push edi
push 0x19
push dword [ebp - 0x2b0]
call esi
test eax, eax
jne 0x41ae05
push edi
call fcn.00437635
add esp, 4
jmp 0x41af94
mov eax, dword [edi]
test eax, eax
je 0x41adf7
xor esi, esi
cmp dword [eax + 8], 0x3000
je 0x41ae5f
lea eax, [ebp - 0x38]
mov dword [ebp - 0x2a0], esi
push eax
push 4
lea eax, [ebp - 0x2a0]
mov dword [ebp - 0x38], 4
push eax
push 0x13
push dword [ebp - 0x2b0]
call dword [ebp - 0x2b4]
test eax, eax
je 0x41adf7
mov esi, dword [ebp - 0x2a0]
test esi, esi
mov eax, esi
mov dword [ebp - 0x2a0], 0
cmove eax, dword [ebp - 0x2b0]
jmp 0x41ae65
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x294]
push ecx
push 1
push 2
push 0
push 0xf01ff
push eax
call dword [ebp - 0x2c0]
test eax, eax
je 0x41af80
cmp dword [ebp - 0x294], 0
je 0x41af80
push str.S_1_16_12288
lea ecx, [ebp - 0x50]
call fcn.00403a70
mov dword [ebp - 4], 1
lea eax, [ebp - 0x29c]
xorps xmm0, xmm0
mov dword [ebp - 0x29c], 0
push eax
lea ecx, [ebp - 0x50]
movq qword [ebp - 0x2a8], xmm0
call fcn.00403990
push eax
call dword [ebp - 0x2b8]
test eax, eax
je 0x41af07
mov eax, dword [ebp - 0x29c]
push 8
mov dword [ebp - 0x2a8], eax
lea eax, [ebp - 0x2a8]
push eax
push 0x19
push dword [ebp - 0x294]
mov dword [ebp - 0x2a4], 0x20
call dword [ebp - 0x2c4]
test eax, eax
jne 0x41af2e
push edi
call fcn.00437635
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test esi, esi
je 0x41af1d
push esi
call edi
push dword [ebp - 0x294]
call edi
mov byte [ebp - 0x2a9], 0
jmp 0x41af69
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x41af49
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x29c], 0
test esi, esi
je 0x41af54
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x2bc]
mov eax, dword [ebp - 0x294]
mov byte [ebp - 0x2a9], 1
mov dword [ecx], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004039d0
mov al, byte [ebp - 0x2a9]
jmp 0x41af96
push edi
call fcn.00437635
add esp, 4
test esi, esi
je 0x41af94
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00436e3f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret