Function at 0x14000ef10
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1e8]
sub rsp, 0x2c0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401750a0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
movzx ebx, r8b
mov r13, rdx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x60]
call fcn.1400dfb10
xor edi, edi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
mov qword [rsp + 0x48], rdi
mov r9d, ebx
shl r9d, 9
add r9d, 0x20019
lea r8, str.SOFTWAREOverwolf
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x38]
call fcn.14000d870
mov r12, qword [rsp + 0x38]
test eax, eax
jne 0x14000f01c
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.InstallFolder
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000f002
mov eax, dword [rsp + 0x50]
dec eax
cmp eax, 1
ja 0x14000f002
mov ebx, dword [rsp + 0x30]
test ebx, ebx
je 0x14000f068
test bl, 1
jne 0x14000f002
mov eax, ebx
shr rax, 1
cmp word [rbp + rax*2 - 0x62], di
je 0x14000f06c
test r12, r12
je 0x14000f018
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
xor bl, bl
test r12, r12
je 0x14000f031
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x38], rdi
movzx eax, bl
mov dword [rsp + 0x40], edi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400dd420
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov word [rbp - 0x60], di
shr ebx, 1
test r12, r12
je 0x14000f084
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r12, rdi
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x40], edi
test ebx, ebx
je 0x14000f01c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
movdqa xmm1, xmmword [0x140147cc0]
movdqu xmmword [rsp + 0x70], xmm1
mov word [rsp + 0x60], di
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], 0
jne 0x14000f0b3
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140003d30
nop
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
movdqa xmm1, xmmword [0x140147cc0]
movdqu xmmword [rbp - 0x70], xmm1
mov word [rbp - 0x80], di
mov r8d, 1
lea rdx, [0x1401360cc]
lea rcx, [rbp - 0x80]
call fcn.140003d30
nop
lea rcx, [rsp + 0x60]
call fcn.140002e30
mov rbx, rax
lea rcx, [rbp - 0x80]
call fcn.140002e30
mov rdi, rax
cmp rax, rbx
jbe 0x14000f11f
mov bl, 1
jmp 0x14000f197
lea rcx, [rsp + 0x60]
call sym.OverwolfLauncher.exe_public:_class_Json::CharReader____ptr64___cdecl_Json::CharReader::operator_class_Json::CharReader_const____ptr64____ptr64
cmp qword [rax + 0x18], 8
jb 0x14000f133
mov rax, qword [rax]
sub rbx, rdi
lea rdi, [rax + rbx*2]
lea rcx, [rbp - 0x80]
call sym.OverwolfLauncher.exe_public:_class_Json::CharReader____ptr64___cdecl_Json::CharReader::operator_class_Json::CharReader_const____ptr64____ptr64
mov r15, rax
cmp qword [rax + 0x18], 8
jb 0x14000f150
mov rax, qword [rax]
mov rcx, qword [r15 + 0x10]
lea rbx, [rax + rcx*2]
jb 0x14000f15d
mov r15, qword [r15]
cmp r15, rbx
je 0x14000f195
sub rdi, r15
nop word [rax + rax]
movzx r14d, word [r15 + rdi]
movzx ecx, word [r15]
call fcn.1400e737c
mov esi, eax
mov ecx, r14d
call fcn.1400e737c
cmp esi, eax
jne 0x14000f11b
add r15, 2
cmp r15, rbx
jne 0x14000f170
xor bl, bl
lea rcx, [rbp - 0x80]
call fcn.140003cc0
nop
test bl, bl
je 0x14000f1bc
mov r8d, 1
lea rdx, [0x1401360cc]
lea rcx, [rsp + 0x60]
call fcn.140007160
mov r8d, reloc.SHLWAPI.dll_SHCreateMemStream
lea rdx, [0x1401364b8]
lea rcx, [rsp + 0x60]
call fcn.140007160
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000f21f
test al, 0x10
jne 0x14000f21f
lea rax, [rsp + 0x60]
cmp r13, rax
je 0x14000f21b
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov rcx, r13
call fcn.140003d30
mov bl, 1
jmp 0x14000f221
xor bl, bl
lea rcx, [rsp + 0x60]
call fcn.140003cc0
nop
xor edi, edi
jmp 0x14000f01e