Function at 0x140023170
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x50
xor r12d, r12d
mov rdi, rcx
lea rcx, [rdx + 0x378]
mov rbp, rdx
mov eax, r12d
test rcx, rcx
je 0x1400231a7
mov r8, rcx
mov rax, rcx
and r8d, 0xf
je 0x1400231a7
sub rax, r8
add rax, 0x10
or r15d, 0xffffffff
cmp dword [0x140054920], 2
lea rsi, [rax + 0x10]
jne 0x1400233fc
mov qword [rsp + 0x80], rbx
mov rbx, qword [0x140054918]
cmp rbx, 1
jne 0x14002320b
xor eax, eax
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], r12d
mov qword [rsp + 0x24], rax
mov qword [rsp + 0x2c], rax
mov qword [rsp + 0x34], rax
mov qword [rsp + 0x3c], rax
mov qword [rsp + 0x44], rax
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x24]
mov qword [0x140054918], rbx
test rbx, rbx
je 0x1400233f7
xor edx, edx
mov rax, rsi
xor ecx, ecx
div rbx
lea r9d, [rcx + 1]
mov r8d, 0x1000
lea rsi, [rax + 1]
mov qword [rsp + 0x90], r14
imul rsi, rbx
lea rdx, [rsi + rbx*2]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x1400232af
lea rcx, [rax + rbx]
lea r9, [rsp + 0x88]
mov r8d, 4
mov rdx, rsi
mov dword [rsp + 0x88], r12d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x14002327d
mov r15d, 2
mov qword [rdi + 8], r14
jmp 0x1400232c8
cmp byte [0x140057db7], r12b
jne 0x140023292
mov byte [0x140057db7], 1
call fcn.140022570
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x1400232c4
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x1400232c4
cmp byte [0x140057db7], r12b
jne 0x1400232c4
mov byte [0x140057db7], 1
call fcn.140022570
mov qword [rdi + 8], r12
mov rax, qword [rdi + 8]
test rax, rax
je 0x1400233e7
sub rbx, rbp
lea rdx, [rbx - 0x180]
add rdx, rsi
add rdx, rax
mov rcx, rdx
and ecx, 0xf
je 0x1400232f0
sub rdx, rcx
lea r8, [rdx - 0x1f8]
mov qword [rdi + 8], r8
cmp r8, rax
jb 0x1400233dc
mov byte [r8], 0xaa
mov rax, qword [rdi + 8]
add rcx, 0x180
mov qword [rax + 0x70], 0x180
mov rax, qword [rdi + 8]
mov qword [rax + 0x60], rcx
mov rax, qword [rdi + 8]
mov ecx, dword [0x1400575f8]
mov qword [rax + 0x48], rdx
mov rax, qword [rdi + 8]
inc ecx
mov dword [rax + 0x18], ecx
mov rax, qword [rdi + 8]
mov dword [0x1400575f8], ecx
mov qword [rax + 0x20], rbp
mov rax, qword [rdi + 8]
lea rcx, [rdx + rbp]
mov byte [rax + 0x40], r12b
mov rax, qword [rdi + 8]
mov edx, 0xd0
mov byte [rax + 0x5c], r12b
mov rax, qword [rdi + 8]
mov byte [rax + 0x5d], r12b
mov rax, qword [rdi + 8]
mov dword [rax + 0x58], r15d
mov rax, qword [rdi + 8]
mov byte [rax + 0x5c], r12b
mov rax, qword [rdi + 8]
mov byte [rax + 0x5d], r12b
mov rax, qword [rdi + 8]
mov qword [rax + 0x50], r14
mov rax, qword [rdi + 8]
mov qword [rax + 0x68], rcx
mov rcx, qword [rdi + 8]
mov r8, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x68]
call fcn.140027190
mov r8, qword [rdi + 8]
mov edx, 0xd0
lea rcx, [r8 + 0x78]
mov r8, qword [r8 + 0x70]
call fcn.140027190
mov rax, qword [rdi + 8]
mov rax, qword [rax + 0x48]
mov r14, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, r12
jmp 0x1400233c0
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call fcn.1400229e0
jmp 0x1400233c0
mov rax, r12
jmp 0x1400233c8
mov rax, r12
add rsp, 0x50
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret