Function at 0x14004bfa0
Capabilities:
Get file version info
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x238]
sub rsp, 0x310
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14035b8c0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r12, rcx
xor r15b, r15b
call fcn.140011978
mov rcx, rax
test rax, rax
je 0x14004c79f
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r14, vtable.ATL::CAtlStringMgr.0
cmp rax, r14
jne 0x14004c7aa
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rsp + 0x70], rax
lea rbx, [0x1402eb2b8]
mov rdi, 0xffffffffffffffff
cmp rbx, 0x10000
jae 0x14004c044
movzx edx, bx
lea rcx, [rsp + 0x70]
call fcn.140012160
jmp 0x14004c06b
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rbx + rax*2], 0
jne 0x14004c050
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1400029fc
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rbp - 0x60], r13
mov dword [rbp - 0x58], r13d
mov qword [rbp - 0x50], r13
mov r9d, 0x20019
lea r8, str.SOFTWAREClasses.pdf
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.14003cf00
lea rsi, vtable.ATL::CWin32Heap.0
test eax, eax
jne 0x14004c19c
mov dword [rsp + 0x38], r13d
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x78]
xor r8d, r8d
mov rdx, rbx
mov rsi, qword [rbp - 0x60]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c195
mov eax, dword [rsp + 0x78]
dec eax
cmp eax, 1
ja 0x14004c195
mov ebx, dword [rsp + 0x38]
shr ebx, 1
lea edx, [rbx + 1]
lea rcx, [rsp + 0x50]
call fcn.14003cc80
mov dword [rsp + 0x7c], r13d
lea r8, [rsp + 0x7c]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14004c900
mov r14, qword [rsp + 0x50]
lea eax, [rbx + rbx]
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, [0x1402eb2b8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c18e
mov eax, dword [rbp - 0x80]
dec eax
cmp eax, 1
ja 0x14004c18e
mov ebx, dword [rsp + 0x3c]
test r14, r14
je 0x14004c333
test ebx, ebx
je 0x14004c32f
test bl, 1
jne 0x14004c18e
mov eax, ebx
shr rax, 1
cmp word [r14 + rax*2 - 2], r13w
je 0x14004c333
lea r14, vtable.ATL::CAtlStringMgr.0
lea rsi, vtable.ATL::CWin32Heap.0
mov byte [rbp - 0x48], r15b
lea rcx, [rbp - 0x40]
call fcn.1400152d0
nop
lea rax, [0x1402f6aa8]
lea rdx, [0x1402ec748]
cmp byte [rbp - 0x48], 0
cmovne rdx, rax
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004c1c3
mov r8d, eax
lea rcx, [rbp - 0x40]
call fcn.1400029fc
mov rbx, qword [rbp - 0x40]
mov r9, rbx
xor r8d, r8d
mov edx, 0x1174f
mov rcx, qword [r12]
call fcn.14001f800
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c239
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004c803
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rsi
jne 0x14004c803
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rbx, qword [rsp + 0x70]
mov r9, rbx
xor r8d, r8d
mov edx, 0x11750
mov rcx, qword [r12]
call fcn.14001f800
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14004c266
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x60], r13
mov dword [rbp - 0x58], r13d
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004c2bb
mov rax, qword [rsp + 0x60]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004c2a8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004c80b
call fcn.140004154
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r13
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x14004c2ff
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004c797
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rsi
jne 0x14004c797
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140229750
lea r11, [rsp + 0x310]
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 word [r14], r13w
shr ebx, 1
test rsi, rsi
je 0x14004c347
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x60], r13
mov dword [rbp - 0x58], r13d
call fcn.140011978
mov rcx, rax
test rax, rax
je 0x14004c7b1
mov rax, qword [rax]
mov rdx, qword [rax + 0x18]
lea r14, vtable.ATL::CAtlStringMgr.0
cmp rax, r14
jne 0x14004c7bc
lock inc dword [rcx + 0x20]
lea rax, [rcx + 0x10]
add rax, 0x18
mov qword [rbp - 0x68], rax
lea rcx, [rbp - 0x28]
call fcn.140009d24
nop
mov r8d, ebx
mov rdx, qword [rsp + 0x50]
lea rcx, [rbp - 0x28]
call fcn.14000997c
lea r8, [rbp - 0x28]
cmp qword [rbp - 0x10], 8
cmovae r8, qword [rbp - 0x28]
lea rdx, str.SOFTWAREClasses_s_shellOpencommand
lea rcx, [rbp - 0x68]
call fcn.14004c820
mov r9d, 0x20019
mov r8, qword [rbp - 0x68]
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x60]
call fcn.14003cf00
test eax, eax
jne 0x14004c4b3
mov dword [rsp + 0x40], r13d
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x7c]
xor r8d, r8d
lea rdx, [0x1402eb2b8]
mov r14, qword [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c4ac
mov eax, dword [rbp - 0x7c]
dec eax
cmp eax, 1
ja 0x14004c4ac
mov ebx, dword [rsp + 0x40]
shr ebx, 1
mov edx, ebx
lea rcx, [rsp + 0x50]
call fcn.14003cc80
mov dword [rbp - 0x78], r13d
lea r8, [rbp - 0x78]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14004c900
mov rsi, qword [rsp + 0x50]
lea eax, [rbx + rbx]
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x74]
xor r8d, r8d
lea rdx, [0x1402eb2b8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14004c4ac
mov eax, dword [rbp - 0x74]
dec eax
cmp eax, 1
ja 0x14004c4ac
test rsi, rsi
je 0x14004c51b
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x14004c517
test al, 1
jne 0x14004c4ac
shr rax, 1
cmp word [rsi + rax*2 - 2], 0
je 0x14004c51b
lea r14, vtable.ATL::CAtlStringMgr.0
lea rsi, vtable.ATL::CWin32Heap.0
lea rcx, [rbp - 0x28]
call fcn.140009568
nop
mov rdx, qword [rbp - 0x68]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c19c
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004c7fb
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, rsi
jne 0x14004c7fb
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14004c19c
mov word [rsi], r13w
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1400120b0
nop
mov dword [rbp - 0x70], 1
lea r9, [rbp - 0x70]
lea r8, [0x1402f32c0]
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x30]
call fcn.14001d9b0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x30]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x14004c5e9
cmp dword [rbx + 0x10], 0
jl 0x14004c5da
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x14004c5da
call fcn.140002c14
mov rsi, rax
mov ecx, edi
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x14004c789
mov r8, qword [rbx]
mov rcx, qword [r8]
mov r9, qword [rcx + 8]
lea rax, vtable.ATL::CAtlStringMgr.0
cmp rcx, rax
jne 0x14004c7d7
mov rcx, qword [r8 + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea rdx, vtable.ATL::CWin32Heap.0
cmp rax, rdx
jne 0x14004c7c3
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x14004c5e9
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400029fc
nop
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
lea r14, vtable.ATL::CAtlStringMgr.0
jg 0x14004c641
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004c7e3
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea r9, vtable.ATL::CWin32Heap.0
cmp rax, r9
jne 0x14004c7e3
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x30]
cmp dword [rcx - 0x10], 0
je 0x14004c732
lea rdx, [rbp - 0x6c]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14004c732
mov ecx, esi
call fcn.140236bc0
mov rbx, rax
test rax, rax
je 0x14004c732
mov r9, rax
mov r8d, esi
mov edx, dword [rbp - 0x6c]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov rcx, rbx
test eax, eax
je 0x14004c72c
mov qword [rsp + 0x68], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x68]
lea rdx, str.VarFileInfoTranslation
call qword [sym.imp.VERSION.dll_VerQueryValueW]
mov rax, qword [rsp + 0x68]
movzx r9d, word [rax + 2]
movzx r8d, word [rax]
lea rdx, str.StringFileInfo_04x_04xProductName
lea rcx, [rbp]
call qword [sym.imp.USER32.dll_wsprintfW]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x68]
lea rdx, [rbp]
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x14004c729
cmp dword [rsp + 0x48], 0
jbe 0x14004c729
mov rdx, qword [rsp + 0x68]
test rdx, rdx
jne 0x14004c702
mov eax, r13d
jmp 0x14004c70f
mov rax, rdi
inc rax
cmp word [rdx + rax*2], 0
jne 0x14004c705
mov r8d, eax
lea rcx, [rsp + 0x70]
call fcn.1400029fc
mov rcx, rbx
call fcn.140233ed0
mov r15b, 1
jmp 0x14004c732
mov rcx, rbx
call fcn.140233ed0
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14004c4b3
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
cmp rax, r14
jne 0x14004c7f3
mov rcx, qword [rcx + 8]
mov rax, qword [rcx]
mov r8, qword [rax + 8]
lea rsi, vtable.ATL::CWin32Heap.0
cmp rax, rsi
jne 0x14004c7eb
mov r8, rdx
xor edx, edx
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14004c4ba
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x14004c5e9
call r8
jmp 0x14004c2ff
mov ecx, 0x80004005
call fcn.140002cbc
int3
call rdx
jmp 0x14004c015
mov ecx, 0x80004005
call fcn.140002cbc
int3
call rdx
jmp 0x14004c37b
mov rdx, rbx
call r8
lea rax, [rsi + 0x18]
mov qword [rsp + 0x30], rax
jmp 0x14004c5e9
mov rdx, rbx
mov rcx, r8
call r9
nop
jmp 0x14004c789
call r8
jmp 0x14004c641
call r8
jmp 0x14004c4ba
call r8
jmp 0x14004c4b3
call r8
jmp 0x14004c19c
call r8
jmp 0x14004c239
call fcn.140230b64
int3