Function at 0x100018b0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
push ebx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
push esi
mov eax, 0x100552d0
push edi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], 0xffffffff
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10001905
sub eax, edx
jne 0x10001a6f
mov esi, dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
push ebx
push 0x2c
lea eax, [ebp - 0x54]
push eax
push ebx
call esi
test eax, eax
js 0x10001a6f
push 4
lea ecx, [ebp - 0x10]
push ecx
push 0x20
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_ZwSetInformationProcess]
test eax, eax
js 0x10001a6f
mov edx, dword fs:[0x18]
add edx, 0x20
push edx
lea eax, [ebp - 0x28]
push eax
push 0x1f0fff
lea ecx, [ebp - 8]
push ecx
mov dword [ebp - 0x28], 0x18
call dword [sym.imp.ntdll.dll_ZwOpenProcess]
test eax, eax
js 0x10001a6f
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x58
lea ecx, [ebp - 0xb0]
push ecx
push 0x20
push 0xffffffffffffffff
mov dword [ebp - 0xb0], edx
call dword [sym.imp.ntdll.dll_ZwQueryInformationProcess]
test eax, eax
js 0x10001a6f
cmp dword [ebp - 4], 0x58
jne 0x10001a6f
mov eax, 1
cmp dword [ebp - 0xac], eax
jne 0x10001a6f
cmp dword [ebp - 0x9c], eax
jne 0x10001a6f
lea edx, [ebp - 4]
push edx
push ebx
push ebx
push 0xb
call esi
cmp eax, 0xc0000004
jne 0x10001a6f
mov ecx, dword [ebp - 4]
add ecx, 0x1000
mov dword [ebp - 4], ecx
call fcn.1000e7e0
mov edi, eax
cmp edi, ebx
je 0x10001a6f
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
push 0xb
call esi
test eax, eax
js 0x10001a6f
mov esi, dword [ebp - 0x34]
xor edx, edx
mov ecx, dword [ebp + edx*4 - 0x98]
test ecx, ecx
je 0x10001a6f
cmp ecx, esi
jb 0x10001a6f
mov eax, dword [edi + 0xc]
cmp ecx, eax
jb 0x10001a28
mov ebx, dword [edi + 0x10]
add ebx, eax
cmp ecx, ebx
ja 0x10001a28
inc edx
cmp edx, 0x10
jl 0x10001a03
xor eax, eax
cmp dword [edi], eax
jbe 0x10001a6f
lea edx, [edi + 0xc]
mov esi, dword [edx]
cmp ecx, esi
jb 0x10001a40
mov ebx, dword [edx + 4]
add ebx, esi
cmp ecx, ebx
jbe 0x10001a4d
inc eax
add edx, 0x11c
cmp eax, dword [edi]
jb 0x10001a31
jmp 0x10001a6f
imul eax, eax, 0x11c
lea ecx, [eax + edi + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov edx, 0x100552d0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10001a65
mov eax, 0x100552d0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001a77
sub eax, edx
jne 0x10001a9a
mov edx, dword [str.clear]
mov ax, word [0x10046e24]
mov dword [0x100552d0], edx
mov word [0x100552d4], ax
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x10001aa9
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
pop edi
pop esi
mov eax, 0x100552d0
pop ebx
mov esp, ebp
pop ebp
ret