Function at 0x18004b690
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x180280f80]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r12, rdx
mov rdi, rcx
xor r13d, r13d
mov edx, 0x104
lea rcx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x18004bbc0
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
lea rax, [rbp + 0xd0]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], r13b
jne 0x18004b702
lea rdx, [rbp + 0xd0]
lea rcx, [rsp + 0x58]
call fcn.18000a5f0
nop
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 7
jb 0x18004b76e
lea rax, [rcx + 7]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x58]
add rbx, rcx
mov r8d, 7
lea rdx, str.Fonts_
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 7], 0
lea rax, [rsp + 0x58]
jmp 0x18004b793
mov qword [rsp + 0x20], 7
lea r9, str.Fonts_
movzx r8d, byte [rsp + 0x40]
mov edx, 7
lea rcx, [rsp + 0x58]
call fcn.18001f690
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.18000b1a0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x18004b7e0
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b7db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004b7db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d81fc
movdqa xmm0, xmmword [0x18016e6a0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x18004b90d
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x44], r13d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x1e0]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ebx, 1
cmp eax, 0x103
je 0x18004b902
test eax, eax
jne 0x18004b8a9
cmp dword [rsp + 0x44], 1
jne 0x18004b8a9
mov r8, qword [rdi + 8]
lea rdx, [rbp + 0x1e0]
mov rcx, qword [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
je 0x18004b954
mov dword [rsp + 0x4c], 0x104
mov dword [rsp + 0x48], 0x104
mov dword [rsp + 0x44], r13d
lea rax, [rsp + 0x48]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x4c]
lea r8, [rbp + 0x1e0]
mov edx, ebx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc ebx
cmp eax, 0x103
jne 0x18004b882
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov rdx, qword [rbp - 0x50]
cmp rdx, 0xf
jbe 0x18004bbbd
inc rdx
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bbb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004bbb8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
movsxd rdi, dword [rsp + 0x48]
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x18004bbea
cmp rdi, 0xf
ja 0x18004b9a9
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], 0xf
mov r8, rdi
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rdi + 0x78], 0
jmp 0x18004ba3f
mov rax, rdi
or rax, 0xf
cmp rax, rbx
jbe 0x18004b9e2
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.1800d81c0
test rax, rax
je 0x18004bb9a
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x18004ba1f
mov rbx, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x18004ba0d
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x18004bbf0
jmp 0x18004b9c3
test rcx, rcx
je 0x18004ba1c
call fcn.1800d81c0
mov rsi, rax
jmp 0x18004ba1f
mov rsi, r13
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x78], rdi
mov qword [rbp - 0x70], rbx
mov r8, rdi
lea rdx, [rbp - 0x40]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rdi], 0
lea rbx, [rbp - 0x68]
cmp qword [rbp - 0x50], 0xf
cmova rbx, qword [rbp - 0x68]
mov r8, qword [rbp - 0x78]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
sub rax, r8
mov rsi, qword [rbp - 0x58]
cmp rsi, rax
ja 0x18004bad9
lea rax, [r8 + rsi]
mov qword [rbp - 0x78], rax
lea rdi, [rsp + 0x78]
cmp rcx, 0xf
cmova rdi, qword [rsp + 0x78]
lea r15, [rsi + rbx]
cmp r15, rdi
jbe 0x18004ba9f
lea rax, [rdi + r8]
cmp rbx, rax
ja 0x18004ba9f
cmp rdi, rbx
ja 0x18004ba97
mov r14, r13
jmp 0x18004baa2
mov r14, rdi
sub r14, rbx
jmp 0x18004baa2
mov r14, rsi
inc r8
lea rcx, [rsi + rdi]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
sub rsi, r14
lea rdx, [r15 + r14]
lea rcx, [rdi + r14]
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x78]
jmp 0x18004baf9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbx
xor r9d, r9d
movzx r8d, byte [rsp + 0x40]
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.18001fd60
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x68], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.18002cd60
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x18004bb67
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bb61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004bb61
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d81fc
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 0xf
jbe 0x18004bba6
inc rdx
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004bba1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18004bba1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800d81fc
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
jmp 0x18004b90f
call fcn.1800d81fc
movzx eax, bl
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.1800d8800
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.18000f730
nop
call fcn.18000f520
int3