Function at 0x10036550
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x780
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x734]
push esi
push edi
push 0x118
push 0
push eax
mov dword [ebp - 0x740], ecx
mov dword [ebp - 0x74c], ebx
call fcn.102134e7
push 0x118
lea eax, [ebx + 4]
mov dword [ebp - 0x738], 0x11c
push 0
push eax
call fcn.102134e7
add esp, 0x18
mov dword [ebx], 0x11c
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebx + 4], 5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x10036608
push str.IsWow64Process
push str.kernel32
call eax
push eax
call edi
mov esi, eax
mov dword [ebp - 0x73c], 0
test esi, esi
je 0x10036603
lea eax, [ebp - 0x73c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x10036603
cmp dword [ebp - 0x73c], 0
jne 0x10036812
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push str.ntdll
call eax
push eax
call edi
test eax, eax
je 0x10036624
lea ecx, [ebp - 0x738]
push ecx
call eax
mov eax, dword [ebx + 4]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 8]
lea esi, [eax + ecx*2]
mov eax, dword [ebp - 0x734]
mov dword [ebp - 0x748], esi
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x730]
lea eax, [eax + ecx*2]
cmp eax, esi
jle 0x10036661
mov ecx, 0x47
mov dword [ebp - 0x748], eax
lea esi, [ebp - 0x738]
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x410
lea eax, [ebp - 0x61c]
push 0
push eax
call fcn.102134e7
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.102134e7
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x10036812
mov ecx, dword [ebp - 0x740]
call fcn.10037430
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x100366c4
push str.System32_ntoskrnl.exe
jmp 0x100366c9
push str.SysNative_ntoskrnl.exe
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 2
xor ebx, ebx
lea eax, [ebp - 0x61c]
push ebx
push eax
call dword [0x10219950]
mov esi, eax
test esi, esi
je 0x10036764
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x1003675d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [ebp - 0x73c], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003675d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x744], eax
test eax, eax
je 0x10036756
push dword [ebp - 0x73c]
call fcn.102135a7
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10036756
push dword [ebp - 0x73c]
push dword [ebp - 0x744]
push ebx
call fcn.102134e1
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x10036812
lea eax, [ebp - 0x744]
mov dword [ebp - 0x73c], 0
push eax
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x744], 0
push eax
push 0x10219e0c
push ebx
call sub.VERSION.dll_VerQueryValueW
push ebx
test eax, eax
je 0x1003680a
mov esi, dword [ebp - 0x73c]
lea edi, [ebp - 0x780]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
call fcn.10213559
mov eax, dword [ebp - 0x770]
add esp, 4
mov edx, eax
movzx esi, ax
shr edx, 0x10
lea eax, [edx + edx*4]
lea eax, [esi + eax*2]
cmp dword [ebp - 0x748], eax
jge 0x100367fd
mov ecx, dword [ebp - 0x74c]
mov eax, dword [ebp - 0x76c]
shr eax, 0x10
mov dword [ecx + 0xc], eax
mov eax, 1
mov dword [ecx + 4], edx
mov dword [ecx + 8], esi
mov ecx, dword [ebp - 0x740]
mov dword [ecx + 4], eax
jmp 0x1003681f
mov ecx, dword [ebp - 0x740]
xor eax, eax
mov dword [ecx + 4], eax
jmp 0x1003681f
call fcn.10213559
add esp, 4
mov eax, dword [ebp - 0x740]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4