Function at 0x3000b0b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x30186eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x3021ae88]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [0x3024453c]
xor ebx, ebx
push ecx
mov ecx, dword [0x30244538]
call fcn.3000b5c0
mov eax, dword [0x30244538]
add esp, 4
mov dword [0x3024453c], eax
call fcn.30012710
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov dword [0x302412f0], eax
call esi
mov edx, 0x30244538
mov ecx, eax
call fcn.30015590
mov ecx, dword [0x3024453c]
mov eax, 0x77975b9
sub ecx, dword [0x30244538]
xor esi, esi
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x14], ecx
je 0x3000b37d
mov ecx, dword [0x30244538]
mov eax, dword [ebp - 0x14]
add ecx, 0x104
mov edx, dword [ecx]
cmp edi, edx
jb 0x3000b167
mov eax, dword [ecx + 4]
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0x14]
jae 0x3000b167
lea ebx, [esi + 1]
inc esi
add ecx, 0x224
cmp esi, eax
jb 0x3000b152
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x3000b37d
test edi, edi
je 0x3000b37d
cmp dword [0x302728a4], 0
jne 0x3000b1c3
push 0x302728a0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [0x302728a4], 0
jne 0x3000b1c3
push str.GetAllocationBase:_Failed_to_obtain_system_page_size._n
call fcn.30009b20
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x3000b37d
mov esi, dword [ebp - 0x30]
test esi, esi
je 0x3000b37d
push 0x50
call fcn.3015e35d
push esi
mov ecx, eax
call fcn.30012920
mov ebx, eax
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x3000b36b
call fcn.30003f40
cmp eax, 1
jne 0x3000b36b
push ecx
mov ecx, ebx
call fcn.30012ba0
test al, al
je 0x3000b36b
mov eax, dword [0x30244590]
mov dword [0x3021b8e0], 0xffffffff
mov dword [0x302386bc], 0
mov esi, dword [eax]
cmp esi, eax
je 0x3000b25b
lea esp, [esp]
push 0x118
push dword [esi + 0xc]
call fcn.3015e131
mov esi, dword [esi]
add esp, 8
mov eax, dword [0x30244590]
cmp esi, eax
jne 0x3000b240
mov dword [ebp - 4], 0
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [0x30244590]
mov dword [eax + 4], eax
mov edx, dword [0x30244590]
mov dword [0x30244594], 0
cmp ecx, edx
je 0x3000b29b
mov esi, dword [ecx]
push 0x10
push ecx
call fcn.3015e131
mov edx, dword [0x30244590]
add esp, 8
mov ecx, esi
cmp esi, edx
jne 0x3000b282
mov eax, dword [0x302445a0]
sub eax, dword [0x30244598]
sar eax, 2
cmp eax, 0x10
jae 0x3000b2c0
push 0x10
mov ecx, 0x30244598
call fcn.3000d190
mov edx, dword [0x30244590]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push 0x10
mov ecx, 0x30244598
call fcn.3000cf60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [0x302386c0]
mov dword [0x302445a4], 7
mov dword [0x302445a8], 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x3000b32c
mov dword [ebp - 4], 1
mov ecx, eax
mov esi, dword [eax]
push dword [esi + 4]
call fcn.3000ce60
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
mov dword [eax + 4], esi
mov eax, dword [ecx]
mov dword [eax], esi
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + 8], esi
mov dword [ecx + 4], 0
imul ecx, dword [ebp - 0x14], 0x224
mov eax, dword [0x30244538]
add ecx, 0xfffffddc
add eax, ecx
push eax
call fcn.3000be60
xor esi, esi
cmp dword [ebp + 8], esi
jbe 0x3000b36b
lea ecx, [ecx]
lea eax, [ebp - 0xd]
push eax
mov eax, edi
sub eax, esi
push eax
call fcn.3000c090
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x3000b391
inc esi
cmp esi, dword [ebp + 8]
jb 0x3000b350
mov ecx, ebx
call fcn.30012a40
push 0x50
push ebx
call fcn.3015e131
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.30012a40
push 0x50
push ebx
call fcn.3015e131
mov eax, dword [ebp - 0x18]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret