Function at 0x100c295
Capabilities:
Get system information on windows

Disassembly:
push 0xf8
push 0x100c5f0
call fcn.010027c0
mov ebx, ecx
mov dword [ebp - 0x78], ebx
xor esi, esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 4], esi
push esi
push 4
lea eax, [ebp - 0x94]
push eax
push 0x46
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, esi
jl 0x100c57a
cmp dword [ebp - 0x94], esi
je 0x100c57a
push dword [ebp + 8]
push 0x100c5b0
push 0x26
lea eax, [ebp - 0x68]
push eax
call fcn.01004d53
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x100c57a
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x90], 0x18
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x90]
push eax
push 0xe0000
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
cmp eax, esi
jl 0x100c62d
push esi
push 2
push dword [0x1040814]
lea eax, [ebp - 0x108]
push eax
call fcn.01006555
push 2
push 3
push dword [0x1040824]
lea eax, [ebp - 0xfc]
push eax
call fcn.01006555
push esi
mov edi, 0x2000f
push edi
push dword [0x1040820]
lea eax, [ebp - 0xf0]
push eax
call fcn.01006555
push esi
push edi
push dword [ebx + 0x3c]
lea eax, [ebp - 0xe4]
push eax
call fcn.01006555
push 0xb
mov edi, 0x10000000
push edi
push dword [ebx + 0x3c]
lea eax, [ebp - 0xd8]
push eax
call fcn.01006555
push esi
mov ebx, 0xf000f
push ebx
mov eax, dword [ebp - 0x78]
push dword [eax + 0x50]
lea eax, [ebp - 0xcc]
push eax
call fcn.01006555
push 0xb
push edi
push dword [0x1040818]
lea eax, [ebp - 0xc0]
push eax
call fcn.01006555
push 0xb
push edi
push dword [0x1040830]
lea eax, [ebp - 0xb4]
push eax
call fcn.01006555
push esi
push ebx
push dword [0x1040830]
lea eax, [ebp - 0xa8]
push eax
call fcn.01006555
push 9
lea eax, [ebp - 0x108]
push eax
call fcn.01006621
mov dword [ebp - 0x74], eax
cmp eax, esi
je 0x1020a77
push eax
push 4
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
cmp eax, esi
jl 0x100c62d
push 1
push dword [ebp - 0x70]
call fcn.0100c7e0
cmp eax, esi
jl 0x100c62d
push dword [ebp - 0x74]
call fcn.01006577
mov dword [ebp - 0x74], esi
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebp - 0x70], esi
push dword [ebp + 8]
push 0x100c594
push 0x26
lea eax, [ebp - 0x68]
push eax
call fcn.01004d53
add esp, 0x10
mov dword [ebp - 0x6c], eax
cmp eax, esi
jne 0x100c57a
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x90], 0x18
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x84], esi
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], esi
lea eax, [ebp - 0x90]
push eax
push 0x60000
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_NtOpenDirectoryObject]
cmp eax, esi
jl 0x100c62d
push esi
push 2
push dword [0x1040814]
lea eax, [ebp - 0x108]
push eax
call fcn.01006555
push esi
push ebx
push dword [0x1040830]
lea eax, [ebp - 0xfc]
push eax
call fcn.01006555
push esi
push ebx
push dword [0x1040820]
lea eax, [ebp - 0xf0]
push eax
call fcn.01006555
push 0xb
push edi
push dword [0x1040818]
lea eax, [ebp - 0xe4]
push eax
call fcn.01006555
push esi
push 2
mov eax, dword [ebp - 0x78]
push dword [eax + 0x3c]
lea eax, [ebp - 0xd8]
push eax
call fcn.01006555
push 5
lea eax, [ebp - 0x108]
push eax
call fcn.01006621
mov dword [ebp - 0x74], eax
cmp eax, esi
je 0x1020a77
push eax
push 4
push dword [ebp - 0x70]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
cmp eax, esi
jl 0x100c62d
mov dword [ebp - 4], 0xfffffffe
call fcn.0100c611
mov eax, dword [ebp - 0x6c]
call fcn.01002808
ret 4
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
jmp 0x1020a83
mov dword [ebp - 0x6c], 0xe
jmp 0x100c57a
mov dword [ebp - 0x6c], eax
jmp 0x100c57a