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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407a09
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x40b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
push 0x118
mov dword [ebp - 0x39c], eax
lea eax, [ebp - 0x278]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x27c], 0x11c
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ef5
cmp dword [ebp - 0x278], 6
ja 0x401e1d
jne 0x401e9e
cmp dword [ebp - 0x274], 2
jb 0x401e9e
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x401e9e
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401e9e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401e9e
movups xmm0, xmmword [0x409670]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x409680]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401e9e
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401e9e
cmp word [esi + 2], ax
jbe 0x401e9e
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401ef5
push 0x118
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call esi
mov ecx, dword [ebp - 0x270]
test eax, eax
cmove ecx, dword [ebp - 0x154]
mov dword [ebp - 0x270], ecx
push 0x118
lea eax, [ebp - 0x15c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x160]
add esp, 0xc
mov dword [ebp - 0x160], 0x11c
push eax
call esi
test eax, eax
je 0x402011
cmp dword [ebp - 0x15c], 6
ja 0x401f48
jne 0x401fc9
cmp dword [ebp - 0x158], 2
jb 0x401fc9
push str.kernel32.dll
call edi
mov esi, eax
test esi, esi
je 0x401fc9
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x401fc9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401fc9
movups xmm0, xmmword [0x409670]
push eax
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [0x409680]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401fc9
lea eax, [ebp - 0x30]
push eax
lea ecx, [esi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x401fc9
cmp word [esi + 2], ax
jbe 0x401fc9
movzx edx, word [esi + 0x32]
movzx ecx, word [esi + 0x30]
movzx eax, word [esi + 0x36]
mov dword [ebp - 0x15c], edx
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x154], eax
push str.ntdll.dll
call edi
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40200b
push 0x118
lea eax, [ebp - 0x394]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x398], 0x11c
lea eax, [ebp - 0x398]
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x15c], 6
jb 0x4020ae
push 1
mov dword [ebp - 0x34], 0
call fcn.004064d1
mov dword [ebp - 0x34], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp - 0x15c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x160], 0x11c
lea eax, [ebp - 0x160]
push eax
call esi
test eax, eax
je 0x40206e
cmp dword [ebp - 0x15c], 6
mov eax, dword [ebp - 0x34]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x34]
call fcn.004034c0
test al, al
jne 0x40209f
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402e70
or eax, 0xffffffff
jmp 0x4021f6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00402e70
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [ebp - 0x44], xmm0
push 4
mov dword [ebp - 0x44], 0
call fcn.004064d1
mov esi, eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 4], 1
push 4
mov dword [esi], 0
call fcn.004064d1
add esp, 8
mov dword [ebp - 0x3a0], eax
mov byte [ebp - 4], 2
mov dword [eax], 0
mov dword [eax], 0
mov byte [ebp - 4], 1
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], 3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 4
lea eax, [ebp - 0x20]
push 0
push eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
push dword [ebp - 0x39c]
call fcn.004022d0
mov dword [ebp - 0x39c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x402186
push ecx
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 6
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4021a2
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x4021f0
mov edi, dword [esi]
test edi, edi
je 0x4021de
mov eax, dword [edi]
test eax, eax
je 0x4021cd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4021cd
mov dword [edi], 0
push 4
push edi
call fcn.00406501
add esp, 8
mov dword [esi], 0
push 4
push esi
call fcn.00406501
add esp, 8
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x39c]
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.004064c0
mov esp, ebp
pop ebp
ret 0x10