Function at 0x140053610
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rax, qword [0x1401c6028]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x98]
mov r8d, 0x118
xor edx, edx
call fcn.1401543c0
mov dword [rsp + 0x94], 0x11c
lea rcx, [rsp + 0x94]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x3c], 0
mov ecx, dword [rsp + 0x98]
mov edx, dword [rsp + 0x9c]
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140150d68
mov rsi, rax
mov ebx, dword [rsp + 0x3c]
mov eax, dword [0x1401d7f68]
mov ecx, dword [0x1401d52c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053ccf
mov dword [rsi], 0
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
movabs rax, 0x300000004
mov qword [rsi + 0x60], rax
movups xmmword [rsi + 0x68], xmm0
mov qword [rsi + 0x78], 0
mov ebp, dword [rsp + 0x98]
mov dword [rsi + 4], ebp
mov r14d, dword [rsp + 0x9c]
mov dword [rsi + 8], r14d
mov edi, dword [rsp + 0xa0]
mov dword [rsi + 0xc], edi
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
movabs rax, 0xaaaaaaaa00000000
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea rdx, [0x1401a8190]
xor r15d, r15d
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140053784
xor eax, eax
jmp 0x140053888
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x40], 4
mov dword [rsp + 0x1b0], 4
mov dword [rsp + 0x90], 0
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea rdx, [0x1401a81ea]
xor r15d, r15d
lea r9, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140053811
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r15d, r15d
cmp dword [rsp + 0x1b0], 4
mov ecx, 0
jne 0x14005380a
mov ecx, dword [rsp + 0x90]
cmp eax, 2
cmovb r15d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140054050
movzx eax, byte [rsp + 0x87]
mov rcx, rax
test al, al
jns 0x14005387f
mov rcx, qword [rsp + 0x78]
test rcx, rcx
jne 0x140053884
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140054050
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x140053888
mov rdx, qword [rsp + 0x78]
test rdx, rdx
js 0x140053d6f
mov rcx, qword [rsp + 0x70]
je 0x140053890
test rcx, rcx
jne 0x140053890
int3
test rcx, rcx
je 0x140053840
test al, al
js 0x140053862
movzx edx, al
lea rcx, [rsp + 0x70]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x40]
call fcn.140064a30
mov r12, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x4f]
mov qword [rsp + 0x1b7], rax
movzx r13d, byte [rsp + 0x57]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400538f1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
je 0x140053915
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401b8a48]
cmp byte [rsp + 0x87], 0
jns 0x140053929
mov rcx, qword [rsp + 0x70]
call fcn.140150da4
mov dword [rsi + 0x10], r15d
mov qword [rsi + 0x20], r12
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b7]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x2f], rcx
mov byte [rsi + 0x37], r13b
mov eax, 0x16
cmp ebp, 0xb
je 0x140053a90
cmp ebp, 0xa
jne 0x140053a51
mov eax, 0x17
cmp edi, 0x585c
ja 0x140053a90
mov eax, 0x16
cmp edi, 0x55ef
ja 0x140053a90
mov eax, 0x15
cmp edi, 0x4f7b
ja 0x140053a90
mov eax, 0x14
cmp edi, 0x4a64
ja 0x140053a90
mov eax, 0x13
je 0x140053a90
mov eax, 0x12
cmp edi, 0x4a62
ja 0x140053a90
mov eax, 0x11
je 0x140053a90
mov eax, 0x10
cmp edi, 0x4a60
ja 0x140053a90
mov eax, 0xf
cmp edi, 0x47ba
ja 0x140053a90
mov eax, 0xe
je 0x140053a90
mov eax, 0xd
cmp edi, 0x4562
ja 0x140053a90
mov eax, 0xc
cmp edi, 0x42ed
ja 0x140053a90
mov eax, 0xb
cmp edi, 0x3faa
ja 0x140053a90
mov eax, 0xa
cmp edi, 0x3ad6
ja 0x140053a90
mov eax, 9
cmp edi, 0x3838
ja 0x140053a90
cmp edi, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x140053a90
cmp ebp, 7
jb 0x140053a62
call fcn.14007fd20
mov eax, 0x18
jmp 0x140053a90
cmp ebp, 6
jne 0x140053a79
lea ecx, [r14 + 3]
cmp r14d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140053a90
xor eax, eax
test r14d, r14d
je 0x140053a90
cmp ebp, 5
jne 0x140053a90
xor eax, eax
cmp r14d, 1
setne al
inc eax
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov eax, dword [0x1401d7f30]
mov ecx, dword [0x1401d52c8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053d1e
mov rax, qword [0x1401d7f28]
test rax, rax
je 0x140053b16
mov word [rsp + 0x70], 0
mov word [rsp + 0x58], 0
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0x58]
mov rcx, rdi
call qword [0x1401b8a48]
test eax, eax
je 0x140053b88
movzx eax, word [rsp + 0x70]
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140053b47
mov edx, 0x15
bt edx, ecx
jae 0x140053b47
mov eax, 2
jmp 0x140053b67
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x70]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140053b88
cmp dword [rsp + 0x70], 0
je 0x140053b59
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x140053b88
test eax, eax
je 0x140053b67
cmp eax, 0x14c
jne 0x140053b62
mov eax, 1
jmp 0x140053b67
mov dword [rsi + 0x60], 0
jmp 0x140053b88
mov eax, 3
mov dword [rsi + 0x60], eax
movzx eax, word [rsp + 0x58]
xor ecx, ecx
cmp eax, 0x8664
setne cl
inc ecx
xor edx, edx
cmp eax, 0xaa64
cmovne edx, ecx
mov dword [rsi + 0x64], edx
movzx eax, word [rsp + 0x1a8]
mov dword [rsi + 0x18], eax
movzx eax, word [rsp + 0x1aa]
mov dword [rsi + 0x1c], eax
lea rdi, [rsp + 0xa8]
mov rcx, rdi
call fcn.140171c94
test rax, rax
js 0x140053d6c
mov r14, rsi
add r14, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x70]
mov rcx, rdi
mov rdx, rax
call fcn.140064a30
mov eax, dword [rsp + 0x98]
mov ecx, dword [0x1401d7f60]
mov edx, dword [0x1401d7f58]
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
mov r8, qword [rsp + 0x80]
mov qword [r14 + 0x10], r8
mov dword [rsi + 0x50], edx
mov qword [rsi + 0x58], rcx
cmp eax, 5
je 0x140053c43
cmp eax, 0xa
je 0x140053c20
cmp eax, 6
jne case.0x140053c38.2
dec ebx
cmp ebx, 0xa4
ja case.0x140053c38.2
lea rax, [0x1401a8244]
movsxd rcx, dword [rax + rbx*4]
add rcx, rax
jmp rcx
mov dword [rsi + 0x14], 3
jmp 0x140053c96
mov eax, dword [rsp + 0x9c]
cmp eax, 1
je 0x140053c7c
cmp eax, 2
jne case.0x140053c38.2
cmp byte [rsp + 0x1ae], 1
jne 0x140053c68
cmp word [0x1401d7f38], 9
je case.0x140053c38.1
cmp word [rsp + 0x1ac], 0
js case.0x140053c38.2
mov dword [rsi + 0x14], 2
jmp 0x140053c96
test byte [rsp + 0x1ad], 2
jne case.0x140053c38.2
mov dword [rsi + 0x14], 1
jmp 0x140053c96
mov dword [rsi + 0x14], 0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140152280
mov rax, rsi
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsi + 0x14], 4
jmp 0x140053c96
mov dword [rsi + 0x14], 5
jmp 0x140053c96
lea rcx, [0x1401d7f68]
call fcn.140150ec0
cmp dword [0x1401d7f68], 0xffffffff
jne 0x1400536c5
xorps xmm0, xmm0
movups xmmword [0x1401d7f58], xmm0
movups xmmword [0x1401d7f48], xmm0
movups xmmword [0x1401d7f38], xmm0
lea rcx, [0x1401d7f38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401d7f68]
call fcn.140150f58
jmp 0x1400536c5
lea rcx, [0x1401d7f30]
call fcn.140150ec0
cmp dword [0x1401d7f30], 0xffffffff
jne 0x140053ac0
lea rcx, [0x14019f302]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401d7f28], rax
lea rcx, [0x1401d7f30]
call fcn.140150f58
jmp 0x140053ac0
int3
int3