Function at 0x14001ae30
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 0x14001ae68
mov r8, rcx
mov rax, rcx
and r8d, 0xf
je 0x14001ae68
sub rax, r8
add rax, 0x10
or r13d, 0xffffffff
cmp dword [0x1400437c0], 2
lea rsi, [rax + 0x10]
jne 0x14001b0ad
mov qword [rsp + 0x80], rbx
mov rbx, qword [0x140044a28]
cmp rbx, 1
jne 0x14001aebd
lea r8d, [r13 + 0x2d]
lea rcx, [rsp + 0x24]
xor edx, edx
mov dword [rsp + 0x20], r14d
call fcn.14001d640
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x24]
mov qword [0x140044a28], rbx
test rbx, rbx
je 0x14001b0a8
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 0x14001af61
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 0x14001af2f
mov r13d, 2
mov qword [rdi + 8], rbp
jmp 0x14001af7a
cmp byte [0x14004656b], r14b
jne 0x14001af44
mov byte [0x14004656b], 1
call fcn.14001a2a0
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
test eax, eax
jne 0x14001af76
call qword [sym.imp.KERNEL32.dll_DebugBreak]
jmp 0x14001af76
cmp byte [0x14004656b], r14b
jne 0x14001af76
mov byte [0x14004656b], 1
call fcn.14001a2a0
mov qword [rdi + 8], r14
mov rax, qword [rdi + 8]
test rax, rax
je 0x14001b098
sub rbx, r12
add rbx, rsi
lea rdx, [rax + rbx - 0x180]
mov rcx, rdx
and ecx, 0xf
je 0x14001afa0
sub rdx, rcx
lea r8, [rdx - 0x1f8]
mov qword [rdi + 8], r8
cmp r8, rax
jb 0x14001b08d
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 [0x140045d34]
mov qword [rax + 0x48], rdx
mov rax, qword [rdi + 8]
inc ecx
mov dword [rax + 0x18], ecx
mov rax, qword [rdi + 8]
mov dword [0x140045d34], 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.14001d640
mov r8, qword [rdi + 8]
mov edx, 0xd0
lea rcx, [r8 + 0x78]
mov r8, qword [r8 + 0x70]
call fcn.14001d640
mov r11, qword [rdi + 8]
mov rax, qword [r11 + 0x48]
mov rbp, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_DebugBreak]
mov rax, r14
jmp 0x14001b070
xor r8d, r8d
mov rdx, r12
mov rcx, rdi
call fcn.14001a630
jmp 0x14001b070
mov rax, r14
jmp 0x14001b078
mov rax, r14
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret