Function at 0x140019418
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 - 0x918]
sub rsp, 0x9f0
mov rax, qword [0x1400592a0]
xor rax, rsp
mov qword [rbp + 0x8e0], rax
or rdi, 0xffffffffffffffff
xor r12d, r12d
cmp dword [0x14005a754], r12d
mov r15d, edx
je 0x14001947b
cmp edx, dword [0x14005a750]
jg 0x140019aa9
cmp qword [0x140059318], rdi
jne 0x140019aa9
mov ebx, 1
mov qword [rsp + 0x60], r12
lea rax, [rsp + 0x60]
mov dword [rsp + 0x50], r12d
mov r9d, ebx
mov dword [0x14005a754], 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 0x140019643
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 0x1400195d8
cmp dword [rsp + 0x54], ebx
jne 0x1400195d8
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 0x140019594
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 [0x140059318], 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 0x140019622
cmp dword [rsp + 0x54], r14d
jne 0x140019622
mov eax, dword [rsp + 0x50]
jmp 0x140019629
mov eax, r12d
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x60]
movzx eax, ax
mov dword [0x14005a750], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov rcx, qword [0x140059318]
cmp rcx, rdi
jne 0x14001984a
mov eax, dword [0x14005a750]
test eax, eax
cmove eax, r14d
mov dword [0x14005a750], eax
cmp r15d, eax
jg 0x140019841
mov edx, r13d
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop dword [rax + rax]
test eax, eax
je 0x14001983a
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.140019364
test eax, eax
js 0x14001983a
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 0x140019722
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 [0x140059318]
cmp rcx, rdi
jne 0x14001984a
lea rdx, [rbp + 0x90]
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_GetTempPath2A]
nop dword [rax + rax]
test eax, eax
je 0x14001983a
lea rcx, [rbp + 0x90]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
nop dword [rax + rax]
lea r8, [0x14004b0e0]
mov rdx, r13
lea rcx, [rbp + 0x90]
call fcn.140019364
test eax, eax
js 0x14001983a
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 0x1400197f5
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 [0x140059318], rax
jmp 0x140019841
mov rcx, qword [0x140059318]
cmp rcx, rdi
je 0x140019aa9
test esi, esi
jne 0x140019863
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 [0x14005a750]
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.140018504
test eax, eax
js 0x140019904
mov dword [rsp + 0x50], r12d
lea rax, [rbp - 0x80]
mov r8, rdi
inc r8
cmp byte [rax + r8], r12b
jne 0x1400198da
mov rcx, qword [0x140059318]
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.14001b6b0
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.140010e44
call fcn.14001f4cc
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 + 0x6d0]
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.140010e44
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
nop dword [rax + rax]
mov rdx, r13
lea rcx, [rbp + 0x4c0]
movzx esi, ax
call fcn.14001c344
test eax, eax
je 0x140019aa9
mov edx, r13d
lea rcx, [rbp + 0x2b0]
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop dword [rax + rax]
test eax, eax
je 0x140019a20
lea r8, str.kernel32.dll
mov rdx, r13
lea rcx, [rbp + 0x2b0]
call fcn.140010d0c
test eax, eax
js 0x140019a20
lea r8, [rsp + 0x58]
mov dword [rsp + 0x54], r12d
lea rdx, [rsp + 0x54]
mov dword [rsp + 0x58], r12d
lea rcx, [rbp + 0x2b0]
call fcn.14001aeb8
test eax, eax
js 0x140019a20
movzx ebx, word [rsp + 0x58]
lea rcx, [rbp + 0x4c0]
mov rdx, r13
mov qword [rsp + 0x40], rcx
lea rax, [rbp + 0x90]
lea rcx, [rbp + 0x6d0]
mov qword [rsp + 0x38], rcx
lea r9, [0x14004b14c]
mov dword [rsp + 0x30], esi
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 + 0x28], ebx
lea rcx, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
call fcn.140018504
test eax, eax
js 0x140019aa9
mov dword [rsp + 0x50], r12d
lea rax, [rbp + 0x1a0]
inc rdi
cmp byte [rax + rdi], r12b
jne 0x140019a79
mov rcx, qword [0x140059318]
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 + 0x8e0]
xor rcx, rsp
call fcn.1400017f0
lea r11, [rsp + 0x9f0]
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