Function at 0x14001882c
Capabilities:
Get common file path
Get file size
Query or enumerate registry value
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x708]
sub rsp, 0x7e0
mov rax, qword [0x140051580]
xor rax, rsp
mov qword [rbp + 0x6d0], rax
or rdi, 0xffffffffffffffff
xor r12d, r12d
cmp dword [0x14005381c], r12d
mov r15d, edx
je 0x14001888f
cmp edx, dword [0x140053818]
jg 0x140018e62
cmp qword [0x1400515f8], rdi
jne 0x140018e62
mov ebx, 1
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], r12d
mov r9d, ebx
mov dword [0x14005381c], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftMediaPlayer
mov rcx, 0xffffffff80000001
mov esi, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov r13d, 0x104
lea r14d, [rbx + 3]
test eax, eax
jne 0x140018a57
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rbp - 0x80]
mov dword [rsp + 0x54], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SetupLogFile
mov dword [rsp + 0x58], r13d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
nop dword [rax + rax]
test eax, eax
jne 0x1400189ec
cmp dword [rsp + 0x54], ebx
jne 0x1400189ec
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], 0x8000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
mov byte [rbp + 0x83], r12b
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov r14, rax
cmp rax, rdi
je 0x1400189a8
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov ebx, eax
mov rcx, r14
cmove ebx, r12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp ebx, 0x7a120
mov ebx, 1
seta sil
mov eax, esi
mov qword [rsp + 0x30], r12
xor eax, ebx
mov dword [rsp + 0x28], 0x8000080
xor r9d, r9d
lea rcx, [rbp - 0x80]
mov r8d, ebx
mov edx, 0x40000000
lea eax, [rax*2 + 2]
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov qword [0x1400515f8], rax
mov r14d, 4
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SetupLogLevel
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
test eax, eax
jne 0x140018a36
cmp dword [rsp + 0x54], r14d
jne 0x140018a36
mov eax, dword [rsp + 0x50]
jmp 0x140018a3d
mov eax, r12d
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x60]
movzx eax, ax
mov dword [0x140053818], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x1400515f8]
cmp rcx, rdi
jne 0x140018c5e
mov eax, dword [0x140053818]
test eax, eax
cmove eax, r14d
mov dword [0x140053818], eax
cmp r15d, eax
jg 0x140018c55
mov edx, r13d
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x140018c4e
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
nop dword [rax + rax]
lea r8, str.wmsetup.log
mov rdx, r13
lea rcx, [rbp - 0x80]
call fcn.14001870c
test eax, eax
js 0x140018c4e
mov qword [rsp + 0x30], r12
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], 0x8000080
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov r14, rax
cmp rax, rdi
je 0x140018b36
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov ebx, eax
mov rcx, r14
cmove ebx, r12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp ebx, 0x7a120
mov esi, r12d
seta sil
mov rcx, qword [0x1400515f8]
cmp rcx, rdi
jne 0x140018c5e
lea rdx, [rbp + 0x90]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPath2A]
nop dword [rax + rax]
test eax, eax
je 0x140018c4e
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
nop dword [rax + rax]
lea r8, [0x1400434d0]
mov rdx, r13
lea rcx, [rbp + 0x90]
call fcn.14001870c
test eax, eax
js 0x140018c4e
mov qword [rsp + 0x30], r12
lea rcx, [rbp + 0x90]
mov r15d, 0x8000080
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov r14, rax
cmp rax, rdi
je 0x140018c09
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
nop dword [rax + rax]
cmp eax, 0xffffffff
mov ebx, eax
mov rcx, r14
cmove ebx, r12d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
cmp ebx, 0x7a120
mov esi, r12d
seta sil
mov eax, esi
mov qword [rsp + 0x30], r12
neg eax
mov dword [rsp + 0x28], r15d
mov edx, 0x40000000
sbb ecx, ecx
xor r9d, r9d
and ecx, 0xfffffffe
add ecx, 4
mov dword [rsp + 0x20], ecx
lea rcx, [rbp + 0x90]
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
nop dword [rax + rax]
mov rcx, rax
mov qword [0x1400515f8], rax
jmp 0x140018c55
mov rcx, qword [0x1400515f8]
cmp rcx, rdi
je 0x140018e62
test esi, esi
jne 0x140018c77
lea r9d, [rsi + 2]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
nop dword [rax + rax]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
nop dword [rax + rax]
movzx ecx, word [rsp + 0x74]
movzx edx, word [rsp + 0x72]
movzx r8d, word [rsp + 0x70]
mov eax, dword [0x140053818]
movzx r10d, word [rsp + 0x6e]
movzx r11d, word [rsp + 0x6a]
movzx r9d, word [rsp + 0x68]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x38], edx
mov rdx, r13
mov dword [rsp + 0x30], r8d
lea r8, str._r_n_WMC_Logging_begun_at__lu__02lu__02lu____02lu:_02lu_:_02lu.__Logging_at_level:__lu.
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], r11d
call fcn.1400186c4
test eax, eax
js 0x140018d18
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x80]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x140018cee
mov rcx, qword [0x1400515f8]
lea r9, [rsp + 0x50]
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
call fcn.14001ab04
movzx r9d, ax
mov rcx, rax
shr rcx, 0x10
movzx r8d, cx
mov rcx, rax
mov dword [rsp + 0x30], r9d
shr rcx, 0x20
movzx edx, cx
lea rcx, [rbp + 0x90]
mov dword [rsp + 0x28], r8d
lea r8, str._lu._lu._lu._lu
shr rax, 0x30
mov dword [rsp + 0x20], edx
mov r9d, eax
mov edx, 0x7f
call fcn.1400104f4
call fcn.14001e774
mov rcx, rax
movzx r10d, ax
shr rcx, 0x10
lea r8, str._lu._lu._lu._lu
movzx r9d, cx
mov rcx, rax
shr rcx, 0x20
movzx edx, cx
lea rcx, [rbp + 0x4c0]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r9d
shr rax, 0x30
mov dword [rsp + 0x20], edx
mov r9d, eax
mov edx, 0x103
call fcn.1400104f4
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
nop dword [rax + rax]
mov rdx, r13
lea rcx, [rbp + 0x2b0]
movzx ebx, ax
call fcn.14001b5b4
test eax, eax
je 0x140018e62
call fcn.140017f5c
lea rcx, [rbp + 0x2b0]
mov rdx, r13
mov qword [rsp + 0x40], rcx
lea r9, [0x14004353c]
lea rcx, [rbp + 0x4c0]
mov qword [rsp + 0x38], rcx
lea r8, str.OS_is__s.__OSVer_is__S._lu._System_Lang_is__lu._Prev_version_system_is__S._Setup_version__S.__r_n
mov dword [rsp + 0x30], ebx
lea rcx, [rbp + 0x1a0]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x90]
mov qword [rsp + 0x20], rax
call fcn.1400186c4
test eax, eax
js 0x140018e62
mov dword [rsp + 0x50], r12d
lea rax, [rbp + 0x1a0]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140018e32
mov rcx, qword [0x1400515f8]
lea r9, [rsp + 0x50]
mov r8, rdi
mov qword [rsp + 0x20], r12
lea rdx, [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x6d0]
xor rcx, rsp
call fcn.140001660
lea r11, [rsp + 0x7e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret