Function at 0x1400138b0
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2f8
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x2f0], rax
mov eax, dword [0x1402082c8]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140013924
lea rsi, [0x1402082c0]
mov rcx, qword [rsp + 0x2f0]
xor rcx, rsp
call fcn.1400d4e20
mov rax, rsi
add rsp, 0x2f8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402082c8]
call fcn.1400d2c50
cmp dword [0x1402082c8], 0xffffffff
jne 0x1400138f6
lea rsi, [rsp + 0x1c8]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.14010c6a0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x1c4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x3c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x88
call fcn.1400d2b88
mov rsi, rax
mov r13, rax
mov r15d, dword [rdi]
mov eax, dword [0x140208310]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140013a05
lea rcx, [0x140208310]
call fcn.1400d2c50
cmp dword [0x140208310], 0xffffffff
jne 0x140013a05
xorps xmm0, xmm0
movups xmmword [0x140208300], xmm0
movups xmmword [0x1402082f0], xmm0
movups xmmword [0x1402082e0], xmm0
lea rcx, [0x1402082e0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x140208310]
call fcn.1400d2be4
mov dword [r13], 0
xorps xmm0, xmm0
movups xmmword [r13 + 0x20], xmm0
movups xmmword [r13 + 0x30], xmm0
movups xmmword [r13 + 0x40], xmm0
movabs rax, 0x300000004
mov qword [r13 + 0x60], rax
movups xmmword [r13 + 0x68], xmm0
xor r14d, r14d
mov qword [r13 + 0x78], r14
mov dword [r13 + 0x80], r15d
mov eax, dword [rsp + 0x1c8]
mov dword [r13 + 4], eax
mov eax, dword [rsp + 0x1cc]
mov dword [r13 + 8], eax
mov eax, dword [rsp + 0x1d0]
mov dword [r13 + 0xc], eax
mov qword [rsp + 0xa0], r14
movaps xmmword [rsp + 0x90], xmm0
movabs rax, 0xaaaaaaaa00000000
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x40]
mov qword [rax], r14
mov qword [rsp + 0x20], rax
lea rdx, [0x1401d63e0]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140013b72
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x140013e7f
lea r9, [rsp + 0x40]
mov rcx, qword [r9]
mov qword [rsp + 0x58], rcx
xor r14d, r14d
mov dword [rsp + 0x60], r14d
mov eax, 4
mov dword [r9], eax
lea rdx, [rsp + 0x70]
mov dword [rdx], eax
lea rax, [rsp + 0x2e0]
mov dword [rax], r14d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [0x1401d643a]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013b3b
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r14d, r14d
cmp dword [rsp + 0x70], 4
mov ecx, 0
jne 0x140013b34
mov ecx, dword [rsp + 0x2e0]
cmp eax, 2
cmovb r14d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x58]
lea rdi, [rsp + 0x90]
mov r8, rdi
call fcn.140014560
movsx rax, byte [rdi + 0x17]
test rax, rax
jns 0x140013b69
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140013f07
lea r12, [rsi + 0x20]
add rsi, 0x38
lea rbx, [rsp + 0x90]
movsx rcx, byte [rbx + 0x17]
test rcx, rcx
cmovs rcx, qword [rbx + 8]
mov rax, qword [rbx]
cmovns rax, rbx
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rcx
test rcx, rcx
js 0x140014495
sete cl
test rax, rax
setne al
or al, cl
je 0x140014495
lea rdi, [rsp + 0x40]
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1400c70a0
mov rbp, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x2e0], rax
mov rax, qword [rdi + 0xf]
mov qword [rsp + 0x2e7], rax
mov dil, byte [rdi + 0x17]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140013c0c
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
jne 0x140013ef1
cmp byte [rsp + 0xa7], 0
js 0x140013e8a
mov dword [r13 + 0x10], r14d
cmp byte [r13 + 0x37], 0
js 0x140013e9c
mov qword [r13 + 0x20], rbp
mov rax, qword [rsp + 0x2e0]
mov rcx, qword [rsp + 0x2e7]
mov qword [r13 + 0x28], rax
mov qword [r13 + 0x2f], rcx
mov byte [r13 + 0x37], dil
mov edi, dword [r13 + 0xc]
mov ebp, dword [r13 + 4]
mov eax, 0x16
cmp ebp, 0xa
jne 0x14001412d
cmp edi, 0x5866
ja 0x140013e4d
cmp edi, 0x585c
ja 0x140013e57
cmp edi, 0x55ef
ja 0x140013cc5
cmp edi, 0x4f7b
ja 0x140013e61
cmp edi, 0x4a64
ja 0x140013e6b
je 0x140013e75
mov eax, 0x12
cmp edi, 0x4a62
jbe 0x14001408d
mov dword [r13], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov eax, dword [0x1402082d8]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140013d38
lea rcx, [0x1402082d8]
call fcn.1400d2c50
cmp dword [0x1402082d8], 0xffffffff
jne 0x140013d38
lea rcx, [0x1401cd258]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402082d0], rax
lea rcx, [0x1402082d8]
call fcn.1400d2be4
mov rax, qword [0x1402082d0]
test rax, rax
je 0x140013f25
xor ecx, ecx
lea rdx, [rsp + 0x90]
mov word [rdx], cx
lea r8, [rsp + 0x58]
mov word [r8], cx
mov rcx, rdi
call qword [0x1401e8220]
test eax, eax
je 0x140013d9e
movzx eax, word [rsp + 0x90]
test eax, eax
jne 0x140013eb7
mov dword [r13 + 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 [r13 + 0x64], edx
lea rcx, [rsp + 0x1d8]
movzx eax, word [rcx + 0x100]
mov dword [r13 + 0x18], eax
movzx eax, word [rcx + 0x102]
mov dword [r13 + 0x1c], eax
lea rdi, [rsp + 0x58]
mov qword [rdi], rcx
call fcn.1400d3138
mov qword [rdi + 8], rax
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.1400c70a0
cmp byte [r13 + 0x4f], 0
js 0x140013eaa
mov rax, qword [rsp + 0xa0]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [rsi], xmm0
mov eax, dword [0x140208300]
mov dword [r13 + 0x50], eax
mov eax, dword [0x140208308]
mov qword [r13 + 0x58], rax
mov eax, dword [rsp + 0x1c8]
cmp eax, 0xa
jne 0x140014025
cmp r15d, 4
jne 0x140013f6e
mov dword [r13 + 0x14], 3
mov qword [0x1402082c0], r13
lea rcx, [0x1402082c8]
call fcn.1400d2be4
jmp 0x1400138f6
mov eax, 0x18
jmp 0x140013cc5
mov eax, 0x17
jmp 0x140013cc5
mov eax, 0x15
jmp 0x140013cc5
mov eax, 0x14
jmp 0x140013cc5
mov eax, 0x13
jmp 0x140013cc5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140013aca
mov rcx, qword [rsp + 0x90]
call fcn.1400d2b80
jmp 0x140013c31
mov rcx, qword [r12]
call fcn.1400d2b80
jmp 0x140013c40
mov rcx, qword [rsi]
call fcn.1400d2b80
jmp 0x140013de8
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140013ecc
mov edx, 0x15
bt edx, ecx
jb 0x140013ee7
cmp eax, 0x14c
jne 0x140013edd
mov eax, 1
jmp 0x140013d7b
mov eax, 3
jmp 0x140013d7b
mov eax, 2
jmp 0x140013d7b
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x1401e8220]
jmp 0x140013c23
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x90]
call fcn.140014560
jmp 0x140013b72
lea rdx, [rsp + 0x90]
mov dword [rdx], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140013d9e
cmp dword [rsp + 0x90], 0
je 0x140013f61
movabs rax, 0x100000001
mov qword [r13 + 0x60], rax
jmp 0x140013d9e
mov dword [r13 + 0x60], 0
jmp 0x140013d9e
cmp r15d, 0x30
ja 0x140013fb2
mov eax, r15d
mov ecx, 0x206f780
bt rcx, rax
jae 0x140013f8f
mov dword [r13 + 0x14], 2
jmp 0x140013e35
mov ecx, 0x8010040
bt rcx, rax
jb 0x140013e2d
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x140014080
lea eax, [r15 - 0x46]
cmp eax, 0x3c
ja 0x140013fec
movabs rcx, 0x1980000000004005
bt rcx, rax
jb 0x140013e2d
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x140013fec
mov dword [r13 + 0x14], 4
jmp 0x140013e35
add r15d, 0xffffff74
cmp r15d, 0x33
ja 0x140014033
movabs rax, 0x9000000000003
bt rax, r15
jb 0x140013e2d
mov eax, 0x3000000
bt rax, r15
jae 0x140014033
mov dword [r13 + 0x14], 5
jmp 0x140013e35
cmp eax, 5
je 0x140014040
cmp eax, 6
je 0x140013e23
mov dword [r13 + 0x14], 0
jmp 0x140013e35
mov eax, dword [rsp + 0x1cc]
cmp eax, 1
je 0x140014076
cmp eax, 2
jne 0x140014033
cmp byte [rsp + 0x2de], 1
jne 0x140014065
cmp word [0x1402082e0], 9
je 0x140014080
cmp word [rsp + 0x2dc], 0
jns 0x140013f82
jmp 0x140014033
test byte [rsp + 0x2dd], 2
jne 0x140014033
mov dword [r13 + 0x14], 1
jmp 0x140013e35
mov eax, 0x11
je 0x140013cc5
mov eax, 0x10
cmp edi, 0x4a60
ja 0x140013cc5
mov eax, 0xf
cmp edi, 0x47ba
ja 0x140013cc5
mov eax, 0xe
je 0x140013cc5
mov eax, 0xd
cmp edi, 0x4562
ja 0x140013cc5
mov eax, 0xc
cmp edi, 0x42ed
ja 0x140013cc5
mov eax, 0xb
cmp edi, 0x3faa
ja 0x140013cc5
mov eax, 0xa
cmp edi, 0x3ad6
ja 0x140013cc5
mov eax, 9
cmp edi, 0x3838
ja 0x140013cc5
cmp edi, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x140013cc5
cmp ebp, 0xb
je 0x140013cc5
mov r14d, dword [r13 + 8]
cmp ebp, 7
jae 0x14001417f
cmp ebp, 6
jne 0x140014159
lea ecx, [r14 + 3]
cmp r14d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140013cc5
cmp ebp, 5
setne cl
test r14d, r14d
sete dl
xor eax, eax
or dl, cl
jne 0x140013cc5
xor eax, eax
cmp r14d, 1
setne al
inc eax
jmp 0x140013cc5
mov ecx, 2
call fcn.140076b30
test al, al
je 0x140014220
lea rdx, str....._basewinwindows_version.cc
lea rcx, [rsp + 0x90]
mov r8d, 0x1b6
mov r9d, 2
call fcn.140134ae0
lea rcx, [rsp + 0xa0]
lea rdx, str.Unsupported_version:
mov r8d, 0x15
call fcn.1400d0590
mov rcx, rax
mov edx, ebp
call fcn.140021150
lea r12, [0x1401cbf76]
mov r8d, 1
mov rcx, rax
mov rdx, r12
call fcn.1400d0590
mov rcx, rax
mov edx, r14d
call fcn.140021150
mov r8d, 1
mov rcx, rax
mov rdx, r12
call fcn.1400d0590
mov rcx, rax
mov edx, edi
call fcn.140021150
lea rcx, [rsp + 0x90]
call fcn.140134e30
movabs r12, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2e0], r12
mov rcx, rbx
mov edx, ebp
call fcn.140002010
movsx rax, byte [rsp + 0xa7]
test rax, rax
jns 0x14001425a
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rax
test rax, rax
js 0x140014495
sete al
test rbx, rbx
setne cl
or cl, al
je 0x140014495
mov eax, dword [0x140208320]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140014497
mov rdx, qword [0x140208318]
lea rcx, [rsp + 0x2e0]
lea r8, [rsp + 0x58]
call fcn.140001f50
cmp byte [rsp + 0xa7], 0
jns 0x1400142d3
mov rcx, qword [rsp + 0x90]
call fcn.1400d2b80
mov qword [rsp + 0x88], r12
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov edx, r14d
call fcn.140002010
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x140014308
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rax
test rax, rax
js 0x140014495
sete al
test rbx, rbx
setne cl
or cl, al
je 0x140014495
mov eax, dword [0x140208330]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400144d9
mov rdx, qword [0x140208328]
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x40]
call fcn.140001f50
cmp byte [rsp + 0xa7], 0
jns 0x140014381
mov rcx, qword [rsp + 0x90]
call fcn.1400d2b80
mov qword [rsp + 0x80], r12
lea rbx, [rsp + 0x90]
mov rcx, rbx
mov edx, edi
call fcn.140002010
movsx rax, byte [rbx + 0x17]
test rax, rax
jns 0x1400143b5
mov rax, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rax
test rax, rax
js 0x140014495
sete al
test rbx, rbx
setne cl
or cl, al
je 0x140014495
mov eax, dword [0x140208340]
mov ecx, dword [0x1402053a0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001451b
mov rdx, qword [0x140208338]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x70]
call fcn.140001f50
cmp byte [rsp + 0xa7], 0
jns 0x14001442e
mov rcx, qword [rsp + 0x90]
call fcn.1400d2b80
lea rdx, str.MajorMinorBuildToVersion
lea r8, str....._basewinwindows_version.cc
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov r9d, 0x1bc
call fcn.1400916b0
movabs rdx, 0x141dd76000
mov rcx, rdi
call fcn.140137af0
lea rcx, [rsp + 0x80]
call fcn.140001f10
lea rcx, [rsp + 0x88]
call fcn.140001f10
lea rcx, [rsp + 0x2e0]
call fcn.140001f10
mov eax, 0x19
jmp 0x140013cc5
ud2
lea rcx, [0x140208320]
call fcn.1400d2c50
cmp dword [0x140208320], 0xffffffff
jne 0x1400142a3
lea rcx, str.WindowsVersion_major
mov edx, 0x20
call fcn.140075c70
mov qword [0x140208318], rax
lea rcx, [0x140208320]
call fcn.1400d2be4
jmp 0x1400142a3
lea rcx, [0x140208330]
call fcn.1400d2c50
cmp dword [0x140208330], 0xffffffff
jne 0x140014351
lea rcx, str.WindowsVersion_minor
mov edx, 0x20
call fcn.140075c70
mov qword [0x140208328], rax
lea rcx, [0x140208330]
call fcn.1400d2be4
jmp 0x140014351
lea rcx, [0x140208340]
call fcn.1400d2c50
cmp dword [0x140208340], 0xffffffff
jne 0x1400143fe
lea rcx, str.WindowsVersion_build
mov edx, 0x20
call fcn.140075c70
mov qword [0x140208338], rax
lea rcx, [0x140208340]
call fcn.1400d2be4
jmp 0x1400143fe