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

Disassembly:
push ebp
sub esp, 0x78
lea ebp, [esp - 4]
mov eax, dword [0x4566c8]
xor eax, ebp
mov dword [ebp + 0x78], eax
push 0x58
mov eax, 0x43d7e1
call fcn.004212a4
mov eax, dword [ebp + 0x84]
mov dword [ebp - 0x14], eax
mov esi, 0x40000
xor ebx, ebx
push esi
call fcn.0042159d
mov edi, eax
pop ecx
mov dword [ebp - 0x18], edi
cmp edi, ebx
je 0x4106f5
push ebx
push esi
push edi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x410597
push edi
call fcn.004214c0
pop ecx
add esi, esi
jmp 0x410566
cmp eax, ebx
jl 0x4106ee
push 0x44
lea eax, [ebp]
push ebx
push eax
mov esi, edi
call fcn.00421420
add esp, 0xc
push ebx
lea ecx, [ebp + 0x44]
mov dword [ebp + 0x5c], 7
call fcn.00402e07
lea ecx, [ebp + 0x60]
mov dword [ebp - 4], ebx
call fcn.00419459
push 0x30
lea eax, [ebp - 0x48]
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.00421420
add esp, 0xc
mov dword [ebp], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov eax, dword [esi + 0x20]
mov dword [ebp + 0x18], eax
mov eax, dword [esi + 0x24]
mov dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x28]
mov dword [ebp + 0x20], eax
mov eax, dword [esi + 0x2c]
mov dword [ebp + 0x24], eax
mov eax, dword [esi + 0x30]
mov dword [ebp + 0x28], eax
mov eax, dword [esi + 0x34]
mov dword [ebp + 0x2c], eax
mov eax, dword [esi + 0x44]
mov dword [ebp + 0x30], eax
mov eax, dword [esi + 0x48]
mov dword [ebp + 0x34], eax
mov eax, dword [esi + 0x40]
mov dword [ebp + 0x38], eax
mov eax, dword [esi + 0x4c]
mov dword [ebp + 0x3c], eax
mov eax, dword [esi + 0x50]
mov dword [ebp + 0x40], eax
push dword [esi + 0x44]
lea eax, [ebp - 0x64]
push eax
call fcn.0040da4e
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 2
call fcn.004046a3
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00403f19
mov dword [ebp - 0x10], ebx
cmp dword [esi + 4], ebx
jbe 0x4106d5
lea edi, [esi + 0xc0]
mov eax, dword [edi + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [edi]
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi - 8]
mov dword [ebp - 0x38], eax
mov eax, dword [edi - 4]
mov dword [ebp - 0x34], eax
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 0x18]
push eax
call fcn.00406ead
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 0x60]
call fcn.0041a385
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x40
cmp eax, dword [esi + 4]
jb 0x41066a
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp]
push eax
call fcn.0041c1c7
mov eax, dword [esi]
cmp eax, ebx
je 0x4106f9
add esi, eax
jmp 0x4105e1
push edi
call fcn.004214c0
pop ecx
xor al, al
jmp 0x41070a
push edi
call fcn.004214c0
pop ecx
lea ecx, [ebp]
call fcn.00416af9
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.0042090d
add ebp, 0x7c
leave
ret