Function at 0x403930
Capabilities:
Get system information on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ee70
push 0x40a812
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov esi, dword [sym.imp.HAL.dll_KeGetCurrentIrql]
call esi
mov byte [ebp - 0x19], al
mov dword [ebp - 0x48], edi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
call esi
cmp al, 1
jbe 0x4039ad
call esi
movzx eax, al
push eax
push str.EX:_Pageable_code_called_at_IRQL__d_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
push edi
push 0x334
push str..SystemOperator.cpp
push 0x40c8f4
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlAssert]
call ebx
jmp 0x4039b3
mov ebx, dword [sym.imp.ntoskrnl.exe_RtlAssert]
cmp dword [ebp + 0xc], edi
jne 0x4039cb
push 0
push 0x336
push str..SystemOperator.cpp
push str.Parameter___NULL
call ebx
cmp dword [ebp + 8], edi
jne 0x4039e3
push 0
push 0x337
push str..SystemOperator.cpp
push str.FilterExt___NULL
call ebx
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x4039fc
push esi
push 0x338
push str..SystemOperator.cpp
push str.HandleParameter___NULL
call ebx
cmp dword [0x410048], 1
jg 0x403a12
push str.Query_the_Handle_information_counts._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x44]
test eax, eax
je 0x403a96
cmp dword [esi + 0x48], edi
jbe 0x403a96
mov dword [ebp - 4], edi
push 0x504d4554
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor eax, eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x403a96
lea edx, [ebp - 0x20]
push edx
push 0x14
lea eax, [ebp - 0x48]
push eax
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
test esi, esi
jge 0x403c1d
mov eax, dword [ebp - 0x20]
test eax, eax
jbe 0x403c1d
sub eax, 4
mov dword [ebp - 0x20], eax
test al, 0xf
je 0x403ada
push 0
push 0x368
push str..SystemOperator.cpp
push str._uReturnLen___sizeof_SYSTEM_HANDLE_TABLE_ENTRY_INFO____0
call ebx
mov ebx, 1
cmp dword [0x410048], ebx
jg 0x403afb
mov ecx, dword [ebp - 0x20]
shr ecx, 4
push ecx
push str.Current_Query_the_HandleCnts___d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
add dword [ebp - 0x20], 0x3e80
mov dword [ebp - 4], ebx
mov al, byte [ebp - 0x19]
test al, al
jne 0x403b23
push 0x504d4554
mov edx, dword [ebp - 0x20]
push edx
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x403b7e
cmp dword [0x410048], 4
jg 0x403b3d
movzx eax, al
push eax
push str.Failed_to_allocate_the_PagedPool_Buffer__because_the_CurrentIrql___d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov esi, 0xc000000d
jmp 0x403b7b
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x403c1d
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x20]
push eax
push edi
push 0x10
call dword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov esi, eax
test esi, esi
jl 0x403bc8
mov ecx, dword [edi]
push ecx
push str.Current_Handle_Counts____d._n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
mov edx, dword [ebp + 0x10]
push edx
push edi
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004032d0
mov esi, eax
mov dword [ebp - 4], 2
push 0x504d4554
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [ebp - 0x24], 0
jmp 0x403c16
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc