Function at 0x140010bc0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140224ae8]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rcx
mov qword [rsp + 0x30], rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
call fcn.140014264
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x140010c2a
mov ecx, 0x80004005
call fcn.140001970
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x28], rbx
lea r12, [0x1401e2848]
mov rsi, r12
shr rsi, 0x10
test rsi, rsi
jne 0x140010c6e
movzx edi, r12w
mov ecx, edi
call fcn.140014074
test rax, rax
je 0x140010c83
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140001640
jmp 0x140010c7e
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x28]
call fcn.140001990
mov rbx, qword [rsp + 0x28]
call fcn.140014264
mov rcx, rax
mov eax, r13d
test rcx, rcx
setne al
test eax, eax
jne 0x140010ca3
mov ecx, 0x80004005
call fcn.140001970
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x20], rax
test rsi, rsi
jne 0x140010cd9
movzx edi, r12w
mov ecx, edi
call fcn.140014074
test rax, rax
je 0x140010cea
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140001640
jmp 0x140010cea
xor r8d, r8d
mov rdx, r12
lea rcx, [rsp + 0x20]
call fcn.140001990
nop
lea rcx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140010d68
mov dword [rbp - 0x79], DllRegisterServer
lea rcx, [rbp - 0x79]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x140010d68
mov rbx, qword [rsp + 0x20]
lea rcx, [rbx - 0x18]
call fcn.1400014e0
add rax, 0x18
mov qword [r15], rax
or esi, 0xffffffff
mov eax, esi
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x140010d41
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001122e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
jmp 0x14001122e
mov edi, r13d
mov eax, dword [rbp - 0x69]
or esi, 0xffffffff
test eax, eax
je 0x140011048
dec eax
je 0x140010e3e
dec eax
je 0x140010d9f
lea r8d, [rsi + 0x5e]
lea rdx, [0x1401e4700]
lea rcx, [rsp + 0x20]
call fcn.140001990
jmp 0x140010eff
mov eax, dword [rbp - 0x75]
cmp eax, 5
jne 0x140010e23
mov eax, dword [rbp - 0x71]
cmp eax, 2
jne 0x140010dd4
lea r8d, [rax + 0x21]
lea rdx, str.Microsoft_Windows_Server2003_family
lea rcx, [rsp + 0x20]
call fcn.140001990
mov edi, 0x34
mov eax, dword [rbp - 0x75]
cmp eax, 5
jne 0x140010e23
mov eax, dword [rbp - 0x71]
cmp eax, 1
jne 0x140010dfe
lea r8d, [rax + 0x13]
lea rdx, str.Microsoft_Windows_XP
lea rcx, [rsp + 0x20]
call fcn.140001990
mov edi, 0x33
mov eax, dword [rbp - 0x75]
cmp eax, 5
jne 0x140010e23
mov eax, dword [rbp - 0x71]
test eax, eax
jne 0x140010ef7
lea r8d, [rax + 0x16]
lea rdx, str.Microsoft_Windows_2000
lea rcx, [rsp + 0x20]
call fcn.140001990
mov edi, 0x32
mov eax, dword [rbp - 0x75]
cmp eax, 4
ja 0x140010ef7
mov r8d, 0x14
lea rdx, str.Microsoft_Windows_NT
jmp 0x140011055
cmp dword [rbp - 0x75], 4
jne 0x140010eff
mov eax, dword [rbp - 0x71]
test eax, eax
jne 0x140010e99
lea r8d, [rax + 0x14]
lea rdx, str.Microsoft_Windows_95
lea rcx, [rsp + 0x20]
call fcn.140001990
mov edi, 0x28
movzx eax, byte [rbp - 0x64]
cmp al, 0x43
je 0x140010e75
cmp al, 0x42
jne 0x140010e8c
mov r8d, 0x19
lea rdx, str.Microsoft_Windows_95_OSR2
lea rcx, [rsp + 0x20]
call fcn.140001990
cmp dword [rbp - 0x75], 4
jne 0x14001105f
mov eax, dword [rbp - 0x71]
cmp eax, 0xa
jne 0x140010ee2
lea r8d, [rax + 0xa]
lea rdx, str.Microsoft_Windows_98
lea rcx, [rsp + 0x20]
call fcn.140001990
mov edi, 0x19a
cmp byte [rbp - 0x64], 0x41
jne 0x140010ed5
mov r8d, 0x17
lea rdx, str.Microsoft_Windows_98_SE
lea rcx, [rsp + 0x20]
call fcn.140001990
cmp dword [rbp - 0x75], 4
jne 0x14001105f
mov eax, dword [rbp - 0x71]
cmp eax, 0x5a
jne 0x140010ef7
lea r8d, [rax - 0x36]
lea rdx, str.Microsoft_Windows_Millennium_Edition
jmp 0x140011055
test edi, edi
jne 0x14001105f
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400111e0
cmp dword [rdi + 0x10], 0
jl 0x140010f53
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140010f53
call fcn.1400014e0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140010f45
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x28], rax
jmp 0x1400111e0
mov rax, qword [rsp + 0x20]
movsxd r12, dword [rax - 0x10]
test r12d, r12d
jne 0x140010fc2
mov r12, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400111e0
cmp dword [rdi + 0x10], 0
jge 0x140010f91
cmp dword [rbx - 0xc], 0
jge 0x140010f85
mov ecx, 0x80070057
call fcn.140001970
int3
mov dword [rbx - 0x10], r13d
mov byte [rbx], 0
jmp 0x1400111e0
mov eax, esi
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140010faa
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x28], rax
jmp 0x1400111e0
mov r14d, dword [rbx - 0x10]
mov r13, qword [rsp + 0x20]
sub r13, rbx
test r12d, r12d
jns 0x140010fde
mov ecx, 0x80070057
call fcn.140001970
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r12d
or eax, ecx
jge 0x140011002
mov edx, r12d
lea rcx, [rsp + 0x28]
call fcn.140001910
mov rbx, qword [rsp + 0x28]
mov rdi, r12
movsxd rdx, dword [rbx - 0xc]
mov r9, r12
mov rcx, rbx
cmp r13, r14
ja 0x140011020
lea r8, [r13 + rbx]
call fcn.14016609c
jmp 0x14001102a
mov r8, qword [rsp + 0x20]
call fcn.140166014
cmp r12d, dword [rbx - 0xc]
jg 0x14001103d
mov dword [rbx - 0x10], r12d
mov byte [rdi + rbx], 0
jmp 0x1400111e0
mov ecx, 0x80070057
call fcn.140001970
int3
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, str.Microsoft_Win32s
lea rcx, [rsp + 0x20]
call fcn.140001990
lea r8, [rsp + 0x20]
lea rdx, [0x1401e4760]
lea rcx, [rsp + 0x38]
call fcn.140003570
nop
mov r14, qword [rax]
lea rcx, [r14 - 0x18]
lea rdi, [rbx - 0x18]
cmp rcx, rdi
je 0x1400111c1
cmp dword [rdi + 0x10], 0
jl 0x1400110c3
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x1400110c3
call fcn.1400014e0
mov rbx, rax
mov ecx, esi
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400110ba
mov rcx, qword [rdi]
mov r8, qword [rcx]
mov rdx, rdi
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbx + 0x18]
jmp 0x1400111bc
movsxd r12, dword [r14 - 0x10]
test r12d, r12d
jne 0x140011128
mov r12, qword [rdi]
cmp dword [rdi + 8], 0
je 0x1400111c1
cmp dword [rdi + 0x10], 0
jge 0x1400110fc
cmp dword [rbx - 0xc], 0
jge 0x1400110f0
mov ecx, 0x80070057
call fcn.140001970
int3
mov dword [rbx - 0x10], r13d
mov byte [rbx], 0
jmp 0x1400111c1
mov eax, esi
lock xadd dword [rdi + 0x10], eax
dec eax
test eax, eax
jg 0x140011115
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
add rax, 0x18
jmp 0x1400111bc
test r14, r14
jne 0x140011138
mov ecx, 0x80070057
call fcn.140001970
int3
mov r15d, dword [rbx - 0x10]
mov r13, r14
sub r13, rbx
test r12d, r12d
jns 0x140011152
mov ecx, 0x80070057
call fcn.140001970
int3
mov ecx, 1
sub ecx, dword [rdi + 0x10]
mov eax, dword [rdi + 0xc]
sub eax, r12d
or eax, ecx
jge 0x140011176
mov edx, r12d
lea rcx, [rsp + 0x28]
call fcn.140001910
mov rbx, qword [rsp + 0x28]
mov rdi, r12
movsxd rdx, dword [rbx - 0xc]
mov r9, r12
mov rcx, rbx
cmp r13, r15
ja 0x140011194
lea r8, [r13 + rbx]
call fcn.14016609c
jmp 0x14001119c
mov r8, r14
call fcn.140166014
cmp r12d, dword [rbx - 0xc]
jg 0x1400111b1
mov dword [rbx - 0x10], r12d
mov byte [rdi + rbx], 0
mov r15, qword [rsp + 0x30]
jmp 0x1400111c1
mov ecx, 0x80070057
call fcn.140001970
int3
mov qword [rsp + 0x28], rax
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400111e0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x20]
lea rcx, [rbx - 0x18]
call fcn.1400014e0
add rax, 0x18
mov qword [r15], rax
mov eax, esi
lock xadd dword [rbx - 8], eax
dec eax
test eax, eax
jg 0x140011211
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x14001122e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, r15
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140164540
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret