Function at 0x180004b20
Capabilities:
Check os version

Disassembly:
push rbx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x1800210b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rax, qword [section..data]
mov rbp, qword [rsp + 0x1f8]
mov r13, qword [rsp + 0x200]
mov r14d, ecx
lea rcx, section..data
mov r15d, r9d
mov rdi, r8
call qword [rax + 0x18]
mov ecx, 1
sub ecx, dword [rax + 0x10]
lea rbx, [rax + 0x18]
mov eax, dword [rax + 0xc]
mov qword [rsp + 0x48], rbx
sub eax, 0x27
or ecx, eax
jge 0x180004b9c
lea rcx, [rsp + 0x48]
mov edx, 0x27
call fcn.180003db0
mov rbx, qword [rsp + 0x48]
mov r8d, 0x27
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x1d8], rsi
call qword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x180004be0
lea rdx, [rbx - 0x18]
or rsi, 0xffffffffffffffff
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004bd6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, 0x507
jmp 0x180004e81
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.18000c810
test eax, eax
js 0x180004fc1
cmp eax, dword [rbx - 0xc]
jg 0x180004fc1
mov dword [rbx - 0x10], eax
cdqe
mov qword [rsp + 0x190], r12
xor r12d, r12d
lea rcx, section..data
mov word [rbx + rax*2], r12w
mov rax, qword [section..data]
call qword [rax + 0x18]
mov r8d, dword [rsp + 0x1f0]
lea rdx, str.0x_08X
add rax, 0x18
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x40], rax
call fcn.1800030b0
lea rcx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
lea rdx, [0x18001c430]
or rsi, 0xffffffffffffffff
add rax, 0x18
mov qword [rsp + 0x30], rax
test rdx, 0xffffffffffff0000
jne 0x180004ca9
movzx edi, dx
xor edx, edx
mov ecx, edi
call fcn.1800039b0
test rax, rax
je 0x180004cc5
lea rcx, [rsp + 0x30]
mov r8d, edi
mov rdx, rax
call fcn.180003af0
jmp 0x180004cc5
xor eax, eax
mov rdi, rdx
mov rcx, rsi
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.180003e40
mov r8d, dword [rsp + 0x64]
cmp r8d, 5
ja 0x180004cfc
movzx eax, word [rsp + 0x174]
mov r9d, dword [rsp + 0x68]
lea rdx, str._d._d._d_SP_d
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x6c]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x20], eax
call fcn.1800030b0
jmp 0x180004d4e
lea r8, [rsp + 0x54]
lea rdx, [rsp + 0x50]
lea rcx, [0x18001c8d8]
xor r9d, r9d
mov qword [rsp + 0x20], r12
call fcn.180003fe0
test eax, eax
je 0x180004d4e
mov ecx, dword [rsp + 0x54]
mov r8d, dword [rsp + 0x50]
lea rdx, str._d._d._d._d
movzx eax, cx
shr ecx, 0x10
movzx r9d, r8w
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x30]
shr r8d, 0x10
call fcn.1800030b0
mov rax, qword [section..data]
lea rcx, section..data
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
test rbp, rbp
je 0x180004dac
test rbp, 0xffffffffffff0000
jne 0x180004d99
movzx edi, bp
xor edx, edx
mov ecx, edi
call fcn.1800039b0
test rax, rax
je 0x180004dbf
lea rcx, [rsp + 0x38]
mov r8d, edi
mov rdx, rax
call fcn.180003af0
jmp 0x180004dbf
xor eax, eax
mov rcx, rsi
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
dec rcx
jmp 0x180004daf
mov ecx, r12d
mov r8d, ecx
lea rcx, [rsp + 0x38]
mov rdx, rbp
call fcn.180003e40
xor eax, eax
lea rdi, str._x64
mov rcx, rsi
repne scasw ax, word [rdi]
lea rdx, str._x64
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x38]
call fcn.180002fb0
mov ecx, 7
call sub.msi.dll_MsiDatabaseExportA
mov edi, eax
test eax, eax
jne 0x180004eaa
mov rdx, qword [rsp + 0x38]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004e19
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x30]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004e38
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x40]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004e57
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004e74
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, MsiDatabaseExportA
mov r12, qword [rsp + 0x190]
mov rsi, qword [rsp + 0x1d8]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.18000bc00
add rsp, 0x198
pop r15
pop r14
pop r13
pop rdi
pop rbp
pop rbx
ret
mov edx, 1
mov r8d, 0x1770
mov ecx, eax
call sub.msi.dll_MsiRecordSetStringW
mov r8, rbx
mov edx, 2
mov ecx, edi
call sub.msi.dll_MsiReinstallFeatureW
mov r8d, r15d
mov edx, 3
mov ecx, edi
call sub.msi.dll_MsiRecordSetStringW
mov r8, qword [rsp + 0x40]
mov edx, 4
mov ecx, edi
call sub.msi.dll_MsiReinstallFeatureW
mov rbx, qword [rsp + 0x38]
mov edx, 5
mov r8, rbx
mov ecx, edi
call sub.msi.dll_MsiReinstallFeatureW
mov r8, qword [rsp + 0x30]
mov ebp, 6
mov edx, ebp
mov ecx, edi
call sub.msi.dll_MsiReinstallFeatureW
test r13, r13
je 0x180004f24
lea edx, [rbp + 1]
mov r8, r13
mov ecx, edi
call sub.msi.dll_MsiReinstallFeatureW
mov edx, dword [rsp + 0x208]
mov r8d, edi
mov ecx, r14d
call sub.msi.dll_MsiProvideComponentW
mov ecx, edi
cmp eax, 0xffffffff
cmove r12d, ebp
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004f5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x30]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004f7d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x40]
mov eax, esi
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180004f9c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
dec esi
test esi, esi
jg 0x180004fb9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.msi.dll_MsiConfigureFeatureFromDescriptorA]
mov eax, r12d
jmp 0x180004e79
mov ecx, 0x80070057
call fcn.180003e10
int3