Function at 0x14017a780
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, 0x188
cmp qword [rcx + 0x80], 0
jne 0x14017b05e
mov edi, edx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x170], xmm0
movaps xmmword [rsp + 0x160], xmm0
movaps xmmword [rsp + 0x150], xmm0
lea rcx, [rsp + 0x150]
call sub.KERNEL32.dll_GetSystemInfo
mov eax, 0x80000000
xor ecx, ecx
mov r8, rbx
cpuid
xchg rbx, r8
cmp eax, 0x80000004
mov byte [rsp + 0x27], dil
mov qword [rsp + 0x100], rsi
jb 0x14017a977
mov dword [rsp + 0x48], eax
movzx eax, byte [0x141af8129]
xor r12d, r12d
mov edx, 0x50
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov r8, rax
mov qword [rsp + 0x28], 5
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov ebx, 0x80000000
mov r13d, 0xc
mov edi, 0x80000000
mov r9d, dword [rsp + 0x48]
nop word [rax + rax]
cmp ebx, r9d
adc edi, 0
xor ecx, ecx
mov eax, ebx
mov rsi, rbx
cpuid
xchg rbx, rsi
mov ebp, ecx
mov r14d, edx
mov r15d, eax
cmp r12, qword [rsp + 0x28]
jne 0x14017a885
lea rcx, [rsp + 0x28]
call fcn.140172e00
mov r9d, dword [rsp + 0x48]
mov r8, qword [rsp + 0x30]
inc r12
mov dword [r8 + r13 - 0xc], r15d
mov dword [r8 + r13 - 8], esi
mov dword [r8 + r13 - 4], ebp
mov dword [r8 + r13], r14d
mov qword [rsp + 0x38], r12
cmp ebx, r9d
jae 0x14017a8b0
add r13, 0x10
mov ebx, edi
cmp edi, r9d
jbe 0x14017a850
movzx eax, byte [0x141af8129]
mov edx, 0x30
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov rsi, rax
mov qword [rsp + 0x58], 0x30
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
cmp r12, 3
jb 0x14017a9b5
mov rdi, qword [rsp + 0x30]
shl r12, 4
add r12, rdi
mov edx, dword [rdi + 0x20]
lea rsi, [rsp + 0x58]
mov rcx, rsi
call fcn.14017b2d0
mov edx, dword [rdi + 0x24]
mov rcx, rsi
call fcn.14017b2d0
mov edx, dword [rdi + 0x28]
mov rcx, rsi
call fcn.14017b2d0
add rdi, 0x2c
xor ebx, ebx
nop dword [rax + rax]
mov edx, dword [rdi + rbx]
mov rcx, rsi
call fcn.14017b2d0
cmp rbx, 0x20
je 0x14017a988
lea r14, [rdi + rbx]
add r14, 4
cmp r14, r12
je 0x14017a988
mov edx, dword [r14]
mov rcx, rsi
call fcn.14017b2d0
mov edx, dword [r14 + 4]
mov rcx, rsi
call fcn.14017b2d0
mov edx, dword [r14 + 8]
mov rcx, rsi
call fcn.14017b2d0
add rbx, 0x10
jmp 0x14017a930
mov r15d, 1
xor r13d, r13d
xor r12d, r12d
jmp 0x14017aa1e
mov rsi, qword [rsp + 0x60]
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14017a9b5
xor r8d, r8d
movzx edi, byte [rsp + 0x27]
nop
cmp byte [rsi + r8], 0
je 0x14017b0a0
inc r8
cmp rax, r8
jne 0x14017a9a0
jmp 0x14017a9bc
xor eax, eax
movzx edi, byte [rsp + 0x27]
mov r8, rax
lea rcx, [rsp + 0xa8]
mov rdx, rsi
call fcn.1400412c0
cmp qword [rsp + 0xa8], 0
je 0x14017abf1
mov r15d, 1
xor r13d, r13d
xor r12d, r12d
cmp qword [rsp + 0x58], 0
je 0x14017aa03
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
cmp qword [rsp + 0x28], 0
je 0x14017aa1e
mov r8, qword [rsp + 0x30]
mov rcx, qword [0x141af8068]
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 [0x141af8129]
mov edx, 0xc
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov qword [rsp + 0x58], 0xc
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0
lea r14, [rsp + 0x58]
mov rcx, r14
mov edx, ebp
call fcn.14017b2d0
mov rcx, r14
mov edx, ebx
call fcn.14017b2d0
mov rcx, r14
mov edx, esi
call fcn.14017b2d0
mov rsi, qword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
test r8, r8
je 0x14017aabc
xor eax, eax
nop word cs:[rax + rax]
cmp byte [rsi + rax], 0
je 0x14017aab0
inc rax
cmp r8, rax
jne 0x14017aaa0
jmp 0x14017aabc
cmp rax, r8
mov r8, rax
ja 0x14017b0a9
lea rcx, [rsp + 0xa8]
mov rdx, rsi
call fcn.1400412c0
cmp qword [rsp + 0xa8], 0
je 0x14017aafd
movzx eax, word [rsp + 0x150]
cmp rax, 0xe
ja 0x14017ab4b
lea rcx, [0x141ab7700]
mov r14, qword [rcx + rax*8]
lea rcx, [0x141ab7778]
mov rbx, qword [rcx + rax*8]
jmp 0x14017ab58
mov rbx, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14017b072
mov rbp, qword [rsp + 0x40]
js 0x14017b0a9
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, rbp
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov rcx, rax
mov r14, rbp
jmp 0x14017b07f
lea rbx, [0x141a7be1b]
mov r14d, 7
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r14
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov qword [rsp + 0x50], rax
mov rcx, rax
mov rdx, rbx
mov r8, r14
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x40], r14
cmp qword [rsp + 0x58], 0
je 0x14017aba3
mov rcx, qword [0x141af8068]
xor edx, edx
mov r8, rsi
call sub.KERNEL32.dll_HeapFree
mov esi, dword [rsp + 0x170]
test dil, dil
mov qword [rsp + 0xf8], r14
je 0x14017abcc
lea rcx, [rsp + 0x90]
mov rdx, rsi
call fcn.14017b0e0
jmp 0x14017ac54
test rsi, rsi
je 0x14017ac35
lea rdx, [rsi*8]
mov ecx, 8
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov rcx, rsi
jmp 0x14017ac3c
mov rbx, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xb8]
test r12, r12
je 0x14017b0ab
js 0x14017b0a9
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r12
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov r15, rax
mov r13, r12
jmp 0x14017b0b4
mov eax, 8
xor ecx, ecx
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0x88], r15
inc rsi
imul rdx, rsi, 0x70
movzx eax, byte [0x141af8129]
xor ecx, ecx
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov rbp, rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14017aec9
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x108], rax
shl rbx, 3
mov r13d, 0xd
xor r15d, r15d
mov qword [rsp + 0x110], r12
jmp 0x14017ad4a
mov rax, qword [rsp + 0xe8]
mov qword [rbp + r13*8 - 0x28], rax
movups xmm0, xmmword [rsp + 0xa8]
movups xmm1, xmmword [rsp + 0xb8]
movups xmm2, xmmword [rsp + 0xc8]
movups xmm3, xmmword [rsp + 0xd8]
movups xmmword [rbp + r13*8 - 0x38], xmm3
movups xmmword [rbp + r13*8 - 0x48], xmm2
movups xmmword [rbp + r13*8 - 0x58], xmm1
movups xmmword [rbp + r13*8 - 0x68], xmm0
movabs rax, 0x8000000000000000
mov qword [rbp + r13*8 - 0x20], rax
mov qword [rbp + r13*8 - 8], rsi
mov dword [rbp + r13*8], 0
mov r15, qword [rsp + 0x48]
mov qword [rsp + 0x38], r15
add r13, 0xe
add rbx, 0xfffffffffffffff8
je 0x14017aec9
lea rax, [r15 + 1]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x118], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x140], rax
lea rax, [0x140040fe0]
mov qword [rsp + 0x148], rax
lea rax, [0x141a7bf80]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x140]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], 1
lea rcx, [rsp + 0xa8]
lea rdx, [rsp + 0x58]
call fcn.140034eb0
mov esi, 1
mov r12, qword [rsp + 0x40]
test r12, r12
je 0x14017ae00
js 0x14017b0a9
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r12
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov r14, rax
mov rdi, r12
jmp 0x14017ae08
xor edi, edi
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x50]
mov r8, r12
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0xc0], rdi
mov qword [rsp + 0xc8], r14
mov qword [rsp + 0xd0], r12
mov r12, qword [rsp + 0x110]
test r12, r12
je 0x14017ae70
js 0x14017b0a9
movzx eax, byte [0x141af8129]
xor ecx, ecx
mov rdx, r12
call fcn.140146820
test rax, rax
je 0x14017b0a9
mov rsi, rax
mov r14, r12
jmp 0x14017ae73
xor r14d, r14d
mov rcx, rsi
mov rdx, qword [rsp + 0x88]
mov r8, r12
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0xd8], r14
mov qword [rsp + 0xe0], rsi
mov qword [rsp + 0xe8], r12
mov rax, qword [rsp + 0x108]
mov rsi, qword [rax + r15*8]
cmp r15, qword [rsp + 0x28]
jne 0x14017acd0
lea rcx, [rsp + 0x28]
call fcn.140069190
mov rbp, qword [rsp + 0x30]
jmp 0x14017acd0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x128], rax
cmp qword [rsp + 0x90], 0
je 0x14017af11
mov r8, qword [rsp + 0x98]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov r14, qword [rsp + 0x100]
lea rsi, [r14 + 0x70]
mov rdi, qword [r14 + 0x80]
test rdi, rdi
mov r15, qword [rsp + 0x88]
mov r13, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xf8]
je 0x14017afcf
mov rbx, qword [r14 + 0x78]
add rbx, 0x50
jmp 0x14017af59
add rbx, 0x70
dec rdi
je 0x14017afcf
cmp qword [rbx - 0x50], 0
je 0x14017af72
mov r8, qword [rbx - 0x48]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rbx - 8]
movabs rcx, 0x8000000000000000
cmp rax, rcx
je 0x14017af9b
test rax, rax
je 0x14017af9b
mov r8, qword [rbx]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x38], 0
je 0x14017afb4
mov r8, qword [rbx - 0x30]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
cmp qword [rbx - 0x20], 0
je 0x14017af50
mov r8, qword [rbx - 0x18]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
jmp 0x14017af50
cmp qword [rsi], 0
je 0x14017afe7
mov r8, qword [r14 + 0x78]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov rax, qword [rsp + 0x130]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x120]
movups xmmword [rsi], xmm0
cmp qword [r14 + 0x18], 0
movzx ebx, byte [rsp + 0x27]
je 0x14017b01c
mov r8, qword [r14 + 0x20]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov qword [r14 + 0x18], rbp
mov rax, qword [rsp + 0x50]
mov qword [r14 + 0x20], rax
mov rax, qword [rsp + 0x40]
mov qword [r14 + 0x28], rax
cmp qword [r14 + 0x30], 0
je 0x14017b04b
mov r8, qword [r14 + 0x38]
mov rcx, qword [0x141af8068]
xor edx, edx
call sub.KERNEL32.dll_HeapFree
mov qword [r14 + 0x30], r13
mov qword [r14 + 0x38], r15
mov qword [r14 + 0x40], r12
mov byte [r14 + 0x88], bl
add rsp, 0x188
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 1
xor r14d, r14d
mov rbp, qword [rsp + 0x40]
mov qword [rsp + 0x50], rcx
mov rdx, rbx
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x58], 0
jne 0x14017ab92
jmp 0x14017aba3
cmp r8, rax
jbe 0x14017a9bf
ud2
mov r15d, 1
xor r13d, r13d
mov rcx, r15
mov rdx, rbx
mov r8, r12
call sub.msvcrt.dll_memcpy
cmp qword [rsp + 0x58], 0
jne 0x14017a9f2
jmp 0x14017aa03