Function at 0x1400a47f0
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, 0x128
cmp qword [rcx + 0x80], 0
jne 0x1400a5028
mov r13d, edx
mov r12, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
movaps xmmword [rsp + 0xf0], xmm0
movaps xmmword [rsp + 0xe0], xmm0
lea rcx, [rsp + 0xe0]
call sub.KERNEL32.dll_GetSystemInfo
movzx eax, word [rsp + 0xe0]
mov qword [rsp + 0x68], rax
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x2f], r13b
mov qword [rsp + 0xb8], r12
jb 0x1400a49f8
mov esi, eax
movzx eax, byte [0x140259141]
xor edi, edi
mov edx, 0x50
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a506e
mov r8, rax
mov qword [rsp + 0x48], 5
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
nop dword [rax + rax]
cmp ebp, esi
adc r13d, 0
mov eax, ebp
xor ecx, ecx
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r14d, ecx
mov r15d, edx
mov r12d, eax
cmp rdi, qword [rsp + 0x48]
jne 0x1400a48f9
lea rcx, [rsp + 0x48]
mov rdx, rdi
call fcn.1400a56f0
mov r8, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
shl rdi, 4
mov dword [r8 + rdi], r12d
mov dword [r8 + rdi + 4], ebx
mov dword [r8 + rdi + 8], r14d
mov dword [r8 + rdi + 0xc], r15d
mov rdi, qword [rsp + 0x58]
inc rdi
mov qword [rsp + 0x58], rdi
cmp ebp, esi
jae 0x1400a4929
mov ebp, r13d
cmp r13d, esi
jbe 0x1400a48c0
movzx eax, byte [0x140259141]
mov edx, 0x30
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a506e
mov rsi, rax
mov qword [rsp + 0x30], 0x30
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
cmp rdi, 3
movzx r13d, byte [rsp + 0x2f]
jb 0x1400a4a35
mov rbx, qword [rsp + 0x50]
shl rdi, 4
add rdi, rbx
mov edx, dword [rbx + 0x20]
lea rsi, [rsp + 0x30]
mov rcx, rsi
call fcn.1400a50a0
mov edx, dword [rbx + 0x24]
mov rcx, rsi
call fcn.1400a50a0
mov edx, dword [rbx + 0x28]
mov rcx, rsi
call fcn.1400a50a0
add rbx, 0x2c
xor r14d, r14d
nop dword [rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.1400a50a0
cmp r14, 0x20
je 0x1400a4a05
lea r15, [rbx + r14]
add r15, 4
cmp r15, rdi
je 0x1400a4a05
mov edx, dword [r15]
mov rcx, rsi
call fcn.1400a50a0
mov edx, dword [r15 + 4]
mov rcx, rsi
call fcn.1400a50a0
mov edx, dword [r15 + 8]
mov rcx, rsi
call fcn.1400a50a0
add r14, 0x10
jmp 0x1400a49b0
mov edi, 1
xor r15d, r15d
jmp 0x1400a4a8f
mov rsi, qword [rsp + 0x38]
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400a4a35
xor r8d, r8d
nop word [rax + rax]
cmp byte [rsi + r8], 0
je 0x1400a5065
inc r8
cmp rax, r8
jne 0x1400a4a20
jmp 0x1400a4a37
xor eax, eax
mov r8, rax
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140018090
cmp qword [rsp + 0x70], 0
je 0x1400a4c58
mov edi, 1
xor r15d, r15d
cmp qword [rsp + 0x30], 0
je 0x1400a4a74
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x48], 0
je 0x1400a4a8f
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x140259141]
mov edx, 0xc
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a506e
mov qword [rsp + 0x30], 0xc
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
lea r14, [rsp + 0x30]
mov rcx, r14
mov edx, ebp
call fcn.1400a50a0
mov rcx, r14
mov edx, ebx
call fcn.1400a50a0
mov rcx, r14
mov edx, esi
call fcn.1400a50a0
mov rsi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x1400a4b2c
xor eax, eax
nop word cs:[rax + rax]
cmp byte [rsi + rax], 0
je 0x1400a4b20
inc rax
cmp r8, rax
jne 0x1400a4b10
jmp 0x1400a4b2c
cmp rax, r8
mov r8, rax
ja 0x1400a506e
lea rcx, [rsp + 0x70]
mov rdx, rsi
call fcn.140018090
cmp qword [rsp + 0x70], 0
je 0x1400a4b64
mov rcx, qword [rsp + 0x68]
cmp cx, 0xe
ja 0x1400a4bac
lea rax, [0x140217598]
mov r14, qword [rax + rcx*8]
lea rax, [0x140217610]
mov rbx, qword [rax + rcx*8]
jmp 0x1400a4bb9
mov rbx, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x1400a503c
js 0x1400a506e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov r14, qword [rsp + 0x60]
mov rdx, r14
call fcn.14008b700
mov rbp, rax
test rax, rax
jne 0x1400a5046
jmp 0x1400a506e
lea rbx, [0x1401dc474]
mov r14d, 7
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r14
call fcn.14008b700
test rax, rax
je 0x1400a506e
mov rbp, rax
mov rcx, rax
mov rdx, rbx
mov qword [rsp + 0x60], r14
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
je 0x1400a4c02
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov esi, dword [rsp + 0x100]
test r13b, r13b
mov qword [rsp + 0xb0], rbp
je 0x1400a4c37
lea rcx, [rsp + 0x48]
mov rdx, rsi
call fcn.1400a5160
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa8], rax
mov rbx, qword [rsp + 0x58]
jmp 0x1400a4cb5
test rsi, rsi
je 0x1400a4c96
lea rdx, [rsi*8]
mov ecx, 8
call fcn.14008b700
test rax, rax
jne 0x1400a4c9b
jmp 0x1400a506e
mov rbx, qword [rsp + 0x78]
mov r15, qword [rsp + 0x80]
test r15, r15
je 0x1400a5070
js 0x1400a506e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r15
call fcn.14008b700
mov rdi, rax
test rax, rax
jne 0x1400a5075
jmp 0x1400a506e
mov eax, 8
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rsi
mov rbx, rsi
inc rsi
imul rdx, rsi, 0x70
movzx eax, byte [0x140259141]
xor ecx, ecx
call fcn.14008b700
test rax, rax
je 0x1400a506e
mov rbp, rax
movabs r12, 0x8000000000000000
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], 0
test rbx, rbx
mov rsi, qword [rsp + 0x60]
je 0x1400a4edb
shl rbx, 3
mov r13d, 1
xor r14d, r14d
mov qword [rsp + 0xc0], rdi
jmp 0x1400a4da7
imul rax, r14, 0x70
movups xmm0, xmmword [rsp + 0x110]
mov rcx, qword [rsp + 0x120]
mov qword [rbp + rax + 0x10], rcx
movups xmmword [rbp + rax], xmm0
mov rsi, qword [rsp + 0x60]
mov qword [rbp + rax + 0x18], rsi
mov qword [rbp + rax + 0x20], rbx
mov qword [rbp + rax + 0x28], rsi
mov qword [rbp + rax + 0x30], rdi
mov qword [rbp + rax + 0x38], r12
mov qword [rbp + rax + 0x40], rdi
movabs r12, 0x8000000000000000
mov qword [rbp + rax + 0x48], r12
mov qword [rbp + rax + 0x60], r15
mov r15, rdi
mov dword [rbp + rax + 0x68], 0
mov r14, qword [rsp + 0x40]
inc r14
mov qword [rsp + 0x40], r14
inc r13
mov rbx, qword [rsp + 0x68]
add rbx, 0xfffffffffffffff8
mov rdi, qword [rsp + 0xc0]
je 0x1400a4edb
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0xc8], r13
lea rax, [rsp + 0xc8]
mov qword [rsp + 0xd0], rax
lea rax, [0x140018690]
mov qword [rsp + 0xd8], rax
lea rax, [0x1401dc488]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x90], 0
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x110]
lea rdx, [rsp + 0x70]
call fcn.14000ba20
mov ebx, 1
test rsi, rsi
je 0x1400a4e4f
js 0x1400a506e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, rsi
call fcn.14008b700
mov rbx, rax
test rax, rax
je 0x1400a506e
mov rcx, rbx
mov rdx, qword [rsp + 0xb0]
mov r8, rsi
call sub.msvcrt.dll_memcpy
test r15, r15
je 0x1400a4e90
js 0x1400a506e
movzx eax, byte [0x140259141]
xor ecx, ecx
mov rdx, r15
call fcn.14008b700
mov r12, rax
test rax, rax
jne 0x1400a4e96
jmp 0x1400a506e
mov r12d, 1
mov rcx, r12
mov rdx, rdi
mov rdi, r15
mov r8, r15
call sub.msvcrt.dll_memcpy
mov rax, qword [rsp + 0xa8]
mov r15, qword [rax + r13*8 - 8]
cmp r14, qword [rsp + 0x30]
jne 0x1400a4d20
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1400a5440
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
jmp 0x1400a4d20
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x48], 0
je 0x1400a4f17
mov r8, qword [rsp + 0x50]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
test r15, r15
movzx ebp, byte [rsp + 0x2f]
mov r14, qword [rsp + 0xb8]
je 0x1400a4f3a
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, rdi
call sub.KERNEL32.dll_HeapFree
test rsi, rsi
je 0x1400a4f55
mov rcx, qword [0x1402590e0]
xor edx, edx
mov r8, qword [rsp + 0xb0]
call sub.KERNEL32.dll_HeapFree
lea rsi, [r14 + 0x70]
mov rdi, qword [r14 + 0x80]
test rdi, rdi
je 0x1400a4ff5
mov rbx, qword [r14 + 0x78]
add rbx, 0x50
jmp 0x1400a4f89
add rbx, 0x70
dec rdi
je 0x1400a4ff5
cmp qword [rbx - 0x50], 0
je 0x1400a4fa2
mov r8, qword [rbx - 0x48]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rbx - 8]
cmp rax, r12
je 0x1400a4fc1
test rax, rax
je 0x1400a4fc1
mov r8, qword [rbx]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x38], 0
je 0x1400a4fda
mov r8, qword [rbx - 0x30]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x20], 0
je 0x1400a4f80
mov r8, qword [rbx - 0x18]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x1400a4f80
cmp qword [rsi], 0
je 0x1400a500d
mov r8, qword [r14 + 0x78]
mov rcx, qword [0x1402590e0]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x80]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi], xmm0
mov byte [r14 + 0x88], bpl
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ebp, 1
mov r14, qword [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x1400a4bf1
jmp 0x1400a4c02
cmp r8, rax
jbe 0x1400a4a3a
ud2
mov edi, 1
mov rcx, rdi
mov rdx, rbx
mov r8, r15
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x30], 0
jne 0x1400a4a63
jmp 0x1400a4a74