Function at 0x140015bf0
Capabilities:
Persist via run registry key
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x4a8]
sub rsp, 0x5a0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rbp + 0x490], rax
xor esi, esi
mov dword [rsp + 0x30], esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.1400dfb10
mov ebx, esi
mov dword [rsp + 0x48], esi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140015e70
mov rbx, qword [rsp + 0x30]
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
lea rdx, [0x140136ba8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140015e70
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x140015e70
mov eax, dword [rsp + 0x38]
test eax, eax
je 0x140015cf5
test al, 1
jne 0x140015e70
shr rax, 1
cmp word [rbp + rax*2 + 0x6e], si
je 0x140015cf9
jmp 0x140015e70
mov word [rbp + 0x70], si
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x280]
call fcn.1400dfb10
mov r8d, 0x104
lea rdx, [rbp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x60]
call fcn.140003130
nop
lea rdx, [0x140135da8]
lea rcx, [rsp + 0x60]
call fcn.140004470
mov rcx, rax
lea rdx, [rbp + 0x280]
call fcn.140004790
mov rcx, rax
lea rdx, [0x140135da8]
call fcn.140004470
mov rcx, rax
lea rdx, str.__overwolfsilent
call fcn.140004470
nop
movdqa xmm0, xmmword [0x140147cc0]
movdqu xmmword [rbp + 0x60], xmm0
mov word [rbp + 0x50], si
mov dword [rsp + 0x30], 2
mov rcx, qword [rbp - 0x28]
test cl, 2
jne 0x140015daf
mov rax, qword [rbp - 0x58]
mov r8, qword [rax]
test r8, r8
je 0x140015daf
mov rax, qword [rbp - 0x78]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x30]
cmovb r8, qword [rbp - 0x30]
sub r8, rdx
jmp 0x140015dd7
test cl, 4
jne 0x140015de4
mov rax, qword [rbp - 0x60]
mov rcx, qword [rax]
test rcx, rcx
je 0x140015de4
mov rax, qword [rbp - 0x80]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x48]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rbp + 0x50]
call fcn.140003d30
nop
lea rcx, [rbp + 0x50]
cmp qword [rbp + 0x68], 8
jb 0x140015dfd
mov rcx, qword [rbp + 0x50]
test rcx, rcx
jne 0x140015dfd
lea edi, [rcx + 0xd]
jmp 0x140015e3a
mov rax, 0xffffffffffffffff
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x140015e04
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140136ba8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
lea rcx, [rbp + 0x50]
call fcn.140003cc0
test edi, edi
je 0x140015e54
lea rcx, str.OWLauncher::_fail_to_update_registry
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test rbx, rbx
je 0x140015e65
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rsi
lea rcx, [rsp + 0x60]
call fcn.140002c30
nop
test rbx, rbx
je 0x140015e7e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.1400dd420
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret