Function at 0x140154240
Capabilities:
Get system information on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x1402922b8]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov r14, r9
mov qword [rsp + 0x48], r9
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov rsi, rdx
mov r12, rcx
mov qword [rsp + 0x90], rcx
mov rcx, qword [rsp + 0x1c0]
mov qword [rsp + 0x78], rcx
lea rax, [rdx + 0x10000]
cmp rax, 0x1ffff
ja 0x1401542cd
test rcx, rcx
je 0x1401542b4
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rcx
mov rcx, r12
call qword [rax + 0x70]
mov rax, qword [r12]
mov r8, rsi
lea rdx, str._016llx__Address_appears_to_be_invalid._r_n
mov rcx, r12
call qword [rax + 0x78]
jmp 0x140154660
mov rax, 0xffffffffffffffff
sub rax, rbx
cmp rsi, rax
cmova rsi, rax
mov qword [rsp + 0x68], rsi
xor eax, eax
mov qword [rsp + 0x38], rax
test rcx, rcx
je 0x1401542f4
call fcn.14004d280
mov qword [rsp + 0x50], rax
mov r13, rsi
and r13, 0xfffffffffffffff0
mov qword [rsp + 0x88], r13
mov r15, qword [0x1402a4ba8]
test r15, r15
jne 0x140154331
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x9c]
mov qword [0x1402a4ba8], r15
mov qword [rsp + 0x60], r15
mov rcx, r13
call fcn.140153570
mov edi, eax
and dil, 1
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], dil
nop dword [rax]
lea rax, [rbx + rsi]
cmp r13, rax
jae 0x140154645
mov rax, rbx
shl rax, 5
cmp qword [rsp + 0x38], rax
jae 0x140154645
xor edx, edx
lea r8d, [rdx + 0x7a]
lea rcx, [rsp + 0xd0]
call sub.VCRUNTIME140.dll_memset
mov r8, r13
lea rdx, str._016llx_
lea rcx, [rsp + 0xd0]
call fcn.14004b900
mov rbx, r13
mov qword [rsp + 0x70], rbx
lea rax, [r13 + 0x10]
cmp rbx, rax
jae 0x14015454e
lea rax, [r15 - 1]
test rbx, rax
jne 0x1401543fa
mov r15, qword [0x1402a4ba8]
test r15, r15
jne 0x1401543e0
lea rcx, [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r15d, dword [rsp + 0x9c]
mov qword [0x1402a4ba8], r15
mov qword [rsp + 0x60], r15
mov rcx, rbx
call fcn.140153570
and al, 1
movzx edi, al
mov dword [rsp + 0x34], edi
mov byte [rsp + 0x31], al
cmp rbx, rsi
jb 0x140154519
mov rax, qword [rsp + 0x58]
add rax, rsi
cmp rbx, rax
jae 0x140154519
cmp rbx, r14
jne 0x14015441e
mov r14b, 0x3c
jmp 0x140154434
lea rax, [r14 + 1]
mov r14d, 0x20
cmp rbx, rax
mov eax, 0x3e
cmove r14d, eax
mov byte [rsp + 0x30], 0
test dil, dil
je 0x1401544e5
mov qword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 1
lea r8, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1401544d7
cmp qword [rsp + 0x40], 1
jne 0x1401544d7
movzx ecx, byte [rsp + 0x30]
lea eax, [rcx - 0x20]
cmp al, 0x5e
setbe dil
mov rsi, rbx
sub rsi, r13
mov r9d, ecx
movsx r8d, r14b
lea rax, [rsp + 0xe2]
add rax, rsi
lea rcx, [rax + rsi*2]
lea rdx, str._c_02x
call fcn.14004b900
mov ecx, 0x2e
movzx eax, byte [rsp + 0x30]
test dil, dil
cmovne ecx, eax
mov byte [rsp + rsi + 0x115], cl
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x48]
jmp 0x140154542
movabs rax, 0x3f3f3f3f3f3f3f3f
mov byte [rsp + 0x30], al
mov rdi, rbx
sub rdi, r13
movsx r8d, r14b
lea rax, [rsp + 0xe2]
add rax, rdi
lea rcx, [rax + rdi*2]
lea rdx, str._c__
call fcn.14004b900
mov byte [rsp + rdi + 0x115], 0x3f
mov r14, qword [rsp + 0x48]
jmp 0x140154542
mov rdi, rbx
sub rdi, r13
lea rax, [rsp + 0xe2]
add rax, rdi
lea rcx, [rax + rdi*2]
lea rdx, str.
call fcn.14004b900
mov byte [rsp + rdi + 0x115], 0x20
inc rbx
mov edi, dword [rsp + 0x34]
jmp 0x14015439c
movzx eax, word [0x1402380f4]
mov word [rsp + 0x112], ax
movzx eax, byte [0x1402380f6]
mov byte [rsp + 0x114], al
mov eax, dword [str.__r_n]
mov dword [rsp + 0x125], eax
movzx eax, byte [0x1402380fc]
mov byte [rsp + 0x129], al
mov rcx, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x38]
test rcx, rcx
je 0x1401545e1
test rbx, rbx
jne 0x1401545ac
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rcx
mov rcx, r12
call qword [rax + 0x70]
jmp 0x1401545e1
xor ebx, ebx
mov qword [rsp + 0x80], rbx
cmp rbx, qword [rsp + 0x50]
jae 0x1401545dc
mov rax, qword [r12]
mov r8d, 1
lea rdx, [0x140193cdc]
mov rcx, r12
call qword [rax + 0xa0]
inc rbx
jmp 0x1401545ae
mov rbx, qword [rsp + 0x38]
mov rax, qword [r12]
xor r8d, r8d
lea rdx, [rsp + 0xd0]
mov rcx, r12
call qword [rax + 0x70]
lea rcx, [r13 + 0x10]
cmp rcx, r13
jae 0x14015460c
cmp rcx, 0x10
jae 0x14015460c
mov eax, 1
jmp 0x14015460e
xor eax, eax
test al, al
je 0x140154628
mov rax, qword [r12]
xor r8d, r8d
lea rdx, [0x14022f83c]
mov rcx, r12
call qword [rax + 0x70]
jmp 0x140154645
mov r13, rcx
mov qword [rsp + 0x88], rcx
inc rbx
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x58]
jmp 0x140154350
jmp 0x140154660
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012fd90
add rsp, 0x160
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret