Function at 0x4061c8
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
or dword [ebp - 0x24], 0xffffffff
push ebx
push esi
mov esi, 0x200
push edi
xor ebx, ebx
push esi
mov dword [ebp - 0x38], 0xc0000001
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ebp - 0x20], esi
call fcn.0040505d
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x40621f
push esi
mov dword [ebp - 0x28], esi
call fcn.0040505d
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x406226
push dword [ebp - 0xc]
call fcn.00405081
xor eax, eax
jmp 0x406466
mov eax, 0x4000
push eax
mov dword [ebp - 8], eax
call fcn.0040505d
mov edi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push eax
push 0x10
call edi
mov esi, 0xc0000004
cmp eax, esi
jne 0x40627a
push dword [ebp - 0x1c]
call fcn.00405081
mov eax, dword [ebp - 8]
cmp eax, 0x1000000
ja 0x40621f
add eax, eax
push eax
mov dword [ebp - 8], eax
call fcn.0040505d
push ebx
mov dword [ebp - 0x1c], eax
push dword [ebp - 8]
push eax
push 0x10
call edi
jmp 0x40624b
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x34], ebx
cmp dword [eax], ebx
jbe 0x40642b
mov edi, dword [sym.imp.ntdll.dll_ZwQueryObject]
add eax, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x4062a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x24], 0xffffffff
je 0x4062ba
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp eax, dword [ebp - 0x24]
jne 0x4063f4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
cmp eax, dword [ebp - 0x2c]
je 0x4062f8
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
je 0x4062d9
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x2c]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x14], eax
jne 0x406301
mov dword [ebp - 0x30], 1
jmp 0x4063f4
cmp dword [ebp - 0x30], ebx
jne 0x4063f4
mov eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and al, 0xfe
inc eax
inc eax
push eax
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push 0xffffffffffffffff
movzx eax, word [eax + 2]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4063f4
cmp dword [ebp - 0x24], 0xffffffff
jne 0x406392
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0xc]
push 2
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x40636e
mov eax, dword [ebp - 8]
push dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
call fcn.00405081
push dword [ebp - 0x20]
call fcn.0040505d
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp - 0x20]
push eax
jmp 0x406340
mov eax, dword [ebp + 0x14]
push dword [eax*4 + 0x41fe88]
mov eax, dword [ebp - 0xc]
push dword [eax + 4]
call fcn.00415020
pop ecx
test eax, eax
pop ecx
jne 0x4063f4
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x18]
push 1
push dword [ebp - 4]
call edi
cmp eax, esi
jne 0x4063ca
mov eax, dword [ebp - 8]
push dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
call fcn.00405081
push dword [ebp - 0x28]
call fcn.0040505d
lea ecx, [ebp - 8]
mov dword [ebp - 0x18], eax
push ecx
push dword [ebp - 0x28]
push eax
jmp 0x40639c
mov eax, dword [ebp - 0x18]
cmp word [eax], bx
je 0x4063f4
push dword [ebp + 0x10]
push dword [eax + 4]
call fcn.00415020
pop ecx
test eax, eax
pop ecx
je 0x40640b
cmp dword [ebp - 4], ebx
je 0x4063f4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
add dword [ebp - 0x10], 0x10
cmp ecx, dword [eax]
jb 0x406294
jmp 0x40640e
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x14], ebx
je 0x40641c
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], ebx
jne 0x40642b
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
jmp 0x40643c
cmp dword [ebp - 4], ebx
je 0x40643c
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x406449
push dword [ebp - 0x18]
call fcn.00405081
cmp dword [ebp - 0xc], ebx
je 0x406456
push dword [ebp - 0xc]
call fcn.00405081
cmp dword [ebp - 0x1c], ebx
je 0x406463
push dword [ebp - 0x1c]
call fcn.00405081
mov eax, dword [ebp - 0x38]
pop edi
pop esi
pop ebx
leave
ret 0x10