Function at 0x1400b5a80
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rax, qword [0x140250908]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r9
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x30], edx
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r14, qword [rbp + 0xe8]
mov r8, qword [rbp + 0xf0]
mov esi, dword [rbp + 0xf8]
xor edx, edx
call fcn.140007e40
nop
lea rax, vtable.CFileDialog.0
mov qword [rbx], rax
lea rdi, [rbx + 0x160]
call fcn.14000b930
mov rcx, rax
xor r12d, r12d
mov eax, r12d
test rcx, rcx
setne al
test eax, eax
jne 0x1400b5b19
mov ecx, 0x80004005
call fcn.140002d70
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
lea r15, [rbx + 0x580]
mov qword [r15], r12
mov qword [rbx + 0x588], r12
mov r12d, 0x114
mov r8d, r12d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140186f50
mov dword [rsp + 0x50], r12d
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x54], 6
jb 0x1400b5b71
mov eax, dword [rbp + 0x100]
mov dword [rbx + 0x138], eax
jmp 0x1400b5b78
and dword [rbx + 0x138], 0
and dword [rbx + 0x13c], 0
and dword [rbx + 0x140], 0
mov eax, 0x98
test esi, esi
cmove esi, eax
mov r12d, esi
mov ecx, esi
call fcn.14018abcc
mov qword [rbx + 0x130], rax
test rax, rax
jne 0x1400b5bac
call fcn.14000b28c
int3
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.140186f50
lea r12, [rbx + 0x368]
xor edx, edx
mov word [r12], dx
lea rcx, [rbx + 0x168]
mov word [rcx], dx
mov qword [rbx + 0x570], rdx
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x158], eax
mov dword [rbx + 0x578], edx
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [rbx + 0xe8], eax
mov rax, qword [rbx + 0x130]
mov dword [rax], esi
mov rax, qword [rbx + 0x130]
mov qword [rax + 0x30], r12
mov rax, qword [rbx + 0x130]
mov dword [rax + 0x38], 0x104
mov rax, qword [rbx + 0x130]
mov rdx, qword [rsp + 0x38]
mov qword [rax + 0x68], rdx
mov rax, qword [rbx + 0x130]
mov qword [rax + 0x40], rcx
mov rax, qword [rbx + 0x130]
mov dword [rax + 0x48], 0x100
mov rcx, qword [rbx + 0x130]
mov eax, dword [rbp + 0xe0]
or eax, 0x80020
or dword [rcx + 0x60], eax
test byte [rbp + 0xe0], 0x40
je 0x1400b5c6c
mov rax, qword [rbx + 0x130]
btr dword [rax + 0x60], 0x17
call fcn.140019538
mov r9, qword [rax + 0x18]
mov rax, qword [rbx + 0x130]
mov qword [rax + 0x10], r9
mov rax, qword [rbx + 0x130]
lea rcx, [0x1400d5eec]
mov qword [rax + 0x78], rcx
xor esi, esi
test r13, r13
je 0x1400b5cd7
or r9, 0xffffffffffffffff
mov r8, r13
mov edx, 0x104
mov rcx, r12
call fcn.14018b0e8
test eax, eax
je 0x1400b5cd7
cmp eax, 0xc
je 0x1400b5cd1
cmp eax, 0x16
je 0x1400b5ccb
cmp eax, 0x22
je 0x1400b5ccb
cmp eax, 0x50
je 0x1400b5cd7
call fcn.14000b268
int3
call fcn.14000b268
int3
call fcn.14000b28c
int3
mov r12d, 1
test r14, r14
je 0x1400b5d3f
mov rcx, r14
call fcn.14018acd8
mov r8d, eax
mov rdx, r14
mov rcx, rdi
call fcn.140004ba0
mov rax, qword [rdi]
mov ecx, r12d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x1400b5d12
xor edx, edx
mov rcx, rdi
call fcn.140002b70
mov r14d, 0x7c
mov rcx, qword [rdi]
jmp 0x1400b5d24
mov word [rax], si
lea rcx, [rax + 2]
mov edx, r14d
call fcn.140187d08
test rax, rax
jne 0x1400b5d1d
mov rcx, qword [rdi]
mov rax, qword [rbx + 0x130]
mov qword [rax + 0x18], rcx
cmp dword [rbx + 0x138], r12d
jne 0x1400b5e1c
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x1400b5e16
lea rax, vtable.CFileDialog::XFileDialogEvents.0
mov qword [r15], rax
lea rax, vtable.CFileDialog::XFileDialogControlEvents.0
mov qword [rbx + 0x588], rax
lea rax, [rsp + 0x30]
lea r9, [0x1401d2398]
mov r8d, r12d
xor edx, edx
mov qword [rsp + 0x20], rax
cmp dword [rbx + 0x158], esi
lea rcx, [0x1402089b8]
jne 0x1400b5da5
lea rcx, [0x1402089c8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1400b5e16
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rsp + 0x38]
lea rdx, [0x1401d23a8]
call qword [rax]
mov ecx, esi
test eax, eax
setns cl
test ecx, ecx
jne 0x1400b5dd6
call fcn.14000b268
int3
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
lea r8, [rbx + 0x144]
mov rdx, r15
call qword [rax + 0x38]
mov ecx, esi
test eax, eax
setns cl
test ecx, ecx
jne 0x1400b5dfc
call fcn.14000b268
int3
mov rax, qword [rsp + 0x30]
mov qword [rbx + 0x148], rax
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0x150], rax
jmp 0x1400b5e1c
mov dword [rbx + 0x138], esi
mov rax, rbx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401842b0
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret