Function at 0x14004a850
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov r13d, r8d
mov rsi, rdx
mov rbx, rcx
lea rax, [0x140264c98]
mov qword [rcx], rax
mov edx, 0xa
add rcx, 0x30
call fcn.1401e74bc
lea r11, [0x140264df0]
mov qword [rbx + 0x30], r11
call fcn.1401e9268
mov rdx, rax
xor r15d, r15d
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004a8c1
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x68], rax
or rbp, 0xffffffffffffffff
mov dword [rbx + 0x74], ebp
mov dword [rbx + 0x78], r15d
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov dword [rbx + 0x18], r15d
mov dword [rbx + 0x1c], r15d
mov dword [rbx + 0x24], 0x1e
mov dword [rbx + 0x28], r15d
mov dword [rbx + 0x20], r15d
mov dword [rbx + 0x2c], r15d
xor eax, eax
mov rcx, rbp
lea rdi, [0x140260b08]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140260b08]
lea rcx, [rbx + 0x68]
call fcn.140007720
mov dword [rbx + 0x70], ebp
lea rax, [0x140264678]
mov qword [rbx], rax
call fcn.1401e9268
mov rdx, rax
mov ecx, r15d
test rax, rax
setne cl
test ecx, ecx
jne 0x14004a953
mov ecx, 0x80004005
call fcn.140003c70
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbx + 0x88], rax
lea r14, [0x140272878]
mov qword [rbx + 0x90], r14
mov qword [rbx + 0x98], r15
mov qword [rbx + 0xa0], r15
mov dword [rbx + 0xa8], r15d
mov dword [rbx + 0xac], r15d
mov dword [rbx + 0xb0], r15d
mov dword [rbx + 0xb4], r15d
mov byte [rbx + 0xb8], 0
mov byte [rbx + 0xb9], 0
mov dword [rbx + 0xbc], ebp
mov qword [rbx + 0xc0], r15
mov dword [rbx + 0xc8], r15d
mov qword [rbx + 0xd0], r15
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140310d90], 1
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rdi, [0x140272838]
mov qword [rbx + 0x90], rdi
mov qword [rbx + 0xd8], r15
mov qword [rbx + 0xe0], r14
mov qword [rbx + 0xe8], r15
mov qword [rbx + 0xf0], r15
mov dword [rbx + 0xf8], r15d
mov dword [rbx + 0xfc], r15d
mov dword [rbx + 0x100], r15d
mov dword [rbx + 0x104], r15d
mov byte [rbx + 0x108], 0
mov byte [rbx + 0x109], 0
mov dword [rbx + 0x10c], ebp
mov qword [rbx + 0x110], r15
mov dword [rbx + 0x118], r15d
mov qword [rbx + 0x120], r15
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140310d90], 1
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0xe0], rdi
mov qword [rbx + 0x128], r15
mov qword [rbx + 0x130], r14
mov qword [rbx + 0x138], r15
mov qword [rbx + 0x140], r15
mov dword [rbx + 0x148], r15d
mov dword [rbx + 0x14c], r15d
mov dword [rbx + 0x150], r15d
mov dword [rbx + 0x154], r15d
mov byte [rbx + 0x158], 0
mov byte [rbx + 0x159], 0
mov dword [rbx + 0x15c], ebp
mov qword [rbx + 0x160], r15
mov dword [rbx + 0x168], r15d
mov qword [rbx + 0x170], r15
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140310d90], 1
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x130], rdi
mov qword [rbx + 0x178], r15
mov qword [rbx + 0x180], r14
mov qword [rbx + 0x188], r15
mov qword [rbx + 0x190], r15
mov dword [rbx + 0x198], r15d
mov dword [rbx + 0x19c], r15d
mov dword [rbx + 0x1a0], r15d
mov dword [rbx + reloc.OLEAUT32.dll_OleTranslateColor], r15d
mov byte [rbx + 0x1a8], 0
mov byte [rbx + 0x1a9], 0
mov dword [rbx + 0x1ac], ebp
mov qword [rbx + 0x1b0], r15
mov dword [rbx + 0x1b8], r15d
mov qword [rbx + 0x1c0], r15
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [0x140310d90], 1
lea rcx, [0x140310d68]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbx + 0x180], rdi
mov qword [rbx + 0x1c8], r15
mov qword [rbx + 0x10], rsi
mov dword [rbx + 0x18], r13d
xor eax, eax
mov rcx, rbp
lea rdi, [0x140260b08]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [0x140260b08]
lea rcx, [rbx + 0x88]
call fcn.140007720
xor eax, eax
mov dword [rbx + 0x80], eax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14004af48
add rcx, 0x238
lea rdx, [rsp + 0x88]
call fcn.1401bdd30
bt dword [rsi + 0xbc], 0xc
jae 0x14004aca9
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x10000
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x800
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x200000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 8
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x80000000
mov eax, dword [0x140311024]
test eax, eax
jne 0x14004ac85
mov dword [0x140311020], 0x114
lea rcx, [0x140311020]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [0x140311024]
cmp eax, 6
jne 0x14004aca9
cmp dword [0x140311028], 1
jne 0x14004aca9
cmp word [rsi + 0x408], 0x2a34
jb 0x14004aca9
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x400000
test byte [rsi + 0xe8], 0x20
je 0x14004acb9
or dword [rbx + 0x80], 0x40
cmp word [rsi + 0x40e], 0x103c
jne 0x14004acd8
cmp dword [rsi + 0x1aa0], 1
jne 0x14004acd8
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x2000
mov ecx, dword [rbx + 0x18]
cmp ecx, 0x42
jg 0x14004ad11
cmp ecx, 0x42
je 0x14004ad04
cmp ecx, 6
jl 0x14004ad79
cmp ecx, 7
jle 0x14004ad60
cmp ecx, 8
je 0x14004ad28
cmp ecx, 0x12
je 0x14004ad71
cmp ecx, 0x18
je 0x14004ad28
jmp 0x14004ad79
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
jmp 0x14004ad79
sub ecx, 0x56
je 0x14004ad71
sub ecx, 8
je 0x14004ad60
sub ecx, 0x7d
je 0x14004ad28
cmp ecx, 0xd5
jne 0x14004ad79
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 4
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x800
cmp dword [rbx + 0x18], 0x18
je 0x14004ad57
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x2000
or dword [rbx + 0x80], 4
jmp 0x14004ad79
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20
or dword [rbx + 0x80], 1
jmp 0x14004ad79
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x20
cmp dword [rbx + 0x18], 0xdb
jne 0x14004ad89
or dword [rbx + 0x80], 2
movzx ecx, word [rsi + 0x40a]
shl ecx, 0x10
movzx eax, word [rsi + 0x408]
or ecx, eax
cmp ecx, 0x103c2a95
ja 0x14004ae4d
cmp ecx, 0x103c2a95
je 0x14004aea7
cmp ecx, 0x103c280c
ja 0x14004ae16
cmp ecx, 0x103c280c
je 0x14004af1e
cmp ecx, 0x103c12ff
je 0x14004af1e
cmp ecx, 0x103c1305
jbe 0x14004af26
cmp ecx, 0x103c1308
jbe 0x14004af1e
cmp ecx, 0x103c2001
jne 0x14004af26
or dword [rbx + 0x80], 0x10
mov rax, qword [rbx + 0x10]
or dword [rax + 0xc], 0x4000000
or dword [rbx + 0x80], 0x20
jmp 0x14004af26
sub ecx, 0x103c2a43
je 0x14004ae3d
sub ecx, 0x13
je 0x14004ae31
cmp ecx, 0x38
je 0x14004aec9
jmp 0x14004af26
or dword [rbx + 0x80], 8
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 0x4000
jmp 0x14004af26
cmp ecx, 0x103c2aa1
ja 0x14004aeeb
cmp ecx, 0x103c2aa1
je 0x14004aec9
sub ecx, 0x103c2a9a
je 0x14004aea7
sub ecx, 2
je 0x14004ae92
cmp ecx, 4
jne 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
and dword [rax + 8], 0xffffdfff
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 4
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x800000
or dword [rbx + 0x80], 0x80
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x8000000
jmp 0x14004af26
cmp ecx, 0x103c3010
jb 0x14004af26
cmp ecx, 0x103c3016
jbe 0x14004af1e
cmp ecx, 0x103c3045
je 0x14004af0d
cmp ecx, 0x103c30ba
je 0x14004af1e
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 0x10], 0x20
or dword [rbx + 0x80], 0x20
jmp 0x14004af26
mov rax, qword [rbx + 0x10]
or dword [rax + 8], 8
mov rdx, qword [rsp + 0x88]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebp
add ebp, 0xffffffff
test ebp, ebp
jg 0x14004af48
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rax, rbx
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret