Function at 0x458330
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 0x4583b0
mov eax, dword [esi + 0x58]
mov ecx, dword [esi + 0x18]
sub eax, ecx
cmp eax, 4
jbe 0x4583b0
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
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 0x45841a
mov eax, dword [esi + 0x94]
mov ecx, dword [esi + 0x58]
sub eax, ecx
cmp eax, 4
jbe 0x45841a
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
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 0x4583f0
cmp eax, 0xf
jge 0x45841a
nop dword [eax + eax]
sub dword [esi + eax*4 + 0x58], ecx
inc eax
cmp eax, 0xf
jl 0x458410
test byte [esi + 0x10], 4
je 0x45845c
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
sub eax, ecx
cmp eax, 4
jbe 0x45845c
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
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 0x458492
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
sub eax, ecx
cmp eax, 4
jbe 0x458492
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
mov dword [edi + 0x14], eax
mov dword [esi + 0x9c], 0
test byte [esi + 0x10], 0x20
je 0x4584c8
mov eax, dword [esi + 0xa4]
mov ecx, dword [esi + 0xa0]
sub eax, ecx
cmp eax, 4
jbe 0x4584c8
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
mov dword [edi + 0x18], eax
mov dword [esi + 0xa0], 0
test byte [edi + 0x5c], 0x10
jne 0x4584d4
cmp dword [edi + 0x50], 1
jne 0x4584f7
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0xa4]
sub eax, ecx
cmp eax, 4
jbe 0x4584f7
push ebx
push eax
lea eax, [ecx + 0xa8]
mov ecx, edi
push eax
call fcn.00458560
mov dword [edi + 0x1c], eax
mov ecx, dword [esi + 0x14]
mov esi, dword [edi + 0x44]
add ecx, 0xa8
sub esi, ecx
je 0x45854a
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 0x45854a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x45854a
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