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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
movaps xmmword [rbp + 0x3e0], xmm6
mov qword [rbp + 0x3d8], 0xfffffffffffffffe
mov r12d, r8d
mov r15, rdx
mov r14, rcx
mov rsi, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
jb 0x140027eb7
mov rdi, qword [r15]
pxor xmm0, xmm0
movdqa xmmword [rbp + 0x310], xmm0
movdqa xmmword [rbp + 0x300], xmm0
test rsi, rsi
je 0x140027f59
mov qword [rbp + 0x318], 7
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
jae 0x140028c40
cmp rsi, 8
jb 0x140027f69
mov rax, rsi
or rax, 7
movabs rcx, 0x7ffffffffffffffe
cmp rax, rcx
ja 0x140028c45
cmp rax, 0xb
mov ebx, 0xa
cmovae rbx, rax
lea rcx, [rbx + rbx]
cmp rbx, 0x7ff
jb 0x140027f78
movabs rax, 0x7fffffffffffffec
cmp rbx, rax
jae 0x140028c45
add rcx, 0x29
call fcn.140154dd0
mov rcx, rax
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x140027f81
mov qword [rbp + 0x318], 7
jmp 0x1400280cb
lea rax, [rbp + 0x300]
cmp rsi, 0x10
jae 0x140027f95
jmp 0x140027faf
add rcx, 2
call fcn.140154dd0
mov qword [rbp + 0x300], rax
mov qword [rbp + 0x318], rbx
cmp rsi, 0x10
jb 0x140027faf
lea rcx, [rdi + rsi]
cmp rax, rcx
jae 0x140028069
lea rcx, [rax + rsi*2]
cmp rdi, rcx
jae 0x140028069
mov rcx, rdi
mov rdx, rsi
mov r8, rax
lea r9, [rdx - 1]
mov r11, rdx
and r11, 7
je 0x140027feb
xor r10d, r10d
nop dword [rax + rax]
movsx edi, byte [rcx + r10]
mov word [r8], di
add r8, 2
inc r10
cmp r11, r10
jne 0x140027fd0
add rcx, r10
sub rdx, r10
cmp r9, 7
jb 0x1400280be
xor r9d, r9d
nop dword [rax + rax]
movsx r10d, byte [rcx + r9]
mov word [r8 + r9*2], r10w
movsx r10d, byte [rcx + r9 + 1]
mov word [r8 + r9*2 + 2], r10w
movsx r10d, byte [rcx + r9 + 2]
mov word [r8 + r9*2 + 4], r10w
movsx r10d, byte [rcx + r9 + 3]
mov word [r8 + r9*2 + 6], r10w
movsx r10d, byte [rcx + r9 + 4]
mov word [r8 + r9*2 + 8], r10w
movsx r10d, byte [rcx + r9 + 5]
mov word [r8 + r9*2 + 0xa], r10w
movsx r10d, byte [rcx + r9 + 6]
mov word [r8 + r9*2 + 0xc], r10w
movsx r10d, byte [rcx + r9 + 7]
mov word [r8 + r9*2 + 0xe], r10w
add r9, 8
cmp rdx, r9
jne 0x140028000
jmp 0x1400280be
mov r9, rsi
and r9, 0xfffffffffffffff0
lea rcx, [rdi + r9]
mov edx, esi
and edx, 0xf
lea r8, [rax + r9*2]
xor r10d, r10d
movq xmm0, qword [rdi + r10]
punpcklbw xmm0, xmm0
movq xmm1, qword [rdi + r10 + 8]
punpcklbw xmm1, xmm1
psraw xmm0, 8
psraw xmm1, 8
movdqu xmmword [rax + r10*2], xmm0
movdqu xmmword [rax + r10*2 + 0x10], xmm1
add r10, 0x10
cmp r9, r10
jne 0x140028080
cmp rsi, r9
jne 0x140027fb8
mov qword [rbp + 0x310], rsi
mov word [rax + rsi*2], 0
movzx ecx, r12b
add rcx, 0xffffffff80000001
lea rax, [rbp + 0x330]
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
xor r8d, r8d
mov r9d, 0x20019
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140028107
pxor xmm0, xmm0
movdqu xmmword [r14], xmm0
jmp 0x14002814e
mov rcx, qword [rbp + 0x330]
xorps xmm6, xmm6
movups xmmword [rsp + 0x50], xmm6
lea rax, [rbp + 0x360]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x35c]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x20], xmm6
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1400281c8
movups xmmword [r14], xmm6
mov qword [r14 + 0x10], 0
mov qword [r14 + 0x18], reloc.WS2_32.dll_ntohs
mov rax, qword [rbp + 0x318]
cmp rax, 8
jb 0x1400281aa
mov rcx, qword [rbp + 0x300]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1400281a5
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14015511c
mov rax, r14
movaps xmm6, xmmword [rbp + 0x3e0]
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov byte [rbp + 0x3d7], r12b
mov qword [rbp + 0x2e8], r15
mov qword [rbp + 0x368], r14
mov dword [rbp + 0x360], 0x104
mov dword [rbp + 0x35c], 0x104
mov ecx, 0x208
call fcn.140155150
mov r14, rax
mov ecx, 0x104
call fcn.140155150
mov qword [rbp + 0x338], rax
movaps xmmword [rbp + 0x3a0], xmm6
mov qword [rbp + 0x3b8], 7
xor eax, eax
mov ecx, 7
lea r12, [rbp + 0x3d0]
lea r13, [rbp + 0x32c]
lea r15, [rbp + 0x364]
mov rbx, qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor esi, esi
jmp 0x14002826b
cmp eax, 0x103
je 0x1400284cb
inc esi
mov rax, qword [rbp + 0x3a0]
mov rcx, qword [rbp + 0x3b8]
mov qword [rbp + 0x3b0], 0
cmp rcx, 8
lea rcx, [rbp + 0x3a0]
cmovb rax, rcx
mov word [rax], 0
mov eax, dword [rbp + 0x360]
mov dword [rbp + 0x3d0], eax
mov eax, dword [rbp + 0x35c]
mov dword [rbp + 0x364], eax
mov rcx, qword [rbp + 0x330]
mov qword [rsp + 0x38], r12
mov rax, qword [rbp + 0x338]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 0
mov edx, esi
mov r8, r14
mov r9, r15
call rbx
test eax, eax
jne 0x140028250
cmp dword [rbp + 0x32c], 1
jne 0x140028250
mov ebx, dword [rbp + 0x364]
movaps xmmword [rbp + 0xe0], xmm6
movaps xmmword [rbp + 0xf0], xmm6
cmp rbx, 7
ja 0x140028340
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], 7
lea r8, [rbx + rbx]
lea rdi, [rbp + 0xe0]
mov rcx, rdi
mov rdx, r14
call fcn.140355880
lea rax, [rbx*2 + 0xe0]
add rax, rbp
jmp 0x1400283bd
mov r12, rbx
or r12, 7
cmp r12, 0xb
mov eax, 0xa
cmovb r12, rax
lea rcx, [r12 + r12]
cmp r12, 0x7ff
jb 0x14002837b
add rcx, 0x29
call fcn.140154dd0
mov rdi, rax
add rdi, 0x27
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x140028387
add rcx, 2
call fcn.140154dd0
mov rdi, rax
mov qword [rbp + 0xe0], rdi
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], r12
lea r8, [rbx + rbx]
mov rcx, rdi
mov rdx, r14
call fcn.140355880
lea rax, [rdi + rbx*2]
lea r12, [rbp + 0x3d0]
lea rdi, [rbp + 0xe0]
mov word [rax], 0
cmp qword [rbp + 0xf8], 8
jb 0x1400283d3
mov rdi, qword [rbp + 0xe0]
mov r8, qword [rbp + 0x310]
cmp qword [rbp + 0x318], 8
lea rcx, [rbp + 0x300]
jb 0x1400283f2
mov rcx, qword [rbp + 0x300]
mov rdx, rdi
call fcn.1401a8f84
mov ebx, eax
test eax, eax
jne 0x140028470
mov edi, dword [rbp + 0x3d0]
shr edi, 1
mov rax, qword [rbp + 0x3b8]
cmp rax, rdi
jae 0x14002842c
lea rcx, [rbp + 0x3a0]
mov rdx, rdi
mov r9, qword [rbp + 0x338]
call fcn.14001dcb0
jmp 0x140028470
lea r12, [rbp + 0x3a0]
cmp rax, 8
jb 0x140028440
mov r12, qword [rbp + 0x3a0]
mov qword [rbp + 0x3b0], rdi
lea r8, [rdi + rdi]
mov rcx, r12
mov rdx, qword [rbp + 0x338]
call fcn.140355880
mov word [r12 + rdi*2], 0
lea r12, [rbp + 0x3d0]
nop dword [rax + rax]
mov rax, qword [rbp + 0xf8]
cmp rax, 8
jb 0x1400284bc
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1400284b7
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14015511c
test ebx, ebx
mov rbx, qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jne 0x14002825b
mov rcx, r14
call fcn.14015511c
mov rcx, qword [rbp + 0x338]
call fcn.14015511c
mov rcx, qword [rbp + 0x330]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r9, qword [rbp + 0x3b0]
test r9, r9
je 0x140028546
mov r8, qword [rbp + 0x3a0]
mov rax, qword [rbp + 0x3b8]
cmp rax, 8
lea rdi, [rbp + 0x3a0]
mov rcx, rdi
cmovae rcx, r8
mov rdx, 0xfffffffffffffffe
xor r10d, r10d
nop word cs:[rax + rax]
cmp word [rcx + r10*2], 0x5c
je 0x14002856e
add rdx, 0xfffffffffffffffe
inc r10
cmp r9, r10
jne 0x140028530
jmp 0x140028577
cmp byte [rbp + 0x3d7], 0
je 0x1400287bf
mov rcx, qword [rbp + 0x368]
mov rdx, qword [rbp + 0x2e8]
xor r8d, r8d
call fcn.140027e70
jmp 0x140028be7
test rdx, rdx
jne 0x140028706
lea rcx, [rbp + 0xe0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rcx, [rbp - 0x20]
mov edx, 1
call fcn.140033060
lea rcx, [rbp - 0x10]
lea rdx, [rbp + 0xe0]
call fcn.140027a40
movabs rcx, 0xda3b2e63c5daabb5
mov qword [rbp + 0x380], rcx
mov rcx, qword [rbp + 0x380]
mov qword [rbp + 0x340], rcx
movabs rcx, 0x41901356065d7f06
mov qword [rbp + 0x380], rcx
mov rdx, qword [rbp + 0x380]
mov qword [rbp + 0x348], rdx
movabs rdx, 0xda675d17abb5ede9
mov qword [rbp + 0x380], rdx
mov qword [rbp + 0x370], rcx
mov rcx, qword [rbp + 0x370]
mov qword [rbp + 0x388], rcx
lea rcx, [rbp + 0x380]
mov qword [rbp + 0x370], rcx
mov rcx, qword [rbp + 0x370]
movdqa xmm0, xmmword [rbp + 0x340]
pxor xmm0, xmmword [rcx]
movdqa xmmword [rbp + 0x340], xmm0
lea rdx, [rbp + 0x340]
mov rcx, rax
call fcn.140025990
mov r8, qword [rbp + 0x3b0]
cmp qword [rbp + 0x3b8], 8
jb 0x14002865d
mov rdx, qword [rbp + 0x3a0]
jmp 0x140028664
lea rdx, [rbp + 0x3a0]
mov rcx, rax
call fcn.14001f2b0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x380]
call fcn.14002c780
mov rax, qword [rbp + 0x3b8]
cmp rax, 8
jb 0x1400286c8
mov rcx, qword [rbp + 0x3a0]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x1400286c3
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14015511c
movdqu xmm0, xmmword [rbp + 0x380]
movdqu xmm1, xmmword [rbp + 0x390]
movdqa xmmword [rbp + 0x3b0], xmm1
movdqa xmmword [rbp + 0x3a0], xmm0
lea rcx, [rbp - 0x20]
call fcn.14001dbe0
mov r8, qword [rbp + 0x3a0]
mov r9, qword [rbp + 0x3b0]
mov rax, qword [rbp + 0x3b8]
cmp rax, 8
cmovb r8, rdi
xorps xmm6, xmm6
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov ecx, 0xfde9
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movaps xmmword [rbp + 0xf0], xmm6
movaps xmmword [rbp + 0xe0], xmm6
test eax, eax
js 0x140028c4a
mov esi, eax
movsxd rbx, eax
cmp eax, 0xf
ja 0x140028787
mov qword [rbp + 0xf0], rbx
mov qword [rbp + reloc.WS2_32.dll_ntohs8], 0xf
lea rcx, [rbp + 0xe0]
xor edx, edx
mov r8, rbx
call fcn.140355f20
lea r14, [rbx + rbp]
add r14, 0xe0
jmp 0x140028814
mov rax, rbx
or rax, 0xf
cmp rax, 0x17
mov r15d, reloc.WS2_32.dll_shutdown
cmovae r15, rax
cmp r15, 0xfff
jb 0x1400287e3
lea rcx, [r15 + 0x28]
call fcn.140154dd0
mov r14, rax
add r14, 0x27
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x1400287ef
pxor xmm0, xmm0
mov rax, qword [rbp + 0x368]
movdqu xmmword [rax], xmm0
mov qword [rax + 0x10], 0
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
jmp 0x140028be7
lea rcx, [r15 + 1]
call fcn.140154dd0
mov r14, rax
mov qword [rbp + 0xe0], r14
mov qword [rbp + 0xf0], rbx
mov qword [rbp + 0xf8], r15
mov rcx, r14
xor edx, edx
mov r8, rbx
call fcn.140355f20
add r14, rbx
mov byte [r14], 0
cmp qword [rbp + 0xf8], 0x10
jb 0x14002882b
mov rax, qword [rbp + 0xe0]
jmp 0x140028832
lea rax, [rbp + 0xe0]
mov r15, qword [rbp + 0x368]
cmp qword [rbp + 0x3b8], 8
jb 0x14002884a
mov rdi, qword [rbp + 0x3a0]
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
xor edx, edx
mov r8, rdi
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rsi, qword [rbp + 0xf0]
test rsi, rsi
je 0x140028bcc
cmp qword [rbp + 0xf8], 0x10
jb 0x140028896
mov rdi, qword [rbp + 0xe0]
jmp 0x14002889d
lea rdi, [rbp + 0xe0]
mov rcx, rdi
mov edx, 0x2e
mov r8, rsi
call fcn.1403562c0
test rax, rax
je 0x140028b27
lea rbx, [rsi + rdi]
nop word [rax + rax]
cmp byte [rax], 0x2e
je 0x1400288e5
inc rax
mov r8, rbx
sub r8, rax
mov rcx, rax
mov edx, 0x2e
call fcn.1403562c0
test rax, rax
jne 0x1400288c0
jmp 0x140028b27
sub rax, rdi
cmp rax, 0xffffffffffffffff
je 0x140028b27
pxor xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
movdqa xmmword [rbp - 0x20], xmm0
sub rsi, rax
jb 0x140028c4f
cmp rsi, 4
mov ebx, 4
cmovb rbx, rsi
add rdi, rax
mov qword [rbp - 0x10], rbx
mov qword [rbp - 8], reloc.WS2_32.dll_ntohs
lea rsi, [rbp - 0x20]
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call fcn.140355880
or rbx, rsi
mov byte [rbx], 0
movabs rax, 0xda675d17cdc199c7
mov qword [rbp + 0x380], rax
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x340], rax
movabs rdi, 0x41901356065d7f06
mov qword [rbp + 0x380], rdi
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x348], rax
movabs rbx, 0xda675d17abb5ede9
mov qword [rbp + 0x380], rbx
mov qword [rbp + 0x370], rdi
mov rax, qword [rbp + 0x370]
mov qword [rbp + 0x388], rax
lea r14, [rbp + 0x380]
mov qword [rbp + 0x370], r14
mov rax, qword [rbp + 0x370]
movdqa xmm0, xmmword [rbp + 0x340]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x340], xmm0
lea rcx, [rbp + 0x340]
call fcn.1401a6270
cmp qword [rbp - 0x10], rax
jne 0x140028a01
cmp qword [rbp - 8], 0x10
jb 0x1400289e7
mov rsi, qword [rbp - 0x20]
lea rdx, [rbp + 0x340]
mov rcx, rsi
mov r8, rax
call fcn.140356360
test eax, eax
je 0x140028b81
movabs rax, 0xda675d17cdc182c7
mov qword [rbp + 0x380], rax
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x370], rax
mov qword [rbp + 0x380], rdi
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x378], rax
mov qword [rbp + 0x380], rbx
mov qword [rbp + 0x3c8], rdi
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x388], rax
mov qword [rbp + 0x3c8], r14
mov rax, qword [rbp + 0x3c8]
movdqa xmm0, xmmword [rbp + 0x370]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x370], xmm0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x370]
call fcn.14014c670
test al, al
je 0x140028b81
movabs rax, 0xda675d17c8c199c7
mov qword [rbp + 0x380], rax
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x2f0], rax
mov qword [rbp + 0x380], rdi
mov rax, qword [rbp + 0x380]
mov qword [rbp + 0x2f8], rax
mov qword [rbp + 0x380], rbx
mov qword [rbp + 0x3c8], rdi
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x388], rax
mov qword [rbp + 0x3c8], r14
mov rax, qword [rbp + 0x3c8]
movdqa xmm0, xmmword [rbp + 0x2f0]
pxor xmm0, xmmword [rax]
movdqa xmmword [rbp + 0x2f0], xmm0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x2f0]
call fcn.14014c670
mov sil, 1
test al, al
je 0x140028b84
lea rdx, [0x14035c780]
mov rcx, r15
call fcn.1401126b0
xor esi, esi
jmp 0x140028b84
lea rdx, [0x14035c780]
mov rcx, r15
call fcn.1401126b0
mov rax, qword [rbp + 0xf8]
cmp rax, 0x10
jb 0x140028be7
mov rcx, qword [rbp + 0xe0]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140028b7a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14015511c
jmp 0x140028be7
mov sil, 1
mov rax, qword [rbp - 8]
cmp rax, 0x10
jb 0x140028bc3
mov rcx, qword [rbp - 0x20]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140028bbe
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.14015511c
test sil, sil
je 0x140028b36
movdqa xmm0, xmmword [rbp + 0xe0]
movdqa xmm1, xmmword [rbp + 0xf0]
movdqu xmmword [r15 + 0x10], xmm1
movdqu xmmword [r15], xmm0
mov rax, qword [rbp + 0x3b8]
cmp rax, 8
jb 0x140028c2f
mov rcx, qword [rbp + 0x3a0]
lea rdx, [rax*2 + 2]
cmp rdx, 0x1000
jb 0x140028c2a
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x140028c3b
add rax, rax
add rax, 0x29
mov rdx, rax
mov rcx, r8
call fcn.14015511c
mov r14, qword [rbp + 0x368]
jmp 0x14002815e
call fcn.140192f04
call fcn.140110640
call fcn.1401105a0
call fcn.140110640
call fcn.140112d70
int3