Function at 0x18010e160
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 0x18010eb91
mov r12d, edx
mov rbx, 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 + 0xe0], rbx
jb 0x18010e3ab
mov esi, eax
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e20d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ec11
mov rcx, rax
mov qword [0x18021e9c0], rax
xor edi, edi
mov r8d, 0x50
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ec11
mov r8, rax
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 5
mov qword [rsp + 0x38], 0
mov ebp, 0x80000000
mov r13d, 0x80000000
cmp ebp, esi
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 rdi, qword [rsp + 0x30]
jne 0x18010e289
lea rcx, [rsp + 0x28]
mov rdx, rdi
call fcn.180112a50
mov r8, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x38]
mov rax, rdi
shl rax, 4
inc rdi
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], rdi
cmp ebp, esi
jae 0x18010e2b7
mov ebp, r13d
cmp r13d, esi
jbe 0x18010e250
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e2e3
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ec22
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0x30
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ec22
mov rsi, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0x30
mov qword [rsp + 0x58], 0
mov r15, qword [rsp + 0x28]
cmp rdi, 3
jb 0x18010e3e5
shl rdi, 4
add rdi, r15
mov edx, dword [r15 + 0x20]
lea rsi, [rsp + 0x48]
mov rcx, rsi
call fcn.180112990
mov edx, dword [r15 + 0x24]
mov rcx, rsi
call fcn.180112990
mov edx, dword [r15 + 0x28]
mov rcx, rsi
call fcn.180112990
lea rbx, [r15 + 0x2c]
xor r14d, r14d
nop word [rax + rax]
mov edx, dword [rbx + r14]
mov rcx, rsi
call fcn.180112990
cmp r14, 0x20
je 0x18010e3b8
lea r12, [rbx + r14]
add r12, 4
cmp r12, rdi
je 0x18010e3b8
mov edx, dword [r12]
mov rcx, rsi
call fcn.180112990
mov edx, dword [r12 + 4]
mov rcx, rsi
call fcn.180112990
mov edx, dword [r12 + 8]
mov rcx, rsi
call fcn.180112990
add r14, 0x10
jmp 0x18010e360
mov r13d, 1
xor edi, edi
jmp 0x18010e450
mov rsi, qword [rsp + 0x48]
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x18010e3e5
xor r8d, r8d
movzx r12d, byte [rsp + 0x27]
cmp byte [rsi + r8], 0
je 0x18010ebb0
inc r8
cmp rax, r8
jne 0x18010e3d0
jmp 0x18010e3ed
xor eax, eax
movzx r12d, byte [rsp + 0x27]
mov r8, rax
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180027450
cmp qword [rsp + 0x80], 0
je 0x18010e6b1
mov r13d, 1
xor edi, edi
cmp qword [rsp + 0x50], 0
je 0x18010e431
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x30], 0
je 0x18010e44b
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r15, qword [rsp + 0x40]
xor eax, eax
xor ecx, ecx
mov rbp, rbx
cpuid
xchg rbx, rbp
mov esi, ecx
mov ebx, edx
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e48c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ec00
mov rcx, rax
mov qword [0x18021e9c0], rax
mov r8d, 0xc
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ec00
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 0xc
mov qword [rsp + 0x58], 0
lea r14, [rsp + 0x48]
mov rcx, r14
mov edx, ebp
call fcn.180112990
mov rcx, r14
mov edx, ebx
call fcn.180112990
mov rcx, r14
mov edx, esi
call fcn.180112990
mov rsi, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
test r8, r8
je 0x18010e50c
xor eax, eax
nop
cmp byte [rsi + rax], 0
je 0x18010e500
inc rax
cmp r8, rax
jne 0x18010e4f0
jmp 0x18010e50c
cmp rax, r8
mov r8, rax
ja 0x18010ebb9
lea rcx, [rsp + 0x80]
mov rdx, rsi
call fcn.180027450
cmp qword [rsp + 0x80], 0
je 0x18010e567
cmp r15w, 0xe
ja 0x18010e5ca
lea rax, [0x18020b178]
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_x86ARM_x64
mov rbx, qword [rax + rcx*8]
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e603
jmp 0x18010e5ea
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x90]
test r15, r15
je 0x18010eba5
js 0x18010ebb9
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e5b2
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ebe2
mov rcx, rax
mov qword [0x18021e9c0], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010e61a
jmp 0x18010ebe2
lea rbx, [0x1802076d0]
mov r15d, 7
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e603
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ebe2
mov rcx, rax
mov qword [0x18021e9c0], rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ebe2
mov r14, rax
mov rcx, r14
mov rdx, rbx
mov r8, r15
call fcn.180180980
cmp qword [rsp + 0x50], 0
je 0x18010e642
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [rsp + 0x140]
test r12b, r12b
je 0x18010e663
lea rcx, [rsp + 0xc8]
mov rdx, rsi
call fcn.180112b10
jmp 0x18010e73b
test rsi, rsi
je 0x18010e71e
lea rbx, [rsi*8]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e699
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ebf1
mov rcx, rax
mov qword [0x18021e9c0], rax
mov edx, 8
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
jne 0x18010e723
jmp 0x18010ebf1
mov rbx, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x18010ebbd
js 0x18010ebb9
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e6f8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010e70f
mov rcx, rax
mov qword [0x18021e9c0], rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r13, rax
test rax, rax
jne 0x18010ebc3
mov ecx, 1
mov rdx, rdi
call fcn.1801828e0
ud2
mov eax, 8
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rsi
mov qword [rsp + 0xd8], rsi
mov qword [rsp + 0x78], r13
inc rsi
imul rbx, rsi, 0x70
movzx eax, byte [0x18021ea38]
mov rcx, qword [0x18021e9c0]
test rcx, rcx
jne 0x18010e773
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ebf1
mov rcx, rax
mov qword [0x18021e9c0], rax
xor edx, edx
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x18010ebf1
mov r13, rax
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], 0
mov r12, qword [rsp + 0xd8]
test r12, r12
je 0x18010e9ea
mov rbx, qword [rsp + 0xc8]
shl r12, 3
mov esi, 1
xor ebp, ebp
jmp 0x18010e850
imul rax, rbp, 0x70
mov rcx, qword [rsp + 0xc0]
mov qword [r13 + rax + 0x40], rcx
movups xmm0, xmmword [rsp + 0x80]
movups xmm1, xmmword [rsp + 0x90]
movups xmm2, xmmword [rsp + 0xa0]
movups xmm3, xmmword [rsp + 0xb0]
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 + 0x48]
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 rsi
add r12, 0xfffffffffffffff8
je 0x18010e9ea
mov qword [rsp + 0xe8], rsi
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x110], rax
lea rax, [0x18002b1b0]
mov qword [rsp + 0x118], rax
lea rax, str.CPU
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
mov qword [rsp + 0x68], 0
lea rax, [rsp + 0x110]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], 1
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0x48]
call fcn.18001dcc0
mov r14d, 1
test r15, r15
je 0x18010e911
js 0x18010ebb9
movzx eax, byte [0x18021ea38]
mov rax, qword [0x18021e9c0]
test rax, rax
jne 0x18010e8f7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010ebe2
mov qword [0x18021e9c0], rax
mov rcx, rax
xor edx, edx
mov r8, r15
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x18010ebe2
mov rcx, r14
mov rdx, qword [rsp + 0x40]
mov r8, r15
call fcn.180180980
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r15
mov qword [rsp + 0xa8], r15
test rdi, rdi
je 0x18010e990
js 0x18010ebb9
movzx eax, byte [0x18021ea38]
mov rax, qword [0x18021e9c0]
test rax, rax
jne 0x18010e96d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
test rax, rax
je 0x18010e70f
mov qword [0x18021e9c0], rax
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
jne 0x18010e996
jmp 0x18010e70f
mov r14d, 1
mov rcx, r14
mov rdx, qword [rsp + 0x78]
mov r8, rdi
call fcn.180180980
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], rdi
mov r14, qword [rbx + rsi*8 - 8]
cmp rbp, qword [rsp + 0x30]
jne 0x18010e7d0
lea rcx, [rsp + 0x28]
mov rdx, rbp
call fcn.180141180
mov r13, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x38]
jmp 0x18010e7d0
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0xd0], 0
je 0x18010ea33
mov r8, qword [rsp + 0xc8]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x100], rax
mov r13, qword [rsp + 0xe0]
mov rsi, qword [r13 + 0x70]
mov rbx, qword [r13 + 0x80]
test rbx, rbx
je 0x18010eafb
lea r14, [rsi + 0x50]
mov r12, qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x18010ea99
add r14, 0x70
dec rbx
je 0x18010eafb
cmp qword [r14 - 0x48], 0
je 0x18010eab0
mov r8, qword [r14 - 0x50]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call r12
mov r8, qword [r14 - 8]
test r8, r8
je 0x18010eacb
cmp qword [r14], 0
je 0x18010eacb
mov rcx, qword [0x18021e9c0]
xor edx, edx
call r12
cmp qword [r14 - 0x30], 0
je 0x18010eae2
mov r8, qword [r14 - 0x38]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call r12
cmp qword [r14 - 0x18], 0
je 0x18010ea90
mov r8, qword [r14 - 0x20]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call r12
jmp 0x18010ea90
lea rbx, [r13 + 0x70]
cmp qword [r13 + 0x78], 0
je 0x18010eb18
mov rcx, qword [0x18021e9c0]
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x100]
mov qword [rbx + 0x10], rax
movaps xmm0, xmmword [rsp + 0xf0]
movups xmmword [rbx], xmm0
cmp qword [r13 + 0x20], 0
movzx ebx, byte [rsp + 0x27]
mov rsi, qword [rsp + 0x40]
je 0x18010eb53
mov r8, qword [r13 + 0x18]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [r13 + 0x18], rsi
mov qword [r13 + 0x20], r15
mov qword [r13 + 0x28], r15
cmp qword [r13 + 0x38], 0
je 0x18010eb79
mov r8, qword [r13 + 0x30]
mov rcx, qword [0x18021e9c0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rax, qword [rsp + 0x78]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [r13 + 0x40], rdi
mov byte [r13 + 0x88], bl
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r14d, 1
jmp 0x18010e61a
cmp r8, rax
jbe 0x18010e3f0
ud2
mov r13d, 1
mov rcx, r13
mov rdx, rbx
mov r8, rdi
call fcn.180180980
cmp qword [rsp + 0x50], 0
jne 0x18010e41f
jmp 0x18010e431
mov ecx, 1
mov rdx, r15
call fcn.1801828e0
ud2
mov ecx, 8
mov rdx, rbx
call fcn.1801828e0
ud2
mov ecx, 1
mov edx, 0xc
call fcn.1801828e0
ud2
mov ecx, 4
mov edx, 0x50
call fcn.1801828e0
ud2
mov ecx, 1
mov edx, 0x30
call fcn.1801828e0
ud2