Function at 0x456d00
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 8]
test byte [esi + 0x10], 1
je 0x456d80
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x18]
sub eax, ecx
cmp eax, 4
jbe 0x456d80
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 8], eax
movd xmm0, dword [esi + 0x18]
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [esi + 0x18]
psubd xmm0, xmm1
movups xmmword [esi + 0x18], xmm0
movups xmm0, xmmword [esi + 0x28]
psubd xmm0, xmm1
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [esi + 0x38]
psubd xmm0, xmm1
movups xmmword [esi + 0x38], xmm0
movups xmm0, xmmword [esi + 0x48]
psubd xmm0, xmm1
movups xmmword [esi + 0x48], xmm0
nop dword [eax + eax]
test byte [esi + 0x10], 2
je 0x456dea
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x58]
sub eax, ecx
cmp eax, 4
jbe 0x456dea
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 0xc], eax
xor eax, eax
mov ecx, dword [esi + 0x58]
movd xmm0, ecx
pshufd xmm1, xmm0, 0
nop word [eax + eax]
movups xmm0, xmmword [esi + eax*4 + 0x58]
psubd xmm0, xmm1
movups xmmword [esi + eax*4 + 0x58], xmm0
add eax, 4
cmp eax, 0xc
jl 0x456dc0
cmp eax, 0xf
jge 0x456dea
nop dword [eax + eax]
sub dword [esi + eax*4 + 0x58], ecx
inc eax
cmp eax, 0xf
jl 0x456de0
test byte [esi + 0x10], 4
je 0x456e2c
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
sub eax, ecx
cmp eax, 4
jbe 0x456e2c
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 0x10], eax
mov ecx, dword [esi + 0x94]
mov dword [esi + 0x94], 0
sub dword [esi + 0x98], ecx
test byte [esi + 0x10], 8
je 0x456e62
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
sub eax, ecx
cmp eax, 4
jbe 0x456e62
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 0x14], eax
mov dword [esi + 0x9c], 0
test byte [esi + 0x10], 0x20
je 0x456e98
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
sub eax, ecx
cmp eax, 4
jbe 0x456e98
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 0x18], eax
mov dword [esi + 0xa0], 0
test byte [edi + 0x5c], 0x10
jne 0x456ea4
cmp dword [edi + 0x50], 1
jne 0x456ec7
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xa4]
sub eax, ecx
cmp eax, 4
jbe 0x456ec7
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00456f30
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x14]
mov esi, dword [edi + 0x44]
add ecx, 0xa8
sub esi, ecx
je 0x456f1a
mov eax, ecx
xor edx, edx
div ebx
mov ebx, edx
sub ecx, ebx
lea eax, [ebx + esi]
push eax
push ecx
push 0
push 4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x456f1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x456f1a
lea ecx, [esi + ebx]
xor eax, eax
mov dword [edi + 0x40], ecx
test ecx, ecx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 0x40], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4