Function at 0x4081e6
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [ebp + 8]
or dword [ebp - 0x24], 0xffffffff
push ebx
push esi
xor ebx, ebx
push edi
mov dword [eax], ebx
push dword [0x41fefc]
mov dword [ebp - 0x44], 0xc0000001
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x38], ebx
call fcn.00407197
push dword [0x41fe98]
mov byte [ebp - 5], al
call fcn.00407197
cmp byte [ebp - 5], 0xff
mov byte [ebp - 0x1d], al
je 0x40861b
cmp al, 0xff
je 0x40861b
push 0x5c
push dword [ebp + 0x10]
call fcn.0041521d
mov edi, eax
pop ecx
inc edi
pop ecx
inc edi
je 0x40861b
mov esi, edi
sub esi, dword [ebp + 0x10]
shr esi, 1
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x14c]
push dword [ebp + 0x10]
push eax
call fcn.00414ece
lea eax, [ebp - 0x24c]
push edi
push eax
mov word [ebp + esi*2 - 0x14e], bx
call fcn.004150ff
add esp, 0x14
mov esi, 0x200
push esi
call fcn.0040505d
push esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x18], esi
call fcn.0040505d
mov dword [ebp - 0xc], eax
mov eax, 0x4000
push eax
mov dword [ebp + 0x10], eax
call fcn.0040505d
mov esi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
push eax
push 0x10
call esi
mov edi, 0xc0000004
cmp eax, edi
jne 0x4082f6
push dword [ebp - 0x14]
call fcn.00405081
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
mov dword [ebp + 0x10], eax
call fcn.0040505d
push ebx
mov dword [ebp - 0x14], eax
push dword [ebp + 0x10]
push eax
push 0x10
call esi
jmp 0x4082ce
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x28], ebx
cmp dword [esi], ebx
lea eax, [esi + 4]
mov dword [ebp - 0x40], eax
jbe 0x4085db
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 4], ebx
je 0x40831e
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x408345
cmp dword [ebp - 0x10], ebx
jne 0x408388
push eax
push ebx
push 0x40
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x4085db
jmp 0x408388
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x24]
je 0x40837f
cmp dword [ebp - 0x10], ebx
mov dword [ebp - 0x24], eax
je 0x408360
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x408388
mov dword [ebp - 0x1c], 1
jmp 0x40849b
cmp dword [ebp - 0x1c], ebx
jne 0x40849b
cmp dword [esi], ebx
mov dword [ebp - 0x1c], ebx
jbe 0x40848d
mov eax, dword [ebp - 0x40]
lea esi, [eax + 6]
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi - 6]
jne 0x408461
movzx eax, byte [esi - 2]
movsx ecx, byte [ebp - 5]
cmp eax, ecx
jne 0x408461
cmp dword [ebp - 4], ebx
je 0x4083c9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
push 2
push ebx
lea eax, [ebp - 4]
push ebx
push eax
push 0xffffffffffffffff
movzx eax, word [esi]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x408461
lea eax, [ebp + 0x10]
mov esi, dword [sym.imp.ntdll.dll_ZwQueryObject]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push 1
push dword [ebp - 4]
call esi
cmp eax, edi
jne 0x408427
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
call fcn.00405081
push dword [ebp - 0x18]
call fcn.0040505d
lea ecx, [ebp + 0x10]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp - 0x18]
push eax
push 1
push dword [ebp - 4]
jmp 0x4083f9
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x408461
lea ecx, [ebp - 0x14c]
push ecx
push 0x5c
push dword [eax + 4]
call fcn.0041521d
pop ecx
inc eax
pop ecx
inc eax
push eax
call fcn.00415020
pop ecx
test eax, eax
pop ecx
je 0x40847d
cmp dword [ebp - 4], ebx
je 0x408461
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
inc dword [ebp - 0x1c]
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add esi, 0x10
cmp ecx, dword [eax]
mov dword [ebp - 0x4c], esi
jb 0x40839c
jmp 0x40848d
mov eax, dword [ebp - 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], 1
push 1
pop eax
cmp dword [ebp - 0x48], eax
je 0x4084b2
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
inc dword [ebp - 0x28]
add dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi]
jb 0x40830d
jmp 0x4085b6
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0xc], ebx
cmp dword [eax], ebx
jbe 0x4085b6
mov eax, dword [ebp - 0x40]
lea esi, [eax + 6]
mov eax, dword [ebp - 0x24]
cmp eax, dword [esi - 6]
jne 0x408590
movzx eax, byte [esi - 2]
movsx ecx, byte [ebp - 0x1d]
cmp eax, ecx
jne 0x408590
cmp dword [ebp - 4], ebx
je 0x4084f3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x14]
neg eax
sbb eax, eax
and al, 0xfe
inc eax
inc eax
push eax
push ebx
push dword [ebp + 0x14]
lea eax, [ebp - 4]
push eax
push 0xffffffffffffffff
movzx eax, word [esi]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x408590
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0xc]
push 1
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwQueryObject]
cmp eax, edi
jne 0x408556
mov eax, dword [ebp + 0x10]
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
call fcn.00405081
push dword [ebp - 0x18]
call fcn.0040505d
lea ecx, [ebp + 0x10]
mov dword [ebp - 0xc], eax
push ecx
push dword [ebp - 0x18]
push eax
jmp 0x408524
mov eax, dword [ebp - 0xc]
cmp word [eax], bx
je 0x408590
lea ecx, [ebp - 0x24c]
push ecx
push 0x5c
push dword [eax + 4]
call fcn.0041521d
pop ecx
inc eax
pop ecx
inc eax
push eax
call fcn.00415020
pop ecx
test eax, eax
pop ecx
je 0x4085a6
cmp dword [ebp - 4], ebx
je 0x408590
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
add esi, 0x10
cmp ecx, dword [eax]
jb 0x4084c6
jmp 0x4085b6
mov eax, dword [ebp - 4]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 1
cmp dword [ebp - 0x10], ebx
je 0x4085c4
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x34], ebx
je 0x4085d8
mov eax, dword [ebp - 0x38]
cmp eax, ebx
je 0x4085d8
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], ebx
mov dword [ecx], eax
mov esi, dword [ebp - 0x14]
cmp dword [ebp - 4], ebx
je 0x4085e9
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x30], ebx
je 0x4085f7
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], ebx
je 0x408604
push dword [ebp - 0xc]
call fcn.00405081
cmp dword [ebp - 0x3c], ebx
je 0x408611
push dword [ebp - 0x3c]
call fcn.00405081
cmp esi, ebx
je 0x40861b
push esi
call fcn.00405081
mov eax, dword [ebp - 0x44]
pop edi
pop esi
pop ebx
leave
ret 0x14