Function at 0x404200
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x60], 0x1000
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x58], 0
call qword [sym.imp.ntoskrnl.exe_IoGetInitialStack]
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x80]
cmp dword [rax + 0xb0], 0x2580
jb 0x404307
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x68], rax
je 0x404305
mov rax, qword [rsp + 0x68]
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x4042f2
mov rax, qword [rsp + 0x58]
add rax, 0x2af
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
movzx eax, al
test eax, eax
je 0x4042f2
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax]
cmp eax, 0x15
jne 0x4042f2
mov rax, qword [rsp + 0x58]
movzx eax, byte [rax + 2]
cmp eax, 0xac
jne 0x4042f2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x58]
mov qword [rax + 8], rcx
jmp 0x404305
mov rax, qword [rsp + 0x68]
sub rax, 8
mov qword [rsp + 0x68], rax
jmp 0x404279
jmp 0x40431a
xor ecx, ecx
call fcn.00404530
mov rcx, qword [rsp + 0x80]
mov qword [rcx + 8], rax
mov eax, dword [rsp + 0x60]
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x404529
mov eax, dword [rsp + 0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.0040a880
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov ecx, 0x39
call qword [sym.imp.ntoskrnl.exe_ZwQuerySystemInformation]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0
jl 0x4044fc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor eax, eax
cmp eax, 1
je 0x4044fc
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov rcx, qword [rsp + 0x38]
cmp rax, qword [rcx + 0x50]
jne 0x4044d2
mov rax, qword [rsp + 0x38]
add rax, 0x100
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
jne 0x404423
mov dword [rsp + 0x30], 0
jmp 0x4043d3
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x30], eax
jae 0x404423
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x88
mov rdx, qword [rsp + 0x40]
cmp rax, qword [rdx + rcx + 0x30]
jne 0x404421
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x88
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx + rax + 0x60]
mov qword [rcx + 0x10], rax
jmp 0x404423
jmp 0x4043c9
mov rax, qword [rsp + 0x80]
cmp qword [rax + 0x10], 0
je 0x4044d0
mov dword [rsp + 0x30], 0
jmp 0x40444a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 4]
cmp dword [rsp + 0x30], eax
jae 0x4044d0
call qword [sym.imp.ntoskrnl.exe_PsGetCurrentThreadId]
mov ecx, dword [rsp + 0x30]
imul rcx, rcx, 0x88
mov rdx, qword [rsp + 0x40]
cmp rax, qword [rdx + rcx + 0x30]
je 0x4044cb
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x88
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rdx + rax + 0x60]
cmp qword [rcx + 0x10], rax
jne 0x4044cb
mov eax, dword [rsp + 0x30]
imul rax, rax, 0x88
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x20], rcx
lea r9, [0x00403f20]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x30]
call fcn.00409780
jmp 0x404440
jmp 0x4044fc
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0
jne 0x4044e0
jmp 0x4044fc
mov rax, qword [rsp + 0x38]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
jmp 0x404380
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov qword [rsp + 0x50], 0
cmp dword [rsp + 0x4c], 0xc0000004
jne 0x404529
mov eax, dword [rsp + 0x48]
mov dword [rsp + 0x60], eax
jmp 0x40431a
add rsp, 0x78
ret