Function at 0x140019e30
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
xor r14d, r14d
mov rdi, rcx
lea rcx, [rdx + 0x378]
mov r12, rdx
mov eax, r14d
test rcx, rcx
je 0x140019e68
mov r8, rcx
mov rax, rcx
and r8d, 0xf
je 0x140019e68
sub rax, r8
add rax, 0x10
or r13d, 0xffffffff
cmp dword [0x1400427c0], 2
lea rsi, [rax + 0x10]
jne 0x14001a0ad
mov qword [rsp + 0x80], rbx
mov rbx, qword [0x140043a28]
cmp rbx, 1
jne 0x140019ebd
lea r8d, [r13 + 0x2d]
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x20], r14d
call fcn.14001c640
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x24]
mov qword [0x140043a28], rbx
test rbx, rbx
je 0x14001a0a8
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], rbp
imul rsi, rbx
lea rdx, [rsi + rbx*2]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x140019f61
lea rcx, [rbx + rax]
lea r9, [rsp + 0x88]
mov r8d, 4
mov rdx, rsi
mov dword [rsp + 0x88], r14d
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x140019f2f
mov r13d, 2
mov qword [rdi + 8], rbp
jmp 0x140019f7a
cmp byte [0x14004556b], r14b
jne 0x140019f44
mov byte [0x14004556b], 1
call fcn.1400192a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x140019f76
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x140019f76
cmp byte [0x14004556b], r14b
jne 0x140019f76
mov byte [0x14004556b], 1
call fcn.1400192a0
mov qword [rdi + 8], r14
mov rax, qword [rdi + 8]
test rax, rax
je 0x14001a098
sub rbx, r12
add rbx, rsi
lea rdx, [rax + rbx - 0x180]
mov rcx, rdx
and ecx, 0xf
je 0x140019fa0
sub rdx, rcx
lea r8, [rdx - 0x1f8]
mov qword [rdi + 8], r8
cmp r8, rax
jb 0x14001a08d
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 [0x140044d34]
mov qword [rax + 0x48], rdx
mov rax, qword [rdi + 8]
inc ecx
mov dword [rax + 0x18], ecx
mov rax, qword [rdi + 8]
mov dword [0x140044d34], ecx
mov qword [rax + 0x20], r12
mov rax, qword [rdi + 8]
lea rcx, [rdx + r12]
mov byte [rax + 0x40], r14b
mov rax, qword [rdi + 8]
mov edx, 0xd0
mov byte [rax + 0x5c], r14b
mov rax, qword [rdi + 8]
mov byte [rax + 0x5d], r14b
mov rax, qword [rdi + 8]
mov dword [rax + 0x58], r13d
mov rax, qword [rdi + 8]
mov byte [rax + 0x5c], r14b
mov rax, qword [rdi + 8]
mov byte [rax + 0x5d], r14b
mov rax, qword [rdi + 8]
mov qword [rax + 0x50], rbp
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.14001c640
mov r8, qword [rdi + 8]
mov edx, 0xd0
lea rcx, [r8 + 0x78]
mov r8, qword [r8 + 0x70]
call fcn.14001c640
mov r11, qword [rdi + 8]
mov rax, qword [r11 + 0x48]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, r14
jmp 0x14001a070
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call fcn.140019630
jmp 0x14001a070
mov rax, r14
jmp 0x14001a078
mov rax, r14
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret