Function at 0x18001837c
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x3f]
sub rsp, 0xa0
mov rax, qword [0x1802e7850]
xor rax, rsp
mov qword [rbp + 0xf], rax
xor r10d, r10d
mov qword [rbp - 0x51], rcx
mov r12, rdx
mov r13, rcx
mov edi, r10d
mov r14d, r10d
cmp rdx, 0x40
jae 0x1800183d6
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1800185c6
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp r12, rax
jb 0x1800183c6
lea rsi, [rcx + r13]
cmp dword [rsi], 0x4550
jne 0x1800185c6
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x1800185c6
mov r11d, 1
test byte [rsi + 0x38], r11b
jne 0x1800185c6
movzx ecx, word [rsi + 0x14]
mov r9d, dword [rsi + 0x38]
add rcx, 0x24
cmp r10w, word [rsi + 6]
jae 0x180018454
movzx r8d, word [rsi + 6]
add rcx, rsi
mov eax, dword [rcx + 4]
mov edx, dword [rcx]
test eax, eax
jne 0x18001843f
lea rax, [r9 + rdx]
jmp 0x180018441
add eax, edx
cmp rax, rdi
cmovbe rax, rdi
add rcx, 0x28
mov rdi, rax
sub r8, r11
jne 0x180018430
lea rcx, [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edx, dword [rbp - 0x1d]
mov eax, dword [rsi + 0x50]
lea rbx, [rdx - 1]
add rbx, rax
lea rcx, [rdx - 1]
not rcx
lea rax, [rdx - 1]
add rax, rdi
and rbx, rcx
and rax, rcx
cmp rbx, rax
jne 0x1800185c6
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
jne 0x18001850f
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x1800185c6
jmp 0x18001850f
mov ecx, 0x10
call fcn.1802299bc
mov rdi, rax
test rax, rax
je 0x180018609
mov qword [rax], r14
mov r9d, 4
mov r8d, 0x3000
mov qword [rax + 8], r15
mov rdx, rbx
xor ecx, ecx
mov r14, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x1800185f5
movabs rdx, 0xffffffff00000000
lea rcx, [r15 + rbx]
mov rax, r15
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x1800184cc
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x70]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
xor ecx, ecx
mov qword [rbp - 0x29], rax
mov rdi, rax
test rax, rax
je 0x180018609
mov qword [rax + 8], r15
movzx eax, word [rsi + 0x16]
shr eax, 0xd
and eax, 1
mov qword [rdi + 0x58], rcx
mov dword [rdi + 0x20], eax
lea rax, [0x180018344]
mov qword [rdi + 0x28], rax
lea rax, [0x18001834c]
mov qword [rdi + 0x30], rax
lea rax, [0x180018354]
mov qword [rdi + 0x38], rax
lea rax, [0x18001835c]
mov qword [rdi + 0x40], rax
lea rax, [0x180018364]
mov qword [rdi + 0x48], rax
mov eax, dword [rbp - 0x1d]
mov dword [rdi + 0x68], eax
mov qword [rdi + 0x70], r14
mov edx, dword [rsi + 0x54]
cmp r12, rdx
jae 0x18001861f
mov ecx, 0xd
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.180018c6c
xor eax, eax
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.180218160
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rdi
lea rdx, [0x18001834c]
xor r8d, r8d
call fcn.180018210
jmp 0x1800185c6
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rcx, r14
jmp 0x1800185f8
mov r9d, 4
mov r8d, 0x1000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.18021a5e0
movsxd rax, dword [r13 + 0x3c]
add rax, rbx
xor ebx, ebx
mov qword [rdi], rax
mov edx, ebx
mov dword [rbp - 0x59], ebx
mov qword [rax + 0x30], r15
mov rcx, qword [rdi]
mov r14, qword [rdi + 8]
movzx r13d, word [rcx + 0x14]
add r13, 0x24
cmp bx, word [rcx + 6]
jae 0x180018749
add r13, rcx
mov ecx, dword [r13 + 4]
test ecx, ecx
jne 0x1800186cf
cmp dword [rsi + 0x38], ebx
jle 0x18001872d
movsxd rbx, dword [rsi + 0x38]
mov r9d, 4
mov ecx, dword [r13]
mov rdx, rbx
mov rax, qword [rdi + 0x58]
add rcx, r14
mov r8d, 0x1000
mov qword [rsp + 0x20], rax
call qword [rdi + 0x28]
test rax, rax
je 0x1800185be
mov ecx, dword [r13]
mov r8, rbx
add rcx, r14
xor edx, edx
mov dword [r13 - 4], ecx
call fcn.18021ad90
jmp 0x180018728
mov eax, dword [r13 + 8]
add eax, ecx
cmp r12, rax
jb 0x1800185b3
mov rax, qword [rdi + 0x58]
mov rdx, rcx
mov ecx, dword [r13]
mov r9d, 4
add rcx, r14
mov qword [rsp + 0x20], rax
mov r8d, 0x1000
call qword [rdi + 0x28]
test rax, rax
je 0x1800185be
mov ebx, dword [r13]
mov edx, dword [r13 + 8]
add rbx, r14
mov r8d, dword [r13 + 4]
mov rcx, rbx
add rdx, qword [rbp - 0x51]
call fcn.18021a5e0
mov dword [r13 - 4], ebx
mov edx, dword [rbp - 0x59]
xor ebx, ebx
mov rcx, qword [rdi]
inc edx
add r13, 0x28
mov dword [rbp - 0x59], edx
movzx eax, word [rcx + 6]
cmp edx, eax
jl 0x180018678
mov r14, qword [rdi + 8]
mov r9, qword [rcx + 0x30]
sub r9, qword [rsi + 0x30]
je 0x1800187ed
xor r12d, r12d
cmp dword [rcx + 0xb4], r12d
jne 0x180018770
mov eax, r12d
lea ebx, [r12 + 1]
jmp 0x1800187f7
mov edx, dword [rcx + 0xb0]
add rdx, r14
mov eax, dword [rdx]
test eax, eax
je 0x1800187f0
mov ecx, dword [rdx + 4]
lea r10, [rdx + 8]
mov r8d, eax
mov r11d, r12d
add r8, r14
lea rax, [rcx - 8]
test rax, 0xfffffffffffffffe
jbe 0x1800187d9
movzx eax, word [r10]
mov ecx, eax
shr eax, 0xc
and ecx, 0xfff
cmp eax, 3
je 0x1800187ba
cmp eax, 0xa
jne 0x1800187be
add qword [rcx + r8], r9
jmp 0x1800187be
add dword [rcx + r8], r9d
mov ebx, dword [rdx + 4]
inc r11d
add r10, 2
mov eax, r11d
lea rcx, [rbx - 8]
shr rcx, 1
cmp rax, rcx
jb 0x18001879b
mov ecx, ebx
mov eax, ecx
add rdx, rax
mov eax, dword [rdx]
test eax, eax
jne 0x18001877f
mov r14, qword [rdi + 8]
mov rcx, qword [rdi]
jmp 0x1800187f0
xor r12d, r12d
mov ebx, 1
mov eax, ebx
mov dword [rdi + 0x24], eax
cmp dword [rcx + 0x94], r12d
je 0x180018905
mov ebx, dword [rcx + 0x90]
mov edx, 0x14
add rbx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x180018900
add rbx, 0x10
cmp dword [rbx - 4], r12d
je 0x180018900
mov ecx, dword [rbx - 4]
mov rdx, qword [rdi + 0x58]
add rcx, r14
call qword [rdi + 0x38]
mov rsi, rax
test rax, rax
je 0x1800185be
movsxd rcx, dword [rdi + 0x18]
mov r13d, 1
add rcx, r13
lea eax, [r13 + 7]
mul rcx
lea rcx, [r13 - 2]
cmovo rax, rcx
mov rcx, qword [rdi + 0x10]
mov rdx, rax
call fcn.180229498
test rax, rax
je 0x18001894b
movsxd rcx, dword [rdi + 0x18]
mov qword [rdi + 0x10], rax
mov qword [rax + rcx*8], rsi
add dword [rdi + 0x18], r13d
mov ecx, dword [rbx - 0x10]
test ecx, ecx
je 0x180018899
mov eax, dword [rbx]
jmp 0x18001889d
mov ecx, dword [rbx]
mov eax, ecx
mov r13d, eax
add r13, r14
mov r12d, ecx
add r12, r14
jmp 0x1800188db
mov r8, qword [rdi + 0x58]
mov rcx, rsi
mov r9, qword [rdi + 0x40]
test rax, rax
jns 0x1800188c0
movzx edx, ax
jmp 0x1800188c7
lea rdx, [rax + 2]
add rdx, r14
call r9
mov qword [r13], rax
test rax, rax
je 0x18001894b
add r12, 8
add r13, 8
mov rax, qword [r12]
test rax, rax
jne 0x1800188ab
add rbx, 0x14
lea edx, [rax + 0x14]
lea rcx, [rbx - 0x10]
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor r12d, r12d
test eax, eax
je 0x18001882a
mov ebx, 1
mov rcx, qword [rdi]
movabs rdx, 0xffffffff00000000
mov r10d, dword [rdi + 0x68]
neg r10
movzx eax, word [rcx + 0x14]
mov r13, qword [rcx + 0x30]
and r13, rdx
mov r9d, dword [rax + rcx + 0x20]
mov edx, dword [rax + rcx + 0x28]
or r9, r13
and r10, r9
mov qword [rbp - 0x49], r9
mov qword [rbp - 0x41], r10
test edx, edx
jne 0x180018964
test byte [rax + rcx + 0x3c], 0x40
je 0x18001895a
mov edx, dword [rcx + 0x20]
jmp 0x180018964
mov rdx, qword [rdi + 0x58]
mov rcx, rsi
call qword [rdi + 0x48]
jmp 0x1800185be
test byte [rax + rcx + 0x3c], 0x80
je 0x180018964
mov edx, dword [rcx + 0x24]
mov r8d, edx
mov edx, dword [rax + rcx + 0x3c]
mov dword [rbp - 0x2d], r12d
mov r12d, ebx
mov qword [rbp - 0x39], r8
mov dword [rbp - 0x31], edx
cmp bx, word [rcx + 6]
jae 0x180018a33
lea rbx, [rcx + 0x64]
add rbx, rax
mov r14d, dword [rbx - 0x1c]
mov esi, dword [rdi + 0x68]
or r14, r13
mov eax, dword [rbx - 0x14]
neg rsi
and rsi, r14
test eax, eax
jne 0x1800189b3
test byte [rbx], 0x40
je 0x1800189ab
mov eax, dword [rcx + 0x20]
jmp 0x1800189b3
test byte [rbx], 0x80
je 0x1800189b3
mov eax, dword [rcx + 0x24]
mov r11d, eax
mov qword [rbp - 0x51], r11
cmp r10, rsi
je 0x1800189f5
lea rax, [r8 + r9]
cmp rax, rsi
ja 0x1800189f5
lea rdx, [rbp - 0x49]
mov rcx, rdi
call fcn.18001826c
test eax, eax
je 0x1800185be
mov r8, qword [rbp - 0x51]
mov r9, r14
mov edx, dword [rbx]
mov r10, rsi
mov rcx, qword [rdi]
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], rsi
jmp 0x180018a13
mov r8d, dword [rbx]
mov eax, r8d
and eax, edx
or edx, r8d
bt eax, 0x19
jb 0x180018a0a
btr edx, 0x19
mov r8, r11
sub r8, r9
add r8, r14
movzx eax, word [rcx + 6]
inc r12d
add rbx, 0x28
mov dword [rbp - 0x31], edx
mov qword [rbp - 0x39], r8
cmp r12d, eax
jl 0x18001898a
mov ebx, 1
lea rdx, [rbp - 0x49]
mov dword [rbp - 0x2d], ebx
mov rcx, rdi
call fcn.18001826c
xor r14d, r14d
test eax, eax
je 0x1800185be
mov rcx, qword [rdi]
mov rax, rcx
mov edx, dword [rcx + 0xd0]
test edx, edx
je 0x180018a9a
mov rsi, qword [rdi + 8]
mov rbx, qword [rdx + rsi + 0x18]
test rbx, rbx
je 0x180018a95
mov r9, qword [rbx]
test r9, r9
je 0x180018a95
lea edi, [r14 + 1]
xor r8d, r8d
mov edx, edi
mov rcx, rsi
call r9
lea rbx, [rbx + 8]
mov r9, qword [rbx]
test r9, r9
jne 0x180018a77
mov rdi, qword [rbp - 0x29]
mov rax, qword [rdi]
mov ebx, 1
cmp dword [rax + 0x28], r14d
je 0x180018ac9
mov eax, dword [rax + 0x28]
add rax, r15
cmp dword [rdi + 0x20], r14d
je 0x180018ac3
xor r8d, r8d
mov edx, ebx
mov rcx, r15
call rax
test eax, eax
je 0x1800185be
mov dword [rdi + 0x1c], ebx
jmp 0x180018acd
mov qword [rdi + 0x60], rax
jmp 0x180018acd
mov qword [rdi + 0x60], r14
mov rax, rdi
jmp 0x1800185c8