Function at 0x4195c0
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 0x46d670
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b8
mov eax, dword [0x493014]
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 0x481620
lea ecx, [ebp - 0x2c]
call fcn.00403a50
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00421920
mov ecx, eax
call fcn.004219e0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004039b0
test esi, esi
je 0x419a14
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 0x419a14
test eax, eax
je 0x419a14
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 0x419a14
test eax, eax
je 0x419a14
push pe_nt_image_headers32
lea eax, [ebp - 0x16c]
push 0
push eax
call fcn.0044bf20
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 0x4197ef
cmp dword [ebp - 0x16c], 6
ja 0x41970f
jne 0x419794
cmp dword [ebp - 0x168], 2
jb 0x419794
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x419794
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x419794
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x419794
movups xmm0, xmmword [0x4823c8]
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmm0, xmmword [0x4823d8]
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x419794
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x419794
cmp word [esi + 2], ax
jbe 0x419794
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 0x4197ef
push pe_nt_image_headers32
lea eax, [ebp - 0x28c]
push 0
push eax
call fcn.0044bf20
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 0x41980a
mov edx, dword [ebp - 0x2bc]
mov ecx, edi
call fcn.00419500
jmp 0x419a16
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 0x419a14
push dword [ebp - 0x298]
call fcn.00435935
mov edi, eax
add esp, 4
test edi, edi
je 0x419a14
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x298]
push edi
push 0x19
push dword [ebp - 0x2b0]
call esi
test eax, eax
jne 0x419885
push edi
call fcn.00435735
add esp, 4
jmp 0x419a14
mov eax, dword [edi]
test eax, eax
je 0x419877
xor esi, esi
cmp dword [eax + 8], 0x3000
je 0x4198df
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 0x419877
mov esi, dword [ebp - 0x2a0]
test esi, esi
mov eax, esi
mov dword [ebp - 0x2a0], 0
cmove eax, dword [ebp - 0x2b0]
jmp 0x4198e5
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 0x419a00
cmp dword [ebp - 0x294], 0
je 0x419a00
push str.S_1_16_12288
lea ecx, [ebp - 0x50]
call fcn.00403a50
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.00403970
push eax
call dword [ebp - 0x2b8]
test eax, eax
je 0x419987
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 0x4199ae
push edi
call fcn.00435735
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
test esi, esi
je 0x41999d
push esi
call edi
push dword [ebp - 0x294]
call edi
mov byte [ebp - 0x2a9], 0
jmp 0x4199e9
mov eax, dword [ebp - 0x29c]
test eax, eax
je 0x4199c9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x29c], 0
test esi, esi
je 0x4199d4
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.004039b0
mov al, byte [ebp - 0x2a9]
jmp 0x419a16
push edi
call fcn.00435735
add esp, 4
test esi, esi
je 0x419a14
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.00434f3f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret