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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003d080]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov r14, rcx
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.1400099e0
xor eax, eax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
xor r15d, r15d
mov esi, r15d
mov dword [rsp + 0x70], r15d
mov qword [rsp + 0x78], r15
mov qword [rsp + 0x40], r15
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWAREOverwolf
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000233b
mov rsi, qword [rsp + 0x40]
mov qword [rsp + 0x68], rsi
mov dword [rsp + 0x70], 0x200
mov dword [rsp + 0x38], 0x208
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.InstallFolder
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000232a
mov eax, dword [rsp + 0x40]
dec eax
cmp eax, 1
ja 0x14000232a
mov ebx, dword [rsp + 0x38]
test ebx, ebx
je 0x14000237a
test bl, 1
jne 0x14000232a
mov eax, ebx
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], r15w
je 0x14000237f
test rsi, rsi
je 0x14000233b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r15
xor bl, bl
test rsi, rsi
je 0x14000234b
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140007aa0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov word [rbp - 0x80], r15w
shr ebx, 1
test rsi, rsi
je 0x140002397
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, r15
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], r15d
test ebx, ebx
je 0x14000233b
movdqa xmm0, xmmword [0x140037a80]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
lea rax, [rbp - 0x80]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x1400023c0
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x48]
call fcn.1400042b0
nop
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
mov rax, rdx
sub rax, rcx
cmp rax, 0x14
jb 0x140002425
lea rdi, [rcx + 0x14]
mov qword [rsp + 0x58], rdi
lea rbx, [rsp + 0x48]
cmp rdx, 8
cmovae rbx, qword [rsp + 0x48]
lea rcx, [rbx + rcx*2]
mov r8d, 0x28
lea rdx, str.OverwolfLauncher.exe
call fcn.140009570
mov word [rbx + rdi*2], r15w
jmp 0x140002444
mov qword [rsp + 0x20], 0x14
lea r9, str.OverwolfLauncher.exe
mov edx, 0x14
lea rcx, [rsp + 0x48]
call fcn.1400053e0
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140002490
test al, 0x10
jne 0x140002490
lea rax, [rsp + 0x48]
cmp r14, rax
je 0x14000248c
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], 8
cmovae rdx, qword [rsp + 0x48]
mov r8, qword [rsp + 0x58]
mov rcx, r14
call fcn.1400042b0
mov bl, 1
jmp 0x140002492
xor bl, bl
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x1400024d0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024e9
call fcn.140007ac4
movdqa xmm0, xmmword [0x140037a80]
movdqu xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x48], r15w
jmp 0x14000233d
call fcn.14000eb84
int3