Function at 0x140115b88
Capabilities:
Check os version

Disassembly:
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x13c0]
mov eax, 0x14c0
call fcn.140001080
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x14f8], rbx
mov qword [rsp + 0x1500], rsi
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x13b0], rax
mov ebx, edx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, fcn.14006c2a0
mov qword [rcx], rax
xor r12d, r12d
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov qword [rcx + 0x18], r12
mov dword [rcx + 0x20], r12d
mov qword [rcx + 0x28], r12
mov qword [rcx + 0x30], r12
or dword [rcx + 0x38], 0xffffffff
mov qword [rcx + 0x40], r12
mov qword [rcx + 0x70], r12
mov qword [rcx + 0x78], r12
mov qword [rcx + 0x80], r12
mov qword [rcx + 0xa0], r12
mov qword [rcx + 0xa8], r12
add rcx, 0xb0
call fcn.140109a60
nop
lea rcx, [rdi + 0xc0]
call fcn.140109a60
nop
mov dword [rdi + 0xd0], r12d
mov dword [rdi + 0xd4], 0x80000801
mov qword [rdi + 0x2e0], r12
mov qword [rdi + 0x2e8], r12
mov dword [rdi + 0x2f8], ebx
mov dword [rsp + 0x30], r12d
mov word [rbp + 0x280], r12w
xor edx, edx
mov r8d, 0x112e
lea rcx, [rbp + 0x282]
call sub.msvcrt.dll_memset
mov word [rbp + 0x70], r12w
xor edx, edx
mov r8d, 0x206
lea rcx, [rbp + 0x72]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x50], r12d
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x54]
call sub.msvcrt.dll_memset
mov dword [rdi + 8], r12d
lea rcx, [rdi + 0x48]
mov edx, 0xfa0
call sub.KERNEL32.dll_InitializeCriticalSectionAndSpinCount
test eax, eax
jne 0x140115d12
lea rsi, [0x140148ea8]
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x140116066
lea ebx, [r12 + 1]
test byte [rax + 0x1c], bl
je 0x140116066
call sub.KERNEL32.dll_GetLastError
lea edx, [rbx + 0xa]
mov rcx, qword [0x140148ea8]
mov r9d, eax
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140116066
xor r9d, r9d
xor r8d, r8d
lea ebx, [r9 + 1]
mov edx, ebx
xor ecx, ecx
call sub.KERNEL32.dll_CreateEventW
mov qword [rdi + 0x70], rax
test rax, rax
jne 0x140115d58
lea rsi, [0x140148ea8]
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x140116066
test byte [rax + 0x1c], bl
je 0x140116066
call sub.KERNEL32.dll_GetLastError
lea edx, [rbx + 0xb]
jmp 0x140115cf3
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call sub.KERNEL32.dll_CreateEventW
mov qword [rdi + 0x78], rax
test rax, rax
jne 0x140115d9f
lea rsi, [0x140148ea8]
mov rax, qword [0x140148ea8]
cmp rax, rsi
je 0x140116066
test byte [rax + 0x1c], bl
je 0x140116066
call sub.KERNEL32.dll_GetLastError
mov edx, reloc.Cabinet.dll_FCIFlushCabinet
jmp 0x140115cf3
lea r9, [rsp + 0x30]
lea r8, [0x1401160f0]
lea rdx, [0x1400012b8]
mov r15, 0xffffffff80000002
mov rcx, r15
call fcn.1401152e0
lea rsi, [0x140148ea8]
test eax, eax
jne 0x140115e0a
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140115df6
test byte [rcx + 0x1c], 4
je 0x140115df6
lea edx, [rax + 0xe]
mov r9d, dword [rsp + 0x30]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
mov eax, dword [rsp + 0x30]
imul rcx, rax, 0x989680
mov qword [rdi + 0x90], rcx
jmp 0x140115e1b
movabs rax, 0xb0051c88000
mov qword [rdi + 0x90], rax
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x70]
lea r8, [0x140116118]
lea rdx, [0x1400012b8]
mov rcx, r15
call fcn.140115470
or r13, 0xffffffffffffffff
test eax, eax
jne 0x140115f10
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140115e72
test byte [rcx + 0x1c], 4
je 0x140115e72
lea edx, [rax + 0xf]
lea r9, [rbp + 0x70]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fcd0
lea rax, [rbp + 0x70]
mov r15, r13
inc r15
cmp word [rax + r15*2], r12w
jne 0x140115e79
add r15, rbx
mov eax, 2
mul r15
cmovo rax, r13
mov rcx, rax
call fcn.140105b34
mov qword [rdi + 0xa8], rax
test rax, rax
jne 0x140115eda
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116066
test byte [rcx + 0x1c], bl
je 0x140116066
lea edx, [rax + 0x10]
mov r9d, r15d
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140116066
lea r8, [rbp + 0x70]
mov rdx, r15
mov rcx, rax
call fcn.140044bb0
test eax, eax
jns 0x140115f10
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116066
test byte [rcx + 0x1c], bl
je 0x140116066
mov edx, SafeArrayUnlock
mov r9d, eax
jmp 0x140115ec5
mov r8d, 0x898
lea rdx, [rbp + 0x280]
mov rcx, rdi
call fcn.140118f1c
test eax, eax
je 0x140115fbe
lea rax, [rbp + 0x280]
mov r15, r13
inc r15
cmp word [rax + r15*2], r12w
jne 0x140115f37
add r15, rbx
mov eax, 2
mul r15
cmovo rax, r13
mov rcx, rax
call fcn.140105b34
mov qword [rdi + 0xa0], rax
test rax, rax
jne 0x140115f85
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116066
test byte [rcx + 0x1c], bl
je 0x140116066
lea edx, [rax + 0x12]
jmp 0x140115ec2
lea r8, [rbp + 0x280]
mov rdx, r15
mov rcx, rax
call fcn.140044bb0
test eax, eax
jns 0x140115fbe
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116066
test byte [rcx + 0x1c], bl
je 0x140116066
mov edx, SafeArrayAccessData
jmp 0x140115f0b
lea r15, [rdi + 0x98]
mov r9, r15
lea r8, [0x140116150]
lea rdx, [0x1400012b8]
mov rcx, 0xffffffff80000002
call fcn.1401152e0
test eax, eax
jne 0x140116010
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116017
test byte [rcx + 0x1c], 4
je 0x140116017
lea edx, [rax + 0x14]
mov r9d, dword [r15]
lea r8, [0x1400016a8]
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140116017
mov dword [r15], 0xffc00
mov dword [rsp + 0x50], 0x114
lea rcx, [rsp + 0x50]
call sub.KERNEL32.dll_GetVersionExW
test eax, eax
jne 0x14011604d
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [0x140148ea8]
cmp rcx, rsi
je 0x140116066
test byte [rcx + 0x1c], bl
je 0x140116066
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
jmp 0x140115cfa
cmp dword [rsp + 0x54], 6
jb 0x14011605d
jne 0x140116063
cmp dword [rsp + 0x58], 2
jae 0x140116063
mov dword [rdi + 0x2ec], ebx
mov dword [rdi + 8], ebx
cmp dword [rdi + 8], r12d
jne 0x1401160c0
mov rcx, qword [rdi + 0xa0]
test rcx, rcx
je 0x140116084
call sub.msvcrt.dll_free
mov qword [rdi + 0xa0], r12
mov rcx, qword [rdi + 0xa8]
test rcx, rcx
je 0x14011609c
call sub.msvcrt.dll_free
mov qword [rdi + 0xa8], r12
mov rcx, qword [rdi + 0x70]
test rcx, rcx
je 0x1401160ae
call sub.KERNEL32.dll_CloseHandle
mov qword [rdi + 0x70], r12
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x1401160c0
call sub.KERNEL32.dll_CloseHandle
mov qword [rdi + 0x78], r12
mov rax, rdi
mov rcx, qword [rbp + 0x13b0]
xor rcx, rsp
call fcn.140001000
lea r11, [rsp + 0x14c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret