Function at 0x1000450bc
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], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x7e0
mov rax, qword [0x10004a110]
xor rax, rsp
mov qword [rsp + 0x7d0], rax
xor ebp, ebp
or r12, 0xffffffffffffffff
mov edi, edx
cmp dword [0x10004d3a4], ebp
je 0x100045117
cmp edx, dword [0x10004d3a8]
jg 0x100045673
cmp qword [0x10004a128], r12
jne 0x100045673
lea rax, [rsp + 0x60]
lea rdx, [0x10001cff8]
mov r9d, 1
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x50], ebp
mov esi, ebp
mov dword [0x10004d3a4], 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, 4
mov r15d, 0x104
mov r14d, 0x8000080
cmp eax, ebp
jne 0x1000452b6
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
lea rdx, [0x100026f18]
xor r8d, r8d
mov dword [rsp + 0x54], 1
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebp
jne 0x10004525a
cmp dword [rsp + 0x54], 1
jne 0x10004525a
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov byte [rsp + 0x183], bpl
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
cmp rax, r12
je 0x10004521b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rbx
cmp eax, 0xffffffff
cmove eax, ebp
cmp eax, 0x7a120
seta sil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ebx, 4
mov qword [rsp + 0x30], rbp
neg eax
mov dword [rsp + 0x28], r14d
lea r8d, [rbx - 3]
sbb ecx, ecx
xor r9d, r9d
mov edx, 0x40000000
and ecx, 0xfffffffe
add ecx, ebx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x10004a128], rax
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x58]
lea r9, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
lea rdx, [0x100026f28]
xor r8d, r8d
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebp
jne 0x10004529c
cmp dword [rsp + 0x54], ebx
jne 0x10004529c
mov eax, dword [rsp + 0x50]
jmp 0x1000452a2
mov eax, ebp
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x60]
movzx eax, ax
mov dword [0x10004d3a8], eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, qword [0x10004a128]
cmp rax, r12
jne 0x100045491
mov eax, dword [0x10004d3a8]
cmp eax, ebp
cmove eax, ebx
cmp edi, eax
mov dword [0x10004d3a8], eax
jg 0x100045673
lea rcx, [rsp + 0x80]
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp eax, ebp
je 0x100045481
lea rax, [rsp + 0x80]
cmp rax, rbp
je 0x100045313
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea r8, str.wmsetup.log
lea rcx, [rsp + 0x80]
mov rdx, r15
call fcn.10003faf0
cmp eax, ebp
jl 0x100045481
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x80]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, r12
je 0x10004538a
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov esi, ebp
cmp eax, 0xffffffff
cmove eax, ebp
cmp eax, 0x7a120
seta sil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x10004a128]
cmp rax, r12
jne 0x100045491
lea rdx, [rsp + 0x190]
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebp
je 0x100045481
lea rax, [rsp + 0x190]
cmp rax, rbp
je 0x1000453ce
lea rcx, [rsp + 0x190]
call qword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea r8, [0x100026f48]
lea rcx, [rsp + 0x190]
mov rdx, r15
call fcn.10003faf0
cmp eax, ebp
jl 0x100045481
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x190]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, r12
je 0x100045445
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov esi, ebp
cmp eax, 0xffffffff
cmove eax, ebp
cmp eax, 0x7a120
seta sil
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], r14d
neg eax
mov edx, 0x40000000
sbb ecx, ecx
xor r9d, r9d
and ecx, 0xfffffffe
lea r8d, [r9 + 1]
add ecx, ebx
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x190]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [0x10004a128], rax
jmp 0x100045488
mov rax, qword [0x10004a128]
cmp rax, r12
je 0x100045673
cmp esi, ebp
jne 0x1000454a9
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x74]
movzx ecx, word [rsp + 0x72]
movzx r8d, word [rsp + 0x6e]
mov eax, dword [0x10004d3a8]
movzx edi, word [rsp + 0x70]
movzx r10d, word [rsp + 0x6a]
movzx r9d, word [rsp + 0x68]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r8d
lea rcx, [rsp + 0x80]
lea r8, [0x100026f60]
mov rdx, r15
mov dword [rsp + 0x20], r10d
call fcn.100044fa4
cmp eax, ebp
jl 0x100045549
xor eax, eax
lea rdi, [rsp + 0x80]
mov rcx, r12
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x80]
not rcx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
lea r8, [rcx - 1]
mov rcx, qword [0x10004a128]
call qword [sym.imp.KERNEL32.dll_WriteFile]
call fcn.100040284
lea rcx, [rsp + 0x190]
cmp rcx, rbp
je 0x100045571
lea rdx, [rsp + 0x190]
mov r8d, 0x7f
mov rcx, rax
call fcn.10003fe90
call fcn.100040b80
lea rcx, [rsp + 0x5c0]
cmp rcx, rbp
je 0x100045599
lea rdx, [rsp + 0x5c0]
mov r8d, 0x103
mov rcx, rax
call fcn.10003fe90
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea rax, [rsp + 0x3b0]
cmp rax, rbp
je 0x1000455be
lea rcx, [rsp + 0x3b0]
call fcn.100042b6c
jmp 0x1000455c0
mov eax, ebp
cmp eax, ebp
je 0x100045673
movzx ebx, di
call fcn.100045010
xor edx, edx
lea ecx, [rdx + 4]
mov edi, eax
call fcn.100040420
lea rcx, [0x100026fbc]
lea r9, [0x100026fc0]
cmp eax, ebp
lea rax, [rsp + 0x3b0]
lea r8, [0x100026fd0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x5c0]
cmovne r9, rcx
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x190]
mov dword [rsp + 0x30], ebx
lea rcx, [rsp + 0x2a0]
mov rdx, r15
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
call fcn.100044fa4
cmp eax, ebp
jl 0x100045673
xor eax, eax
lea rdi, [rsp + 0x2a0]
mov rcx, r12
repne scasb al, byte [rdi]
lea r9, [rsp + 0x50]
lea rdx, [rsp + 0x2a0]
not rcx
mov dword [rsp + 0x50], ebp
mov qword [rsp + 0x20], rbp
lea r8, [rcx - 1]
mov rcx, qword [0x10004a128]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x7d0]
xor rcx, rsp
call fcn.1000475f0
lea r11, [rsp + 0x7e0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret