Function at 0x418c60
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 0x46cc80
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x492014]
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 0x480474
lea ecx, [ebp - 0x2c]
call fcn.004039d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00420fc0
mov ecx, eax
call fcn.00421080
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403930
test esi, esi
je 0x4190b4
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 0x4190b4
test eax, eax
je 0x4190b4
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 0x4190b4
test eax, eax
je 0x4190b4
push 0x118
lea eax, [ebp - 0x16c]
push 0
push eax
call fcn.0044b5b0
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 0x418e8f
cmp dword [ebp - 0x16c], 6
ja 0x418daf
jne 0x418e34
cmp dword [ebp - 0x168], 2
jb 0x418e34
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x418e34
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418e34
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418e34
movups xmm0, xmmword [0x48121c]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x48122c]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418e34
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x418e34
cmp word [esi + 2], ax
jbe 0x418e34
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 0x418e8f
push 0x118
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.0044b5b0
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 0x418eaa
mov edx, dword [ebp - 0x2bc]
mov ecx, edi
call fcn.00418ba0
jmp 0x4190b6
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 0x4190b4
push dword [ebp - 0x298]
call fcn.00434fc5
mov edi, eax
add esp, 4
test edi, edi
je 0x4190b4
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
push edi
push 0x19
push dword [ebp - 0x2b0]
call esi
test eax, eax
jne 0x418f25
push edi
call fcn.00434dc5
add esp, 4
jmp 0x4190b4
mov eax, dword [edi]
test eax, eax
je 0x418f17
xor esi, esi
cmp dword [eax + 8], 0x3000
je 0x418f7f
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 0x418f17
mov esi, dword [ebp - 0x2a0]
test esi, esi
mov eax, esi
mov dword [ebp - 0x2a0], 0
cmove eax, dword [ebp - 0x2b0]
jmp 0x418f85
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 0x4190a0
cmp dword [ebp - 0x294], 0
je 0x4190a0
push str.S_1_16_12288
lea ecx, [ebp - 0x50]
call fcn.004039d0
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.004038f0
push eax
call dword [ebp - 0x2b8]
test eax, eax
je 0x419027
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 0x41904e
push edi
call fcn.00434dc5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test esi, esi
je 0x41903d
push esi
call edi
push dword [ebp - 0x294]
call edi
mov byte [ebp - 0x2a9], 0
jmp 0x419089
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x419069
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x29c], 0
test esi, esi
je 0x419074
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.00403930
mov al, byte [ebp - 0x2a9]
jmp 0x4190b6
push edi
call fcn.00434dc5
add esp, 4
test esi, esi
je 0x4190b4
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.004345d1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret