Function at 0x46f36b
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46f399
mov ecx, dword [ebp + 0x10]
mov edx, 0x4939e0
mov dword [esp], eax
test ecx, ecx
mov dword [esp + 8], ecx
jne 0x46f3ac
jmp 0x46f6a9
mov edx, 0x4939c8
mov dword [esp + 8], 0
push 4
pop eax
mov dword [esp], eax
mov dword [esp + 4], edx
lea ecx, [esp + 0x30]
mov edx, 0x80000
mov edi, 0x80000
mov esi, ecx
call fcn.0046d885
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
and dword [esp + 0x1c], 0
push edi
push esi
call fcn.00472a83
pop eax
pop ecx
lea eax, [esp + 0x1c]
push eax
push edi
push dword [esp + 0x3c]
push 5
call ebx
lea ecx, [esp + 0x60]
mov edx, eax
call fcn.0046e357
test byte [esp + 0x60], 1
je 0x46f43d
mov eax, dword [esp + 0x64]
cmp eax, 0xd0000004
jne 0x46f68b
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x68]
add edi, edi
mov dword [esp + 0x148], 0xd0000004
lea ecx, [edx + 0x2800]
test edx, edx
mov dword [esp + 0x14c], eax
cmovne edi, ecx
lea ecx, [esp + 0x148]
call fcn.0043c3e5
jmp 0x46f3cb
and dword [esp + 0xc], 0
mov dword [esp + 0x38], edi
push 4
pop edx
mov ecx, 0x1f4
push 4
call fcn.004083dc
pop ecx
lea ecx, [esp + 0x10]
xor edi, edi
mov dword [ecx], eax
mov dword [ecx + 4], edx
and dword [ecx + 8], 0
mov ecx, dword [esp + 4]
mov esi, dword [ecx + 0x14]
mov dword [esp + 0x2c], esi
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + edi]
mov dword [esp + 4], eax
push dword [esp + 8]
push dword [esp + 4]
push dword [ebx + edi + 0x44]
push 1
call esi
add esp, 0x10
test al, al
je 0x46f4b9
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x10]
jne 0x46f4a7
lea eax, [esp + 0x10]
push eax
call fcn.0045459a
pop eax
mov eax, dword [esp + 0x14]
add ebx, edi
mov dword [eax + esi*4], ebx
inc esi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 4]
add edi, eax
test eax, eax
jne 0x46f470
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
xor esi, esi
mov edi, 0
cmp byte [ebx], 1
lea eax, [ecx + 0x20]
mov dword [esp], eax
mov dword [esp + 0x3c], eax
mov eax, 0
jne 0x46f4f5
xor edx, edx
xor edi, edi
mov ebx, ecx
call fcn.00471069
mov eax, dword [ebx + 8]
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edi
call fcn.0042d190
mov dword [esp + 0x148], eax
mov dword [esp + 0x14c], edx
push 0x19db1de
push 0xd53e8000
lea eax, [esp + 0x150]
push eax
lea eax, [esp + 0x6c]
push eax
call fcn.0042d1c0
add esp, 0x10
test byte [esp + 0x60], 1
mov ecx, 0
jne 0x46f543
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edi, dword [esp + 0x18]
movsd xmm0, qword [esp + 0x10]
lea eax, [esp + 0x48]
lea edx, [esp + 0x64]
mov dword [eax], esi
lea esi, [esp + 0xc]
mov dword [eax + 4], ecx
mov dword [edx + 4], edi
movsd qword [edx - 4], xmm0
mov dword [edx + 8], esi
lea edi, [esp + 0x3c]
lea esi, [esp + 0x40]
mov dword [edx + 0xc], edi
mov dword [edx + 0x10], ebx
mov dword [edx + 0x14], esi
mov dword [edx + 0x18], eax
lea eax, [esp + 0x60]
lea esi, [esp + 0x54]
push eax
push esi
call fcn.0046dd6a
pop eax
pop ecx
mov ebx, dword [esi + 4]
imul edx, dword [esi + 8], 0xe8
mov eax, dword [esi]
lea ecx, [ebx + edx]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
test edx, edx
je 0x46f662
lea esi, [ebx + 0xe8]
mov dword [esp + 0x20], esi
mov edi, dword [ebx]
cmp edi, 2
je 0x46f662
mov eax, dword [ebx + 0xd4]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
lea eax, [ebx + 4]
push 0xd0
push eax
lea eax, [esp + 0x6c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
movsd xmm0, qword [ebx + 0xd8]
movsd xmm1, qword [ebx + 0xe0]
mov ecx, dword [esp + 8]
lea eax, [esp + 0x64]
movsd qword [eax + 0xd4], xmm0
movsd qword [eax + 0xdc], xmm1
lea eax, [esp + 0x60]
mov dword [esp + 0x60], edi
mov dword [esp + 0x134], ecx
push eax
push ecx
push dword [esp + 8]
lea eax, [esp + 0x154]
push eax
call fcn.0046e99c
add esp, 0x10
cmp dword [esp + 0x148], 2
je 0x46f651
lea ecx, [esp + 0x148]
call fcn.0046d373
mov edx, dword [esp + 4]
mov ebx, esi
add edx, 0xffffff18
jmp 0x46f5ad
lea eax, [esp + 0x1c]
push eax
call fcn.0046e78b
pop eax
cmp dword [ebp + 0xc], 0
jne 0x46f67c
push dword [esp]
call fcn.0046eb97
pop eax
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x30]
call fcn.00403ce8
jmp 0x46f6ab
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x148]
mov dword [ecx], eax
mov dword [ecx + 4], edx
call fcn.0043c3e5
lea ecx, [esp + 0x30]
call fcn.00403ce8
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret