Function at 0x1800fa3e0
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, 0x158
cmp qword [rcx + 0x80], 0
jne 0x1800fae29
mov r12d, edx
mov r13, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x140], xmm0
movaps xmmword [rsp + 0x130], xmm0
movaps xmmword [rsp + 0x120], xmm0
lea rcx, [rsp + 0x120]
call sub.kernel32.dll_GetSystemInfo
movsx r15, word [rsp + 0x120]
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x27], r12b
mov qword [rsp + 0x100], r13
jb 0x1800fa62b
mov edi, eax
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa48d
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800faeaa
mov rcx, rax
mov qword [0x1801fb9b8], rax
xor esi, esi
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800faeaa
mov r8, rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
cmp ebp, edi
adc r13d, 0
xor ecx, ecx
mov eax, ebp
mov rbx, rbx
cpuid
xchg rbx, rbx
mov r15d, ecx
mov r14d, edx
mov r12d, eax
cmp rsi, qword [rsp + 0x30]
jne 0x1800fa509
lea rcx, [rsp + 0x28]
mov rdx, rsi
call fcn.1800ff4a0
mov r8, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x38]
mov rax, rsi
shl rax, 4
inc rsi
mov dword [r8 + rax], r12d
mov dword [r8 + rax + 4], ebx
mov dword [r8 + rax + 8], r15d
mov dword [r8 + rax + 0xc], r14d
mov qword [rsp + 0x38], rsi
cmp ebp, edi
jae 0x1800fa537
mov ebp, r13d
cmp r13d, edi
jbe 0x1800fa4d0
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa563
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800faebb
mov rcx, rax
mov qword [0x1801fb9b8], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800faebb
mov rbx, rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], 0
mov r15, qword [rsp + 0x28]
cmp rsi, 3
jb 0x1800fa675
shl rsi, 4
add rsi, r15
mov edx, dword [r15 + 0x20]
lea rdi, [rsp + 0x50]
mov rcx, rdi
call fcn.1800ff3e0
mov edx, dword [r15 + 0x24]
mov rcx, rdi
call fcn.1800ff3e0
mov edx, dword [r15 + 0x28]
mov rcx, rdi
call fcn.1800ff3e0
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word [rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rdi
call fcn.1800ff3e0
cmp r14, 0x20
je 0x1800fa63c
lea r12, [rbx + r14]
add r12, 4
cmp r12, rsi
je 0x1800fa63c
mov edx, dword [r12]
mov rcx, rdi
call fcn.1800ff3e0
mov edx, dword [r12 + 4]
mov rcx, rdi
call fcn.1800ff3e0
mov edx, dword [r12 + 8]
mov rcx, rdi
call fcn.1800ff3e0
add r14, 0x10
jmp 0x1800fa5e0
mov eax, 1
mov qword [rsp + 0x40], rax
xor edi, edi
jmp 0x1800fa6e4
mov rbx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x1800fa675
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
nop word cs:[rax + rax]
cmp byte [rbx + r8], 0
je 0x1800fae48
inc r8
cmp rax, r8
jne 0x1800fa660
jmp 0x1800fa67d
xor eax, eax
movzx r12d, byte [rsp + 0x27]
mov r8, rax
lea rcx, [rsp + 0xa0]
mov rdx, rbx
call fcn.180023c70
cmp qword [rsp + 0xa0], 0
je 0x1800fa951
mov eax, 1
mov qword [rsp + 0x40], rax
xor edi, edi
cmp qword [rsp + 0x58], 0
je 0x1800fa6c5
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapFree]
cmp qword [rsp + 0x30], 0
je 0x1800fa6df
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapFree]
mov r15, qword [rsp + 0x48]
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa720
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae99
mov rcx, rax
mov qword [0x1801fb9b8], rax
mov r8d, 0xc
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800fae99
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0xc
mov qword [rsp + 0x60], 0
lea r14, [rsp + 0x50]
mov rcx, r14
mov edx, ebp
call fcn.1800ff3e0
mov rcx, r14
mov edx, ebx
call fcn.1800ff3e0
mov rcx, r14
mov edx, esi
call fcn.1800ff3e0
mov rsi, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
test r8, r8
je 0x1800fa7ac
xor eax, eax
nop word cs:[rax + rax]
cmp byte [rsi + rax], 0
je 0x1800fa7a0
inc rax
cmp r8, rax
jne 0x1800fa790
jmp 0x1800fa7ac
cmp rax, r8
mov r8, rax
ja 0x1800fae51
lea rcx, [rsp + 0xa0]
mov rdx, rsi
call fcn.180023c70
cmp qword [rsp + 0xa0], 0
je 0x1800fa807
cmp r15w, 0xe
ja 0x1800fa86a
lea rax, [0x1801e8558]
mov rcx, r15
mov r15, qword [rax + r15*8]
lea rax, str.Intel_x86MIPSRISC_AlphaPPCSHXARMIntel_Itanium_based_x64RISC_Alpha_x64MSIL_Intel_or_AMD__x64Intel_Itanium_based_x86unknownARM_x64CPU
mov rbx, qword [rax + rcx*8]
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa8a3
jmp 0x1800fa88a
mov rbx, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xb0]
test r15, r15
je 0x1800fae3d
js 0x1800fae51
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa852
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae7b
mov rcx, rax
mov qword [0x1801fb9b8], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x1800fa8ba
jmp 0x1800fae7b
lea rbx, [0x1801c1e92]
mov r15d, 7
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa8a3
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae7b
mov rcx, rax
mov qword [0x1801fb9b8], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800fae7b
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.180164e10
cmp qword [rsp + 0x58], 0
je 0x1800fa8e2
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x1800fa903
lea rcx, [rsp + 0xe8]
mov rdx, rsi
call fcn.1800ff560
jmp 0x1800fa9db
test rsi, rsi
je 0x1800fa9be
lea rbx, [rsi*8]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa939
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae8a
mov rcx, rax
mov qword [0x1801fb9b8], rax
mov edx, 8
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
jne 0x1800fa9c3
jmp 0x1800fae8a
mov rsi, qword [rsp + 0xa8]
mov rdi, qword [rsp + 0xb0]
test rdi, rdi
je 0x1800fae55
js 0x1800fae51
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800fa998
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fa9af
mov rcx, rax
mov qword [0x1801fb9b8], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
jne 0x1800fae5a
mov ecx, 1
mov rdx, rdi
call fcn.180166e20
ud2
mov eax, 8
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rsi
mov qword [rsp + 0xf8], rsi
inc rsi
imul rbx, rsi, 0x70
movzx eax, byte [0x1801fba30]
mov rcx, qword [0x1801fb9b8]
test rcx, rcx
jne 0x1800faa0e
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae8a
mov rcx, rax
mov qword [0x1801fb9b8], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.kernel32.dll_HeapAlloc]
test rax, rax
je 0x1800fae8a
mov r13, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov rbx, qword [rsp + 0xf8]
test rbx, rbx
je 0x1800facd9
mov rsi, qword [rsp + 0xe8]
shl rbx, 3
mov r12d, 1
xor ebp, ebp
jmp 0x1800faaea
imul rax, rbp, 0x70
mov rcx, qword [rsp + 0x90]
mov qword [r13 + rax + 0x40], rcx
movaps xmm0, xmmword [rsp + 0x50]
movaps xmm1, xmmword [rsp + 0x60]
movaps xmm2, xmmword [rsp + 0x70]
movaps xmm3, xmmword [rsp + 0x80]
movups xmmword [r13 + rax + 0x30], xmm3
movups xmmword [r13 + rax + 0x20], xmm2
movups xmmword [r13 + rax + 0x10], xmm1
movups xmmword [r13 + rax], xmm0
mov qword [r13 + rax + 0x48], 0
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [r13 + rax + 0x50], xmm0
mov qword [r13 + rax + 0x60], r14
mov dword [r13 + rax + 0x68], 0
inc rbp
mov qword [rsp + 0x38], rbp
inc r12
add rbx, 0xfffffffffffffff8
je 0x1800facd9
mov qword [rsp + 0x108], r12
lea rax, [rsp + 0x108]
mov qword [rsp + 0x110], rax
lea rax, [0x1800278f0]
mov qword [rsp + 0x118], rax
lea rax, [0x1801c1ea8]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rcx, [rsp + 0xa0]
lea rdx, [rsp + 0x50]
call fcn.18001ee90
mov r14d, 1
test r15, r15
je 0x1800fabab
js 0x1800fae51
movzx eax, byte [0x1801fba30]
mov rax, qword [0x1801fb9b8]
test rax, rax
jne 0x1800fab91
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fae7b
mov qword [0x1801fb9b8], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1800fae7b
mov rcx, r14
mov rdx, qword [rsp + 0x48]
mov r8, r15
call fcn.180164e10
mov qword [rsp + 0xb8], r14
mov qword [rsp + 0xc0], r15
mov qword [rsp + 0xc8], r15
test rdi, rdi
je 0x1800fac30
js 0x1800fae51
movzx eax, byte [0x1801fba30]
mov rax, qword [0x1801fb9b8]
test rax, rax
jne 0x1800fac07
call qword [sym.imp.kernel32.dll_GetProcessHeap]
test rax, rax
je 0x1800fa9af
mov qword [0x1801fb9b8], rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.kernel32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x1800fac36
jmp 0x1800fa9af
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, rdi
call fcn.180164e10
mov qword [rsp + 0xd0], r14
mov qword [rsp + 0xd8], rdi
mov qword [rsp + 0xe0], rdi
mov r14, qword [rsi + r12*8 - 8]
movups xmm0, xmmword [rsp + 0xa0]
movups xmm1, xmmword [rsp + 0xb0]
movups xmm2, xmmword [rsp + 0xc0]
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x60], xmm1
movaps xmmword [rsp + 0x70], xmm2
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
cmp rbp, qword [rsp + 0x30]
jne 0x1800faa70
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.1800ff780
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x1800faa70
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xa8], rax
cmp qword [rsp + 0xf0], 0
je 0x1800fad22
mov r8, qword [rsp + 0xe8]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
call qword [sym.imp.kernel32.dll_HeapFree]
test rdi, rdi
movzx ebp, byte [rsp + 0x27]
mov r12, qword [rsp + 0x100]
je 0x1800fad48
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, qword [rsp + 0x40]
call qword [sym.imp.kernel32.dll_HeapFree]
test r15, r15
je 0x1800fad61
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, qword [rsp + 0x48]
call qword [sym.imp.kernel32.dll_HeapFree]
mov rsi, qword [r12 + 0x70]
mov rdi, qword [r12 + 0x80]
test rdi, rdi
je 0x1800fadeb
lea rbx, [rsi + 0x50]
mov r14, qword [sym.imp.kernel32.dll_HeapFree]
jmp 0x1800fad89
add rbx, 0x70
dec rdi
je 0x1800fadeb
cmp qword [rbx - 0x48], 0
je 0x1800fada0
mov r8, qword [rbx - 0x50]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
call r14
mov r8, qword [rbx - 8]
test r8, r8
je 0x1800fadbb
cmp qword [rbx], 0
je 0x1800fadbb
mov rcx, qword [0x1801fb9b8]
xor edx, edx
call r14
cmp qword [rbx - 0x30], 0
je 0x1800fadd2
mov r8, qword [rbx - 0x38]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
call r14
cmp qword [rbx - 0x18], 0
je 0x1800fad80
mov r8, qword [rbx - 0x20]
mov rcx, qword [0x1801fb9b8]
xor edx, edx
call r14
jmp 0x1800fad80
lea rdi, [r12 + 0x70]
cmp qword [r12 + 0x78], 0
je 0x1800fae0a
mov rcx, qword [0x1801fb9b8]
xor edx, edx
mov r8, rsi
call qword [sym.imp.kernel32.dll_HeapFree]
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi], xmm0
mov byte [r12 + 0x88], bpl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
jmp 0x1800fa8ba
cmp r8, rax
jbe 0x1800fa680
ud2
mov ecx, 1
mov qword [rsp + 0x40], rcx
mov rdx, rsi
mov r8, rdi
call fcn.180164e10
cmp qword [rsp + 0x58], 0
jne 0x1800fa6b3
jmp 0x1800fa6c5
mov ecx, 1
mov rdx, r15
call fcn.180166e20
ud2
mov ecx, 8
mov rdx, rbx
call fcn.180166e20
ud2
mov ecx, 1
mov edx, 0xc
call fcn.180166e20
ud2
mov ecx, 4
mov edx, 0x50
call fcn.180166e20
ud2
mov ecx, 1
mov edx, 0x30
call fcn.180166e20
ud2