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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc31b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x501008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x26c], esi
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x28c], edi
mov dword [ebp - 0x270], 0
call fcn.00402ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x148]
push 0x118
push 0
push eax
mov dword [ebp - 0x270], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x14c], 0x11c
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4074a9
cmp dword [ebp - 0x148], 6
ja 0x4073d8
jne 0x40745d
cmp dword [ebp - 0x144], 2
jb 0x40745d
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x40745d
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40745d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40745d
movups xmm0, xmmword [0x4ebbec]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x4ebbfc]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40745d
lea eax, [ebp - 0x30]
push eax
lea eax, [esi + 6]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40745d
cmp word [esi + 2], ax
jbe 0x40745d
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x140], 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 0x4074a3
push 0x118
lea eax, [ebp - 0x264]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x268], 0x11c
lea eax, [ebp - 0x268]
push eax
call esi
mov esi, dword [ebp - 0x26c]
cmp dword [ebp - 0x148], 6
ja 0x4074f4
jne 0x4074bd
cmp dword [ebp - 0x144], 1
jae 0x4074f4
push str._AppData_
lea ecx, [ebp - 0x288]
call fcn.00402100
mov dword [ebp - 4], 3
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x28]
call fcn.0041b900
mov byte [ebp - 4], 4
mov ecx, edi
push eax
call fcn.00402e90
mov byte [ebp - 4], 3
jmp 0x407529
push str._ProgramData_
lea ecx, [ebp - 0x288]
call fcn.00402100
mov dword [ebp - 4], 1
lea edx, [ebp - 0x288]
lea ecx, [ebp - 0x28]
call fcn.0041b900
mov byte [ebp - 4], 2
mov ecx, edi
push eax
call fcn.00402e90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.004020f0
mov eax, dword [esi]
lea ecx, [ebp - 0x288]
push ecx
mov ecx, esi
mov eax, dword [eax + 4]
call eax
mov dword [ebp - 4], 5
mov edx, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041ad70
add esp, 4
mov byte [ebp - 4], 6
mov ecx, edi
push eax
call fcn.00402e90
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x28]
call fcn.004020f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x288]
call fcn.004020f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d99e2
mov esp, ebp
pop ebp
ret 4