Function at 0x4057f0
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, 0x210
movzx eax, byte [0x529189]
push 1
push 0x80000
call fcn.00402c90
add esp, 8
test eax, eax
je 0x405c41
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, 0x80000
lea edi, [esp + 0x24]
mov ebx, 0x80000
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0x80000
mov dword [esp + 0x20], 0
mov dword [esp], eax
xor eax, eax
jmp 0x405858
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x24], 0
cmp ecx, ebx
jb 0x4058f9
push edi
push ebx
push esi
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
jns 0x405911
or eax, 0x10000000
push eax
call fcn.0040cfd0
add esp, 4
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0x50], edx
mov dword [esp + 0x48], 1
push eax
call fcn.0040ce30
add esp, 4
cmp eax, 0xd0000004
jne 0x4059fd
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov edx, ebx
add edx, ebx
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x12c], ecx
lea ebx, [eax + 0x2800]
test eax, eax
cmove ebx, edx
test ecx, ecx
je 0x405850
lea eax, [esp + 0x12c]
push eax
call fcn.0040ce40
add esp, 4
jmp 0x405850
push ebx
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0043f580
add esp, 0xc
mov esi, dword [esp + 0x18]
jmp 0x40586a
mov dword [esp + 4], esi
mov esi, dword [ebp + 0xc]
mov eax, 0x519f58
mov dword [esp + 0x20], ebx
test esi, esi
cmovne eax, esi
mov dword [esp + 8], eax
mov eax, dword [esp]
cmove eax, esi
mov dword [esp], eax
movzx eax, byte [0x529189]
push 4
push 0x7d0
call fcn.00402c90
add esp, 8
test eax, eax
je 0x405c52
mov dword [esp + 0xc], eax
test esi, esi
mov eax, fcn.00404fc0
mov ebx, 0x404f90
mov dword [esp + 0x10], 0x1f4
mov dword [esp + 0x14], 0
cmove ebx, eax
xor esi, esi
jmp 0x405997
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
add ecx, esi
mov dword [edx + eax*4], ecx
inc dword [esp + 0x14]
add esi, edi
test edi, edi
je 0x4059d5
mov eax, dword [esp + 4]
mov edi, dword [eax + esi]
push dword [esp]
push dword [esp + 0xc]
push dword [eax + esi + 0x44]
push 0x519f58
call ebx
add esp, 0x10
test al, al
je 0x405991
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x405980
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00406340
add esp, 8
mov eax, dword [esp + 0x14]
jmp 0x405980
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
cmp byte [ebx], 0
mov dword [esp + 0x34], edi
je 0x405a2d
xor esi, esi
lea ecx, [edi + 0x68]
xor edx, edx
push 0
call fcn.00404510
add esp, 4
mov eax, dword [edi + 0xb0]
jmp 0x405a31
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], ecx
je 0x405c25
lea eax, [esp + 0x12c]
push eax
call fcn.0040ce40
jmp 0x405c22
xor eax, eax
xor esi, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], esi
call fcn.0041e430
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], edx
lea eax, [esp + 0x128]
lea ecx, [esp + 0x48]
push 0x19db1de
push 0xd53e8000
push eax
push ecx
call fcn.0041e460
add esp, 0x10
mov eax, dword [esp + 0x48]
or eax, dword [esp + 0x4c]
je 0x405a7b
xor eax, eax
xor ecx, ecx
jmp 0x405a83
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 0xc]
mov esi, dword [esp + 4]
mov dword [esp + 0x128], 8
mov dword [esp + 0x12c], 0
mov dword [esp + 0x44], ecx
mov dword [esp + 0x130], 0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x34]
movsd qword [esp + 0x48], xmm0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.004065f0
add esp, 8
mov ecx, dword [esp + 0x130]
mov ebx, dword [esp + 0x128]
mov eax, dword [esp + 0x12c]
imul edx, ecx, 0xe0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ebx
add edx, ebx
test ecx, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x30], edx
je 0x405c0f
add ebx, 0xe0
jmp 0x405b5a
add esi, 0xe0
add ebx, 0xe0
cmp esi, dword [esp + 8]
mov esi, dword [esp + 4]
je 0x405c07
mov edi, dword [ebx - 0xe0]
cmp edi, 2
je 0x405c02
lea esi, [ebx - 0xe0]
mov eax, dword [esi + 0xc4]
mov dword [esp], eax
lea eax, [esi + 4]
push 0xc0
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0043b9a0
add esp, 0xc
movsd xmm0, qword [esi + 0xc8]
movsd xmm1, qword [esi + 0xd0]
lea eax, [esp + 0x110]
mov ecx, dword [esp]
movsd qword [eax], xmm0
movsd qword [eax + 8], xmm1
movsd xmm0, qword [esi + 0xd8]
movsd qword [eax + 0x10], xmm0
lea eax, [esp + 0x48]
mov dword [esp + 0x48], edi
mov dword [esp + 0x10c], ecx
push eax
push ecx
mov edi, dword [ebp + 8]
push edi
lea eax, [esp + 0x134]
push eax
call fcn.00407740
add esp, 0x10
cmp dword [esp + 0x128], 2
je 0x405b40
lea ecx, [esp + 0x128]
call fcn.00404fd0
jmp 0x405b40
mov edi, dword [ebp + 8]
jmp 0x405c0b
mov ebx, dword [esp + 8]
mov dword [esp + 0x2c], ebx
lea eax, [esp + 0x24]
push eax
call fcn.00407540
add esp, 4
push edi
call fcn.00407b30
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x405c39
push 1
push eax
push esi
call fcn.00402ca0
add esp, 0xc
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x80000
push 1
call fcn.00442780
add esp, 8
ud2
push 0x7d0
push 4
call fcn.00442780
add esp, 8
ud2