Function at 0x1400a9129
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1a8
cmp qword [rcx + 0x80], 0
jne 0x1400a9783
mov ebx, edx
mov r14, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x170]
movaps xmmword [rcx + 0x20], xmm0
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call sub.KERNEL32.dll_GetSystemInfo
xor esi, esi
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x2f], bl
mov qword [rsp + 0x50], r14
jb 0x1400a9241
mov dword [rsp + 0x30], eax
mov ecx, 4
mov edx, 0x50
call fcn.14003d140
test rax, rax
je 0x1400a97a1
mov r8, rax
lea rax, [rsp + 0x38]
mov qword [rax], r8
mov qword [rax + 8], 5
mov eax, 0x80000000
xor edi, edi
xor r13d, r13d
mov r9d, dword [rsp + 0x30]
mov qword [rsp + 0x48], rdi
test r13b, 1
jne 0x1400a9251
cmp eax, r9d
ja 0x1400a9251
setae r13b
mov r14d, eax
adc r14d, 0
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov ebp, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x40]
jne 0x1400a921d
lea rcx, [rsp + 0x38]
mov rdx, rdi
call fcn.1400a7009
mov r9d, dword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
shl rdi, 4
mov dword [r8 + rdi], r12d
mov dword [r8 + rdi + 4], ebx
mov dword [r8 + rdi + 8], r15d
mov dword [r8 + rdi + 0xc], ebp
mov rdi, qword [rsp + 0x48]
inc rdi
mov eax, r14d
jmp 0x1400a91cd
mov r12d, 1
xor r13d, r13d
xor edi, edi
jmp 0x1400a93bf
xor r12d, r12d
mov ecx, 0x30
xor edx, edx
call fcn.1400dab88
lea rbx, [rsp + 0xc8]
mov qword [rbx], rax
mov qword [rbx + 8], rdx
and qword [rbx + 0x10], 0
mov r15, qword [rsp + 0x38]
shl rdi, 4
add rdi, r15
mov eax, 2
mov r14d, 5
test r12b, 1
je 0x1400a92a0
test r14, r14
je 0x1400a9301
cmp r15, rdi
je 0x1400a9301
dec r14
jmp 0x1400a92c4
cmp r14, rax
jbe 0x1400a9301
mov rcx, rdi
sub rcx, r15
shr rcx, 4
cmp rcx, rax
jbe 0x1400a9301
mov rcx, rax
not rcx
add r14, rcx
shl rax, 4
add r15, rax
lea r13, [r15 + 0x10]
mov edx, dword [r15]
mov rcx, rbx
call fcn.1400a97b2
mov edx, dword [r15 + 4]
mov rcx, rbx
call fcn.1400a97b2
mov edx, dword [r15 + 8]
mov rcx, rbx
call fcn.1400a97b2
mov edx, dword [r15 + 0xc]
mov rcx, rbx
call fcn.1400a97b2
mov r12b, 1
mov r15, r13
xor eax, eax
jmp 0x1400a928b
mov rbx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
xor r8d, r8d
mov r14, qword [rsp + 0x50]
cmp rdx, r8
je 0x1400a932a
cmp byte [rbx + r8], 0
je 0x1400a932d
inc r8
jmp 0x1400a9319
mov r8, rdx
mov rcx, rbx
call fcn.1400a97f7
mov r8, rdx
lea rdi, [rsp + 0x110]
mov rcx, rdi
mov rdx, rax
call fcn.140032810
cmp qword [rdi], 0
je 0x1400a935e
mov r12d, 1
xor r13d, r13d
xor edi, edi
jmp 0x1400a9394
mov rbx, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
mov rcx, rdi
xor edx, edx
call fcn.1400dab88
mov r12, rax
mov r13, rdx
mov rcx, rax
mov rdx, rbx
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rbx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
mov rcx, rbx
call fcn.1400a346d
cmp qword [rsp + 0x40], 0
je 0x1400a93bf
mov r8, qword [rsp + 0x38]
mov rcx, qword [0x140132378]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
lea rax, [r14 + 0x70]
mov qword [rsp + 0x70], rax
xor eax, eax
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov ebp, edx
mov r14d, ecx
mov ecx, 0xc
xor edx, edx
call fcn.1400dab88
lea r15, [rsp + 0xc8]
mov qword [r15], rax
mov qword [r15 + 8], rdx
and qword [r15 + 0x10], 0
mov rcx, r15
mov edx, ebx
call fcn.1400a97b2
mov rcx, r15
mov edx, ebp
call fcn.1400a97b2
mov rcx, r15
mov edx, r14d
call fcn.1400a97b2
mov rcx, qword [r15]
mov rdx, qword [r15 + 0x10]
cmp rdx, rsi
je 0x1400a942f
cmp byte [rcx + rsi], 0
je 0x1400a9432
inc rsi
jmp 0x1400a941f
mov rsi, rdx
mov r8, rsi
call fcn.1400a97f7
mov r8, rdx
lea rsi, [rsp + 0x110]
mov rcx, rsi
mov rdx, rax
call fcn.140032810
cmp qword [rsi], 0
je 0x1400a947d
movsx rax, word [rsp + 0x170]
cmp rax, 0xe
ja 0x1400a948f
lea rcx, [0x140123d10]
mov rsi, qword [rcx + rax*8]
lea rcx, [0x140123d88]
mov r15, qword [rcx + rax*8]
jmp 0x1400a949b
mov r15, qword [rsp + 0x118]
mov rsi, qword [rsp + 0x120]
jmp 0x1400a949b
lea r15, [0x140122759]
mov esi, 7
mov rcx, rsi
xor edx, edx
call fcn.1400dab88
mov rbx, rax
mov r14, rdx
mov rcx, rax
mov rdx, r15
mov r8, rsi
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd0]
call fcn.1400a346d
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], r14
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], r12
mov qword [rsp + 0x98], r13
mov qword [rsp + 0xa0], rdi
mov esi, dword [rsp + 0x190]
cmp byte [rsp + 0x2f], 0
je 0x1400a952a
lea rdi, [rsp + 0xa8]
mov rcx, rdi
mov rdx, rsi
call fcn.1400a981f
mov rax, qword [rdi]
mov qword [rsp + 0x30], rax
mov r13, qword [rdi + 0x10]
jmp 0x1400a9554
mov rcx, rsi
mov dl, 1
call fcn.1400a6ce3
mov qword [rsp + 0x30], rax
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb0], rdx
mov qword [rsp + 0xb8], rsi
mov r13, rsi
inc rsi
imul rdi, rsi, 0x70
mov ecx, 8
mov rdx, rdi
call fcn.14003d140
test rax, rax
je 0x1400a9797
mov rbp, rax
lea rax, [rsp + 0x58]
mov qword [rax], rbp
mov qword [rax + 8], rsi
and qword [rax + 0x10], 0
shl r13, 3
xor r14d, r14d
lea r15, [rsp + 0xc8]
mov ebx, 1
test r13, r13
je 0x1400a96f2
mov qword [rsp + 0xc0], rbx
lea rax, [0x140122770]
mov qword [rsp + 0xc8], rax
mov eax, 1
mov qword [rsp + 0xd0], rax
and qword [rsp + 0xe8], 0
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x38], rcx
lea rcx, [fcn.1400313a0]
mov qword [rsp + 0x40], rcx
lea rsi, [rsp + 0x38]
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x158]
mov rdx, r15
call fcn.1400a33dd
mov rcx, rsi
lea rdx, [rsp + 0x78]
call fcn.140008e30
mov rcx, r15
lea rdx, [rsp + 0x90]
call fcn.140008e30
mov rax, qword [rsp + 0x30]
mov r12, qword [rax + rbx*8 - 8]
mov rax, qword [rsp + 0x168]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x158]
movaps xmmword [rsp + 0x110], xmm0
mov rax, qword [rsp + 0x48]
lea rcx, [rsp + 0x128]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0xd8]
mov qword [rcx + 0x28], rax
movups xmm0, xmmword [rsp + 0xc8]
movups xmmword [rcx + 0x18], xmm0
mov ecx, 9
mov rdi, r15
lea rsi, [rsp + 0x110]
rep movsq qword [rdi], qword [rsi]
cmp r14, qword [rsp + 0x60]
jne 0x1400a96b6
lea rcx, [rsp + 0x58]
mov rdx, r14
call fcn.1400a6f56
mov rbp, qword [rsp + 0x58]
mov r14, qword [rsp + 0x68]
imul rax, r14, 0x70
lea rdi, [rax + rbp]
mov ecx, 9
mov rsi, r15
rep movsq qword [rdi], qword [rsi]
and qword [rbp + rax + 0x48], 0
mov qword [rbp + rax + 0x60], r12
and dword [rbp + rax + 0x68], 0
mov r14, qword [rsp + 0x68]
inc r14
mov qword [rsp + 0x68], r14
inc rbx
add r13, 0xfffffffffffffff8
jmp 0x1400a9599
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x120], rax
movups xmm0, xmmword [rsp + 0x58]
movaps xmmword [rsp + 0x110], xmm0
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
call fcn.140046c04
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x98]
call fcn.1400a346d
mov rcx, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x80]
call fcn.1400a346d
mov rsi, qword [rsp + 0x70]
mov rcx, rsi
call fcn.1400a70b9
mov rcx, rsi
call fcn.14006b074
mov rax, qword [rsp + 0x120]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x110]
movups xmmword [rsi], xmm0
mov al, byte [rsp + 0x2f]
mov rcx, qword [rsp + 0x50]
mov byte [rcx + 0x88], al
add rsp, 0x1a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 8
mov rdx, rdi
jmp 0x1400a97ab
mov ecx, 4
mov edx, 0x50
call fcn.1400077f0
ud2