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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14012d228]
xor rax, rsp
mov qword [rbp + 0x27], rax
lea rdi, [0x1401353e0]
test rcx, rcx
je 0x140009670
mov r8, rcx
mov edx, 0x104
mov rcx, rdi
call fcn.1400bfb90
jmp 0x140009697
mov r8d, 0x104
mov rdx, rdi
lea rcx, [0x140000000]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1400098ee
mov rcx, rdi
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 r13d, r13d
mov qword [rbp - 0x11], r13
mov dword [rbp - 0x19], 4
mov dword [rbp - 0x29], r13d
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 0x14000974d
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, [0x14010f298]
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [rbp - 0x29]
test eax, eax
cmovne ecx, r13d
mov dword [rbp - 0x29], ecx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r15, [rbp - 9]
lea rax, [rbp + 0xf]
cmp dword [rbp - 0x29], 1
cmovne r15, rax
mov r12d, r13d
mov r14, 0xffffffffffffffff
call fcn.140004bc0
mov rdx, rax
test rax, rax
je 0x140009928
mov rcx, qword [rax]
mov rax, qword [rcx + 0x18]
mov rcx, rdx
call qword [case.0x140029715.0]
add rax, 0x18
mov qword [rbp - 0x21], rax
cmp rdi, 0x10000
jae 0x1400097a7
movzx edx, di
lea rcx, [rbp - 0x21]
call fcn.140005b70
jmp 0x1400097ca
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x1400097b0
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp - 0x21]
call fcn.140006130
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 0x1400097f4
mov edx, 0x104
lea rcx, [rbp - 0x21]
call fcn.140005eb0
mov rbx, qword [rbp - 0x21]
mov rdx, qword [r15]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x1400098cb
test rbx, rbx
jne 0x140009812
mov eax, r13d
jmp 0x140009826
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400bfd48
test eax, eax
js 0x14000991d
cmp eax, dword [rbx - 0xc]
jg 0x14000991d
mov dword [rbx - 0x10], eax
mov eax, eax
mov word [rbx + rax*2], r13w
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140009882
mov eax, r14d
lock xadd dword [rbx - 8], eax
sub eax, 1
jg 0x14000986c
lfence
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
lea rdx, [rbx - 0x18]
mov rax, qword [rax + 8]
call qword [case.0x140029715.0]
inc r12d
add r15, 8
cmp r12d, 3
jb 0x140009767
mov eax, r13d
jmp 0x1400098f0
mov r8, rbx
mov edx, 0x104
mov rcx, rdi
call fcn.1400bfb90
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400098b6
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140029715.0]
lea rdx, str.images_2_
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
mov r13d, eax
jmp 0x1400098f0
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400098ee
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [case.0x140029715.0]
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.14005aef0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
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 ecx, 0x80070057
call fcn.140004950
nop
mov ecx, 0x80004005
call fcn.140004950
int3