Function at 0x1007676
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x97c
push esi
xor esi, esi
push esi
push 0x600
lea eax, [ebp - 0x97c]
push eax
push 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1007964
cmp byte [0x101f9f8], 0
push ebx
push edi
mov dword [ebp - 8], esi
jbe 0x1007881
lea edi, [ebp - 0x97c]
mov esi, dword [ebp - 8]
mov ecx, dword [edi]
mov ebx, dword [edi + 8]
mov edx, dword [edi + 4]
shl esi, 3
sub ebx, ecx
lea eax, [ebp + esi - 0x344]
mov dword [eax], ecx
mov ecx, dword [edi + 0xc]
sbb ecx, edx
mov dword [ebp + esi - 0x240], ecx
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 8]
mov dword [eax + 4], edx
mov edx, dword [edi + 0x14]
adc edx, dword [edi + 0xc]
mov dword [ebp + esi - 0x144], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], ecx
sub ecx, dword [esi + 0x101fd20]
mov dword [ebp - 0x34], eax
sbb eax, dword [esi + 0x101fd24]
mov dword [ebp + esi - 0x140], edx
mov edx, dword [ebp + esi - 0x240]
mov dword [ebp - 0x2c], eax
mov eax, ebx
sub eax, dword [esi + 0x101ff20]
mov dword [ebp + esi - 0x244], ebx
mov ebx, dword [ebp + esi - 0x144]
mov dword [ebp - 0x28], eax
mov eax, edx
sbb eax, dword [esi + 0x101ff24]
sub ebx, dword [esi + 0x101fe20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + esi - 0x140]
sbb eax, dword [esi + 0x101fe24]
add dword [ebp - 0x18], ecx
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x2c]
adc dword [ebp - 0x14], ecx
add dword [ebp - 0x10], ebx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
adc dword [ebp - 0xc], eax
add dword [ebp - 0x20], ecx
mov ecx, dword [ebp - 0x24]
adc dword [ebp - 0x1c], ecx
mov ecx, ebx
or ecx, eax
je 0x10077af
push 0
push 0x64
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call fcn.01013ea0
push dword [ebp - 0x3c]
push ebx
push edx
push eax
call fcn.01013df0
mov cl, 0x64
sub cl, al
mov byte [ebp - 1], cl
jmp 0x10077b3
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax*4 + 0x1020020]
push 0x7cf
push eax
mov dword [ebp - 0x44], eax
inc eax
push eax
call fcn.01013ee0
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0x44]
mov byte [ecx], al
mov eax, ebx
add esp, 0xc
or eax, dword [ebp - 0x3c]
je 0x10077fe
push 0
push 0x64
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.01013ea0
push dword [ebp - 0x3c]
push ebx
push edx
push eax
call fcn.01013df0
mov byte [ebp - 1], al
jmp 0x1007802
mov byte [ebp - 1], 0
mov eax, dword [ebp - 8]
mov ebx, dword [eax*4 + 0x10200a0]
push 0x7cf
lea eax, [ebx + 1]
push ebx
push eax
call fcn.01013ee0
mov al, byte [ebp - 1]
mov byte [ebx], al
mov eax, dword [ebp + esi - 0x144]
mov dword [esi + 0x101fe20], eax
mov eax, dword [ebp + esi - 0x140]
mov dword [esi + 0x101fe24], eax
mov eax, dword [ebp - 0x38]
mov dword [esi + 0x101fd20], eax
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x101fd24], eax
mov eax, dword [ebp + esi - 0x244]
mov dword [esi + 0x101ff20], eax
mov eax, dword [ebp + esi - 0x240]
mov dword [esi + 0x101ff24], eax
movzx eax, byte [0x101f9f8]
add esp, 0xc
inc dword [ebp - 8]
add edi, 0x30
cmp dword [ebp - 8], eax
jl 0x10076cb
xor esi, esi
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov eax, edi
or eax, ebx
je 0x10078b0
push esi
push 0x64
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.01013ea0
push ebx
push edi
push edx
push eax
call fcn.01013df0
mov cl, 0x64
sub cl, al
mov byte [0x1020124], cl
jmp 0x10078b7
mov byte [0x1020124], 0
cmp dword [ebp + 8], esi
je 0x1007962
mov eax, edi
or eax, ebx
je 0x10078e4
push esi
push 0x64
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.01013ea0
push ebx
push edi
push edx
push eax
call fcn.01013df0
mov byte [0x1020125], al
jmp 0x10078eb
mov byte [0x1020125], 0
push esi
push 0x138
lea eax, [ebp - 0x37c]
push eax
push 2
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jl 0x1007962
mov eax, dword [0x101fd18]
shr eax, 0xa
imul eax, dword [ebp - 0x34c]
mov dword [0x1020128], eax
mov eax, dword [0x1020120]
push 0x7cf
push eax
inc eax
push eax
mov dword [0x102012c], esi
call fcn.01013ee0
add esp, 0xc
push esi
push 0x64
push dword [0x102012c]
push dword [0x1020128]
call fcn.01013ea0
push dword [0x1020134]
push dword [0x1020130]
push edx
push eax
call fcn.01013df0
mov ecx, dword [0x1020120]
mov byte [ecx], al
pop edi
pop ebx
pop esi
leave
ret 4