Function at 0x45b930
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebp, dword [esp + 0x30]
mov dword [esp + 4], 0x18
push 0x18
call sym._malloc
add esp, 4
mov esi, eax
lea eax, [esp + 4]
push eax
push 0x18
push esi
push 0x12
call sym._NtQuerySystemInformation_16
cmp eax, 0xc0000004
jne 0x45b982
push dword [esp + 4]
push esi
call sym._realloc
add esp, 8
mov esi, eax
test eax, eax
jne 0x45b98a
mov ebx, str.realloc_pstart__size__failed
jmp 0x45bbc7
test eax, eax
js 0x45bbb5
mov ecx, dword [0x5076e4]
mov eax, ecx
mul dword [esi + 8]
mov dword [esp + 0x10], edx
mov dword [esp], eax
mov eax, ecx
mul dword [esi + 4]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
push esi
call sym._free
add esp, 4
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x45bc85
lea edi, [ecx + 0x28]
mov esi, dword [ecx + 0x28]
cmp dword [ecx + 0x2c], esi
je 0x45bc8e
lea ebx, [esi + 0x18]
mov dword [edi], ebx
test esi, esi
je 0x45bcaf
mov dword [esi + 4], 0
mov dword [esi], 0x60d
mov dword [esi + 8], 0x4f6398
mov ebx, dword [edi]
cmp dword [ecx + 0x2c], ebx
je 0x45bcba
lea eax, [ebx + 0x18]
mov dword [edi], eax
test ebx, ebx
je 0x45bcd4
mov dword [ebx + 4], 0
mov dword [ebx], 7
test ebp, ebp
je 0x45bc7d
test esi, esi
je 0x45bc7d
mov ecx, dword [ebp]
mov eax, ecx
and eax, 7
cmp eax, 7
jne 0x45bc7d
test ebx, ebx
je 0x45bc7d
mov eax, dword [esi]
and eax, 7
cmp eax, 5
jne 0x45bc7d
mov eax, dword [ebp + 4]
shld eax, ecx, 0x18
mov ecx, esi
je 0x45ba61
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x10]
mov dword [edx + 0x10], esi
mov dword [ebx + 0x10], ecx
mov dword [esi + 0x10], ebx
inc eax
movzx ecx, byte [ebp]
mov edx, eax
shr edx, 0x18
shl eax, 8
or eax, ecx
mov dword [ebp + 8], esi
mov dword [ebp + 4], edx
mov dword [ebp], eax
cmp dword [esp + 0x2c], 0
je 0x45bc7d
mov edx, dword [ebx]
mov eax, edx
not eax
test al, 7
jne 0x45bb2c
mov eax, dword [esp + 0x2c]
lea esi, [eax + 0x28]
mov ecx, dword [eax + 0x28]
mov eax, dword [eax + 0x2c]
sub eax, ecx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 1
jbe 0x45bcfe
mov eax, dword [ebx + 4]
lea edi, [ecx + 0x30]
mov dword [esi], edi
test ecx, ecx
je 0x45bb2c
shld eax, edx, 0x18
lea edx, [ecx + 0x18]
mov dword [ecx + 4], 0
mov dword [ecx], 0x50d
mov dword [ecx + 8], 0x4f639f
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 4
mov esi, dword [esp + 8]
mov dword [ecx + 0x20], esi
mov esi, dword [esp + 0xc]
mov dword [ecx + 0x24], esi
mov esi, ecx
test eax, eax
je 0x45bb0e
mov esi, dword [ebx + 8]
mov edi, dword [esi + 0x10]
mov esi, dword [edi + 0x10]
mov dword [edi + 0x10], ecx
mov dword [ecx + 0x28], esi
mov dword [ecx + 0x10], edx
mov dword [ebx + 8], ecx
inc eax
movzx ecx, byte [ebx]
mov edx, eax
shr edx, 0x18
shl eax, 8
or eax, ecx
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov edx, eax
not edx
test dl, 7
mov ecx, dword [esp + 0x2c]
jne 0x45bc7d
lea edi, [ecx + 0x28]
mov esi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 1
jbe 0x45bd1e
lea eax, [esi + 0x30]
mov dword [edi], eax
test esi, esi
je 0x45bc7d
mov edi, dword [ebx + 1]
lea edx, [esi + 0x18]
mov dword [esi + 4], 0
mov dword [esi], 0x40d
mov dword [esi + 8], 0x4f63a5
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 4
mov eax, dword [esp + 0x10]
mov dword [esi + 0x24], eax
mov eax, dword [esp]
mov dword [esi + 0x20], eax
test edi, edi
je 0x45bd3c
mov eax, dword [ebx + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x10], esi
mov ebp, ebx
jmp 0x45bc5f
test esi, esi
je 0x45bbc2
push esi
call sym._free
add esp, 4
mov ebx, str.NtQuerySystemInformation_SystemPagefileInformation__size__failed
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x45bc7d
test ebp, ebp
je 0x45bc7d
mov eax, dword [ebp]
not eax
test al, 7
jne 0x45bc7d
lea edi, [ecx + 0x28]
mov esi, dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
sub eax, esi
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, 1
jbe 0x45bcdb
lea eax, [esi + 0x30]
mov dword [edi], eax
test esi, esi
je 0x45bc7d
mov edi, dword [ebp + 1]
lea eax, [esi + 0x18]
mov dword [esp], eax
mov dword [esi + 4], 0
mov dword [esi], 0x50d
mov dword [esi + 8], 0x4f6392
push ebx
call sym._strlen
add esp, 4
mov ecx, eax
shr ecx, 0x18
shl eax, 8
or eax, 5
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
test edi, edi
je 0x45bcf5
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ecx + 0x10]
mov dword [ecx + 0x10], esi
mov edx, dword [esp]
mov dword [esi + 0x28], eax
mov dword [esi + 0x10], edx
mov dword [ebp + 8], esi
inc edi
movzx eax, byte [ebp]
mov ecx, edi
shr ecx, 0x18
shl edi, 8
or edi, eax
mov dword [ebp + 4], ecx
mov dword [ebp], edi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
xor ebx, ebx
jmp 0x45ba13
lea eax, [ecx + 4]
push 1
push eax
push edi
call dbg.unsafe_yyjson_val_pool_grow
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov ebx, dword [ecx + 0x28]
test al, al
je 0x45bcaf
mov esi, ebx
jmp 0x45b9cd
xor esi, esi
cmp dword [ecx + 0x2c], ebx
jne 0x45b9f9
lea eax, [ecx + 4]
push 1
push eax
push edi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x45bcd4
mov ebx, dword [edi]
jmp 0x45b9f9
xor ebx, ebx
jmp 0x45ba13
add ecx, 4
push 2
push ecx
push edi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x45bc7d
mov esi, dword [edi]
jmp 0x45bc05
xor edi, edi
mov eax, esi
jmp 0x45bc5c
mov eax, dword [esp + 0x2c]
add eax, 4
push 2
push eax
push esi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x45bd45
mov ecx, dword [esi]
mov edx, dword [ebx]
jmp 0x45bab9
add ecx, 4
push 2
push ecx
push edi
call dbg.unsafe_yyjson_val_pool_grow
add esp, 0xc
test al, al
je 0x45bc7d
mov esi, dword [edi]
jmp 0x45bb58
xor edi, edi
mov eax, esi
jmp 0x45bbae
mov edx, dword [ebx]
jmp 0x45bb2c