Function at 0x1027d10
Capabilities:
Check os version
Extract resource via kernel32 functions
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x103f89c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [ebp - 0x134], esi
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x138], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
je 0x1027d92
cmp dword [ebp + 0x14], ebx
je 0x1027fc7
mov word [esi], bx
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1027fc7
cmp dword [ebp - 0x114], 6
jb 0x1027ee9
push 0x1010e28
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x11c], eax
je 0x1027fc7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1011f28
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x148], eax
je 0x1027fc7
push 0x1011f14
push dword [ebp - 0x11c]
call esi
mov esi, eax
cmp esi, ebx
je 0x1027fc7
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x12c], eax
jne 0x1027e33
mov dword [ebp - 0x12c], ebx
jmp 0x1027fc7
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov dword [ebp - 0x124], eax
je 0x1027fc7
push 2
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x138]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x120]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x124]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
cmp eax, ebx
jl 0x1027ed6
lea eax, [ebp - 0x15c]
push eax
push ebx
push dword [ebp - 0x138]
push dword [ebp - 0x120]
push ebx
call esi
cmp eax, ebx
jl 0x1027ed6
mov esi, dword [ebp - 0x120]
lea eax, [ebp - 0x130]
push eax
push 3
lea eax, [ebp - 0x158]
push eax
or esi, edi
push esi
push 0x30
mov dword [ebp - 0x158], 0x1011f0c
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], ebx
call dword [ebp - 0x148]
cmp eax, ebx
jl 0x1027ed6
cmp dword [ebp - 0x130], ebx
jne 0x1027f26
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1027fc7
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, ebx
mov dword [ebp - 0x128], eax
jne 0x1027f04
xor eax, eax
jmp 0x102801d
push 0x1011f0c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
mov dword [ebp - 0x130], eax
je 0x1027fb3
mov esi, dword [ebp - 0x128]
push dword [ebp - 0x130]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x1027fb3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x1027fb3
cmp dword [eax], 0xfecdfecd
je 0x1027f54
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1027fb3
mov edi, dword [ebp - 0x14c]
lea esi, [eax + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x74]
cmp ecx, ebx
jbe 0x1027fa9
lea esi, [ecx + eax]
cmp word [esi], 0x2a
jne 0x1027f76
mov esi, 0x1010bac
cmp dword [ebp - 0x134], ebx
je 0x1027f91
push esi
push dword [ebp + 0x14]
push dword [ebp - 0x134]
call fcn.01023ada
test eax, eax
jl 0x1027fb3
mov edi, dword [ebp - 0x140]
cmp edi, ebx
je 0x1027fa9
push esi
push dword [ebp - 0x144]
call fcn.01037cc9
mov dword [edi], eax
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x128], ebx
je 0x1027fc7
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x120], ebx
je 0x1027fdd
push dword [ebp - 0x120]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
cmp dword [ebp - 0x124], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x1027ff3
push dword [ebp - 0x124]
call esi
cmp dword [ebp - 0x12c], ebx
je 0x1028003
push dword [ebp - 0x12c]
call esi
cmp dword [ebp - 0x11c], ebx
je 0x1028017
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01017c0a
leave
ret 0x18