Function at 0x1400a8d00
Capabilities:
Check if file exists
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x850]
sub rsp, 0x950
mov rax, qword [0x1403a8088]
xor rax, rsp
mov qword [rbp + 0x820], rax
mov dword [rsp + 0x60], 0
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x1400a90ad
test rdx, rdx
je 0x1400a90ad
mov rcx, rdx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400a90ad
mov r9, rbx
lea r8, [0x140339660]
mov edx, 0x104
lea rcx, [rbp - 0x10]
call fcn.14004ebd0
cmp dword [0x14045ebc8], 0
je 0x1400a8d9b
movzx ecx, word [0x14045e53c]
call fcn.140084710
test eax, eax
je 0x1400a90ad
mov eax, 0x20
mov qword [rsp + 0x48], 1
jmp 0x1400a8da9
mov eax, reloc.WS2_32.dll_recv
mov qword [rsp + 0x48], 2
mov qword [rsp + 0x980], rsi
lea rcx, [0x140000000]
mov qword [rsp + 0x948], rdi
mov qword [rsp + 0x940], r12
lea r12, [0x1403399f0]
mov qword [rsp + 0x938], r13
xor r13d, r13d
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x930], r15
mov qword [rsp + 0x50], rax
nop dword [rax]
xor r13d, r13d
mov r15, rax
mov esi, r13d
nop dword [rax]
cmp dword [0x14045ebc8], r13d
lea rdx, [rcx + 0x444fd0]
jne 0x1400a8e17
lea rdx, [rcx + 0x4490d0]
mov rcx, qword [r12]
lea rax, [rsp + 0x58]
mov r9d, 3
mov qword [rsp + 0x20], rax
add rdx, rsi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400a9045
xor edx, edx
mov qword [rbp - 0x58], 7
xor ecx, ecx
mov qword [rbp - 0x60], r13
mov word [rbp - 0x70], r13w
mov qword [rbp - 0x33], 7
mov qword [rbp - 0x3b], r13
mov word [rbp - 0x4b], r13w
mov qword [rbp - 0x2b], r13
mov qword [rbp - 0x1b], r13
call fcn.1400568e0
xor edx, edx
mov qword [rbp - 0x23], r13
mov r8d, 0x208
mov dword [rsp + 0x60], 0x104
lea rcx, [rbp + 0x200]
mov dword [rsp + 0x64], 0x410
mov edi, r13d
call fcn.14027b2c0
xor edx, edx
lea rcx, [rbp + 0x410]
mov r8d, 0x410
call fcn.14027b2c0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rbp + 0x410]
xor edx, edx
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x200]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
je 0x1400a9030
nop dword [rax + rax]
inc edi
cmp dword [rsp + 0x60], r13d
jbe 0x1400a8faf
cmp dword [rsp + 0x64], r13d
jbe 0x1400a8faf
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x410]
call qword [sym.imp.SHLWAPI.dll_PathMatchSpecExW]
test eax, eax
jne 0x1400a8faf
or rax, 0xffffffffffffffff
cmp word [rbx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400a8f34
lea rcx, [rbp + 0x410]
mov r9, r14
lea rcx, [rcx + rax*2]
mov edx, 0x104
mov qword [rsp + 0x20], rcx
lea r8, [0x140339670]
lea rcx, [rbp - 0x10]
call fcn.14004ebd0
lea rcx, [rbp - 0x10]
or rax, 0xffffffffffffffff
cmp word [rcx + rax*2 + 2], r13w
lea rax, [rax + 1]
jne 0x1400a8f70
mov rcx, qword [rsp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp + 0x200]
mov dword [rsp + 0x60], eax
mov r9d, 1
lea rax, [rbp - 0x10]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor edx, edx
mov dword [rsp + 0x60], 0x104
mov r8d, 0x208
mov dword [rsp + 0x64], 0x410
lea rcx, [rbp + 0x200]
call fcn.14027b2c0
xor edx, edx
lea rcx, [rbp + 0x410]
mov r8d, 0x410
call fcn.14027b2c0
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x64]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x60]
lea rax, [rbp + 0x410]
mov edx, edi
mov qword [rsp + 0x30], rax
lea r8, [rbp + 0x200]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
jne 0x1400a8f00
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x70]
call fcn.140082c50
add rsi, 0x208
lea rcx, [0x140000000]
sub r15, 1
jne 0x1400a8e00
mov r13, qword [rsp + 0x40]
lea rcx, [0x140000000]
mov rax, qword [rsp + 0x50]
inc r13
add r12, 8
mov qword [rsp + 0x40], r13
cmp r13, qword [rsp + 0x48]
jl 0x1400a8df0
mov r15, qword [rsp + 0x930]
mov r13, qword [rsp + 0x938]
mov r12, qword [rsp + 0x940]
mov rdi, qword [rsp + 0x948]
mov rsi, qword [rsp + 0x980]
xor eax, eax
mov rcx, qword [rbp + 0x820]
xor rcx, rsp
call fcn.14012a2b0
add rsp, 0x950
pop r14
pop rbx
pop rbp
ret