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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rax, qword [0x1401c1028]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
lea rcx, [rsp + 0x98]
mov r8d, 0x118
xor edx, edx
call fcn.14014ead0
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.14014b4a8
mov rdi, rax
mov rsi, rax
mov r14d, dword [rsp + 0x3c]
mov eax, dword [0x1401d2ff0]
mov ecx, dword [0x1401d0348]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053a08
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 eax, dword [rsp + 0x98]
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x9c]
mov dword [rsi + 8], eax
mov eax, dword [rsp + 0xa0]
mov dword [rsi + 0xc], eax
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, [0x1401a3310]
xor ebx, ebx
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14005356a
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14005349e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
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, [0x1401a336a]
xor ebx, ebx
lea r9, [rsp + 0x40]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140053528
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor ebx, ebx
cmp dword [rsp + 0x1b0], 4
mov ecx, 0
jne 0x140053522
mov ecx, dword [rsp + 0x90]
cmp eax, 2
cmovb ebx, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140053d80
movzx eax, byte [rsp + 0x87]
test al, al
jns 0x14005354f
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x14005356a
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x70]
call fcn.140053d80
movzx edx, byte [rsp + 0x87]
test dl, dl
js 0x14005357d
lea rcx, [rsp + 0x70]
jmp 0x14005359b
mov rdx, qword [rsp + 0x78]
test rdx, rdx
js 0x140053aa8
mov rcx, qword [rsp + 0x70]
je 0x14005359b
test rcx, rcx
je 0x140053aab
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
lea r8, [rsp + 0x40]
call fcn.140064ce0
mov r15, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rsp + 0x4f]
mov qword [rsp + 0x1b7], rax
movzx ebp, byte [rsp + 0x57]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400535fb
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 0x14005361f
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401b4100]
cmp byte [rsp + 0x87], 0
jns 0x140053633
mov rcx, qword [rsp + 0x70]
call fcn.14014b4e4
mov dword [rsi + 0x10], ebx
cmp byte [rsi + 0x37], 0
jns 0x140053648
lea rax, [rdi + 0x20]
mov rcx, qword [rax]
call fcn.14014b4e4
mov qword [rsi + 0x20], r15
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b7]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x2f], rcx
mov byte [rsi + 0x37], bpl
mov ecx, dword [rsi + 4]
mov eax, 0x16
cmp ecx, 0xb
je 0x1400537c1
cmp ecx, 0xa
jne 0x140053783
mov ecx, dword [rsi + 0xc]
mov eax, 0x18
cmp ecx, 0x5866
ja 0x1400537c1
mov eax, 0x17
cmp ecx, 0x585c
ja 0x1400537c1
mov eax, 0x16
cmp ecx, 0x55ef
ja 0x1400537c1
mov eax, 0x15
cmp ecx, 0x4f7b
ja 0x1400537c1
mov eax, 0x14
cmp ecx, 0x4a64
ja 0x1400537c1
mov eax, 0x13
je 0x1400537c1
mov eax, 0x12
cmp ecx, 0x4a62
ja 0x1400537c1
mov eax, 0x11
je 0x1400537c1
mov eax, 0x10
cmp ecx, 0x4a60
ja 0x1400537c1
mov eax, 0xf
cmp ecx, 0x47ba
ja 0x1400537c1
mov eax, 0xe
je 0x1400537c1
mov eax, 0xd
cmp ecx, 0x4562
ja 0x1400537c1
mov eax, 0xc
cmp ecx, 0x42ed
ja 0x1400537c1
mov eax, 0xb
cmp ecx, 0x3faa
ja 0x1400537c1
mov eax, 0xa
cmp ecx, 0x3ad6
ja 0x1400537c1
mov eax, 9
cmp ecx, 0x3838
ja 0x1400537c1
cmp ecx, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x1400537c1
cmp ecx, 7
jb 0x140053794
call fcn.1400814b0
mov eax, 0x19
jmp 0x1400537c1
mov edx, dword [rsi + 8]
cmp ecx, 6
jne 0x1400537ac
lea ecx, [rdx + 3]
cmp edx, 3
mov eax, 6
cmovb eax, ecx
jmp 0x1400537c1
xor eax, eax
test edx, edx
je 0x1400537c1
cmp ecx, 5
jne 0x1400537c1
xor eax, eax
cmp edx, 1
setne al
inc eax
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
mov eax, dword [0x1401d2fb8]
mov ecx, dword [0x1401d0348]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140053a57
mov rax, qword [0x1401d2fb0]
test rax, rax
je 0x140053847
mov word [rsp + 0x70], 0
mov word [rsp + 0x58], 0
lea rdx, [rsp + 0x70]
lea r8, [rsp + 0x58]
mov rcx, rbx
call qword [0x1401b4100]
test eax, eax
je 0x1400538b9
movzx eax, word [rsp + 0x70]
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140053878
mov edx, 0x15
bt edx, ecx
jae 0x140053878
mov eax, 2
jmp 0x140053898
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1400538b9
cmp dword [rsp + 0x70], 0
je 0x14005388a
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x1400538b9
test eax, eax
je 0x140053898
cmp eax, 0x14c
jne 0x140053893
mov eax, 1
jmp 0x140053898
mov dword [rsi + 0x60], 0
jmp 0x1400538b9
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 rbx, [rsp + 0xa8]
mov rcx, rbx
call fcn.14016c344
test rax, rax
js 0x140053aa5
add rdi, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x70]
mov rcx, rbx
mov rdx, rax
call fcn.140064ce0
cmp byte [rsi + 0x4f], 0
jns 0x14005391e
mov rcx, qword [rdi]
call fcn.14014b4e4
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rdi], xmm0
mov eax, dword [0x1401d2fe0]
mov dword [rsi + 0x50], eax
mov eax, dword [0x1401d2fe8]
mov qword [rsi + 0x58], rax
mov eax, dword [rsp + 0x98]
cmp eax, 5
je 0x140053980
cmp eax, 0xa
je 0x14005395b
cmp eax, 6
jne case.0x140053975.2
dec r14d
cmp r14d, 0xa4
ja case.0x140053975.2
lea rax, [0x1401a33c4]
movsxd rcx, dword [rax + r14*4]
add rcx, rax
jmp rcx
mov dword [rsi + 0x14], 3
jmp 0x1400539d3
mov eax, dword [rsp + 0x9c]
cmp eax, 1
je 0x1400539b9
cmp eax, 2
jne case.0x140053975.2
cmp byte [rsp + 0x1ae], 1
jne 0x1400539a5
cmp word [0x1401d2fc0], 9
je case.0x140053975.1
cmp word [rsp + 0x1ac], 0
js case.0x140053975.2
mov dword [rsi + 0x14], 2
jmp 0x1400539d3
test byte [rsp + 0x1ad], 2
jne case.0x140053975.2
mov dword [rsi + 0x14], 1
jmp 0x1400539d3
mov dword [rsi + 0x14], 0
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.14014c9b0
mov rax, rsi
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
mov dword [rsi + 0x14], 4
jmp 0x1400539d3
mov dword [rsi + 0x14], 5
jmp 0x1400539d3
lea rcx, [0x1401d2ff0]
call fcn.14014b600
cmp dword [0x1401d2ff0], 0xffffffff
jne 0x1400533d5
xorps xmm0, xmm0
movups xmmword [0x1401d2fe0], xmm0
movups xmmword [0x1401d2fd0], xmm0
movups xmmword [0x1401d2fc0], xmm0
lea rcx, [0x1401d2fc0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401d2ff0]
call fcn.14014b698
jmp 0x1400533d5
lea rcx, [0x1401d2fb8]
call fcn.14014b600
cmp dword [0x1401d2fb8], 0xffffffff
jne 0x1400537f1
lea rcx, [0x14019a392]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401d2fb0], rax
lea rcx, [0x1401d2fb8]
call fcn.14014b698
jmp 0x1400537f1
int3
int3
int3