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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x780
mov eax, dword [0x6d1554]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x738]
push esi
push edi
push 0x11c
push 0
push eax
mov dword [ebp - 0x740], ecx
call fcn.005c7920
push 0x11c
push 0
push ebx
mov dword [ebp - 0x738], 0x11c
call fcn.005c7920
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 0x557d2f
push str.IsWow64Process
push str.kernel32
call eax
push eax
call edi
mov esi, eax
mov dword [ebp - 0x73c], 0
test esi, esi
je 0x557d2a
lea eax, [ebp - 0x73c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x557d2a
cmp dword [ebp - 0x73c], 0
jne 0x557f57
mov eax, dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push str.RtlGetVersion
push str.ntdll
call eax
push eax
call edi
test eax, eax
je 0x557d4b
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 - 0x74c], esi
lea ecx, [eax + eax*4]
mov eax, dword [ebp - 0x730]
lea eax, [eax + ecx*2]
cmp eax, esi
jle 0x557d88
mov ecx, 0x47
mov dword [ebp - 0x74c], 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.005c7920
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.005c7920
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemWindowsDirectoryW]
dec eax
cmp eax, 0x102
ja 0x557f57
mov ecx, dword [ebp - 0x740]
call fcn.00557f80
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x557deb
push str.System32_ntoskrnl.exe
jmp 0x557df0
push str.SysNative_ntoskrnl.exe
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 2
xor esi, esi
lea eax, [ebp - 0x61c]
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x557ea1
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov dword [ebp - 0x744], eax
test eax, eax
je 0x557e9a
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push dword [ebp - 0x744]
mov dword [ebp - 0x73c], eax
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x748], eax
test eax, eax
je 0x557e9a
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 0x744], eax
test eax, eax
je 0x557e8e
push dword [ebp - 0x73c]
call fcn.005ece00
mov esi, eax
add esp, 4
test esi, esi
je 0x557e8e
push dword [ebp - 0x73c]
push dword [ebp - 0x744]
push esi
call fcn.005c6e20
add esp, 0xc
push dword [ebp - 0x748]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor edi, edi
test esi, esi
je 0x557f57
lea eax, [ebp - 0x748]
mov dword [ebp - 0x73c], edi
push eax
lea eax, [ebp - 0x73c]
mov dword [ebp - 0x748], edi
push eax
push 0x666e1c
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x557eff
mov eax, dword [ebp - 0x73c]
mov edi, 1
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x780], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x770], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ebp - 0x760], xmm0
push esi
call fcn.005d3289
add esp, 4
test edi, edi
je 0x557f57
mov eax, dword [ebp - 0x770]
mov ecx, eax
shr ecx, 0x10
movzx edx, ax
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*2]
cmp dword [ebp - 0x74c], eax
jge 0x557f4a
mov eax, dword [ebp - 0x76c]
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0x740]
shr eax, 0x10
mov dword [ebx + 0xc], eax
mov eax, 1
mov dword [ebx + 8], edx
mov dword [ecx + 4], eax
jmp 0x557f64
mov ecx, dword [ebp - 0x740]
xor eax, eax
mov dword [ecx + 4], eax
jmp 0x557f64
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.0054d193
mov esp, ebp
pop ebp
ret 4