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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14017a390]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r8d, 0x104
lea r13, [0x140182390]
mov rdx, r13
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140067f0f
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea rax, str.skinltr_
mov qword [rbp + 0xf], rax
lea rax, str..._skinltr_
mov qword [rbp + 0x17], rax
lea rcx, str.skin_
mov qword [rbp + 0x1f], rcx
lea rax, str.skin_rtl_
mov qword [rbp - 9], rax
lea rax, str..._skin_rtl_
mov qword [rbp - 1], rax
mov qword [rbp + 7], rcx
xor r12d, r12d
mov qword [rbp - 0x11], r12
mov dword [rbp - 0x19], 4
mov dword [rbp - 0x29], r12d
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str..DEFAULTSoftwareSetID
mov rcx, 0xffffffff80000003
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140067d76
lea rax, [rbp - 0x19]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140149340]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x29]
test eax, eax
cmovne ecx, r12d
mov dword [rbp - 0x29], ecx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r14, [rbp - 9]
lea rax, [rbp + 0xf]
cmp dword [rbp - 0x29], 1
cmovne r14, rax
mov r15d, r12d
mov rsi, 0xffffffffffffffff
call fcn.1400037b0
mov rdx, rax
test rax, rax
je 0x140067f49
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x14002c3eb.0]
add rax, 0x18
mov qword [rbp - 0x21], rax
cmp r13, 0x10000
jae 0x140067dd1
movzx edx, r13w
lea rcx, [rbp - 0x21]
call fcn.140002fe0
jmp 0x140067df0
mov rax, rsi
inc rax
cmp word [r13 + rax*2], 0
jne 0x140067dd4
mov r8d, eax
mov rdx, r13
lea rcx, [rbp - 0x21]
call fcn.1400033a0
nop
mov rbx, qword [rbp - 0x21]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x140067e1a
mov edx, 0x104
lea rcx, [rbp - 0x21]
call fcn.140003280
mov rbx, qword [rbp - 0x21]
mov rdx, qword [r14]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140067eee
test rbx, rbx
jne 0x140067e38
mov eax, r12d
jmp 0x140067e4c
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400f9f0c
test eax, eax
js 0x140067f3e
cmp eax, dword [rbx - 0xc]
jg 0x140067f3e
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r12w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140067ea7
mov eax, esi
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x140067e91
lfence
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x14002c3eb.0]
inc r15d
add r14, 8
cmp r15d, 3
jb 0x140067d90
mov eax, r12d
jmp 0x140067f11
mov r8, rbx
mov edx, 0x104
mov rcx, r13
call fcn.1400ff90c
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140067ed9
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002c3eb.0]
lea rdx, str.images_2_
mov rcx, r13
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r12d, eax
jmp 0x140067f11
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x140067f0f
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x14002c3eb.0]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400f2e00
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80070057
call fcn.140003910
nop
mov ecx, 0x80004005
call fcn.140003910
int3