Function at 0x102635a
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 [0x1033f70]
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 0x10263de
cmp dword [ebp + 0x14], ebx
je 0x1026613
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1026613
cmp dword [ebp - 0x114], 6
jb 0x1026535
push 0x1012418
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x11c], eax
cmp eax, ebx
je 0x1026613
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1014068
push eax
call esi
mov dword [ebp - 0x148], eax
cmp eax, ebx
je 0x1026613
push 0x1014054
push dword [ebp - 0x11c]
call esi
mov esi, eax
cmp esi, ebx
je 0x1026613
push ebx
push ebx
push 3
push ebx
push 5
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x12c], eax
cmp eax, 0xffffffff
jne 0x102647f
mov dword [ebp - 0x12c], ebx
jmp 0x1026613
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x124], eax
cmp eax, ebx
je 0x1026613
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 0x1026522
lea eax, [ebp - 0x15c]
push eax
push ebx
push dword [ebp - 0x138]
push dword [ebp - 0x120]
push ebx
call esi
cmp eax, ebx
jl 0x1026522
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], 0x101404c
mov dword [ebp - 0x154], edi
mov dword [ebp - 0x150], ebx
call dword [ebp - 0x148]
cmp eax, ebx
jl 0x1026522
cmp dword [ebp - 0x130], ebx
jne 0x1026572
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1026613
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x128], eax
cmp eax, ebx
jne 0x1026550
xor eax, eax
jmp 0x1026669
push 0x101404c
push 1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x130], eax
cmp eax, ebx
je 0x10265ff
mov esi, dword [ebp - 0x128]
push dword [ebp - 0x130]
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x10265ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x10265ff
cmp dword [eax], 0xfecdfecd
je 0x10265a0
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10265ff
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 0x10265f5
lea esi, [ecx + eax]
cmp word [esi], 0x2a
jne 0x10265c2
mov esi, 0x1012164
cmp dword [ebp - 0x134], ebx
je 0x10265dd
push esi
push dword [ebp + 0x14]
push dword [ebp - 0x134]
call fcn.0101e2a4
test eax, eax
jl 0x10265ff
mov edi, dword [ebp - 0x140]
cmp edi, ebx
je 0x10265f5
push esi
push dword [ebp - 0x144]
call fcn.0102cc58
mov dword [edi], eax
mov dword [ebp - 0x13c], 1
cmp dword [ebp - 0x128], ebx
je 0x1026613
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x120], ebx
je 0x1026629
push dword [ebp - 0x120]
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x124], ebx
je 0x102663f
push dword [ebp - 0x124]
call esi
cmp dword [ebp - 0x12c], ebx
je 0x102664f
push dword [ebp - 0x12c]
call esi
cmp dword [ebp - 0x11c], ebx
je 0x1026663
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.0101c23d
leave
ret 0x18