Function at 0x140043070
Capabilities:
Get common file path
Get file version info
Query or enumerate registry value

Disassembly:
push rbp
push r14
push r15
lea rbp, [rsp - 0x1890]
mov eax, 0x1990
call fcn.14004e430
sub rsp, rax
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x19b8], rbx
mov qword [rsp + 0x19c0], rsi
mov qword [rsp + 0x19c8], rdi
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rbp + 0x1880], rax
mov rdi, rcx
xor ebx, ebx
xor edx, edx
xor ecx, ecx
call fcn.14003ae30
mov rsi, rax
test rax, rax
je 0x140043262
mov dword [rsp + 0x64], 1
mov dword [rsp + 0x60], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.140054000
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Version
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140043250
xor ecx, ecx
lea rdx, [rsp + 0x70]
lea r8, str.3.0.0.0
nop dword [rax + rax]
movzx eax, word [rdx + rcx*2]
inc rcx
cmp ax, word [r8 + rcx*2 - 2]
jne 0x14004324b
cmp rcx, 8
jne 0x140043140
xor r14d, r14d
xor edx, edx
mov r8d, 0x8c8
lea rcx, [rbp + 0x7b0]
call fcn.140054000
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x1080]
call fcn.140054000
mov edx, 0x400
lea rcx, [rbp + 0x1080]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea r8, [rbp + 0x1080]
mov edx, 0x464
lea rcx, [rbp + 0x7b0]
call fcn.14005d138
lea r8, [0x14009e7e8]
mov edx, 0x464
lea rcx, [rbp + 0x7b0]
call fcn.14005d0b8
lea r8, [rsp + 0x6c]
lea rdx, [rbp + 0x7b0]
lea ecx, [r14 + 3]
call sub.VERSION.dll_GetFileVersionInfoSizeExW
mov r15d, eax
mov edx, eax
lea ecx, [r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14004323d
mov qword [rsp + 0x20], rax
mov r9d, r15d
xor r8d, r8d
lea rdx, [rbp + 0x7b0]
lea ecx, [r14 + 3]
call sub.VERSION.dll_GetFileVersionInfoExW
lea r9, [rsp + 0x68]
lea r8, [rsp + 0x50]
lea rdx, [0x14009a8f8]
mov rcx, rbx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x140043234
mov rax, qword [rsp + 0x50]
movzx r14d, word [rax + 0x16]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
cmp r14d, 0x426c
setb bl
jmp 0x140043250
mov ebx, 1
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, 1
jne 0x140043580
xor ecx, ecx
call fcn.140016420
movzx r15d, al
mov rsi, qword [rdi + 0x78]
test rsi, rsi
je 0x1400435ae
mov rax, qword [rsi]
mov rbx, qword [rax + 0xe0]
mov rcx, rbx
call qword [fcn.14000dba0]
xor r8d, r8d
lea rdx, [rdi + 0x678]
mov rcx, rsi
call rbx
test r15b, r15b
je 0x140043501
test eax, eax
js 0x140043580
cmp dword [rdi + 0x678], 0
je 0x140043580
cmp byte [rdi + 0xaa4], 0
jne 0x140043580
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, rdi
call fcn.140046190
test eax, eax
js 0x1400434dc
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400434e1
mov dword [rdi + 0x6c8], 0x3d0
mov rax, qword [rdi + 8]
mov qword [rdi + 0x6d0], rax
mov dword [rdi + 0x6dc], 0x87
mov dword [rdi + 0x6e0], 0x8001
mov edx, 0xd0
mov rcx, qword [0x1400d90f8]
call qword [sym.imp.USER32.dll_LoadIconW]
mov qword [rdi + 0x6e8], rax
xor eax, eax
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x48], rax
lea rdx, str.ApplicationDisplayName
lea rcx, [rsp + 0x38]
call fcn.140024d50
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400435b9
mov r8, rax
lea rdx, [rsp + 0x30]
call fcn.140025110
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140043382
mov r8, qword [rbx]
jmp 0x140043385
xor r8d, r8d
lea rcx, [rdi + 0x6f0]
mov edx, 0x80
call fcn.14005d138
lea rdx, [rdi + 0x6c8]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
mov rsi, 0xffffffffffffffff
test eax, eax
jne 0x140043405
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x180]
call fcn.140054000
lea r8, str.Shell_NotifyIcon_failed
mov edx, 0x104
lea rcx, [rbp + 0x180]
call fcn.14001d450
mov edx, 0xc9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rbp + 0x180]
mov r8, rsi
mov edx, 0x181
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x14004340c
mov byte [rdi + 0xaa4], 1
mov dword [rdi + 0x9f8], 4
lea rdx, [rdi + 0x6c8]
mov ecx, 4
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
jne 0x14004347f
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x390]
call fcn.140054000
lea r8, str.Shell_NotifyIcon_failed
mov edx, 0x104
lea rcx, [rbp + 0x390]
call fcn.14001d450
mov edx, 0xc9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rbp + 0x390]
mov r8, rsi
mov edx, 0x181
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
or dword [rdi + 0x6dc], 0x10
mov dword [rdi + 0xa7c], 1
test rbx, rbx
je 0x1400434dc
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x1400434dc
mov rbx, qword [rsp + 0x30]
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400434b9
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], 0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400434cf
call fcn.14004d92c
mov qword [rbx + 8], 0
mov edx, 0x18
mov rcx, rbx
call fcn.14004d92c
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140043580
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [fcn.14000dba0]
mov rcx, rbx
call rdi
jmp 0x140043580
cmp byte [rdi + 0xaa4], 0
je 0x140043580
lea rdx, [rdi + 0x6c8]
mov ecx, 2
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
test eax, eax
jne 0x140043579
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5a0]
call fcn.140054000
lea r8, str.Shell_NotifyIcon_failed
mov edx, 0x104
lea rcx, [rbp + 0x5a0]
call fcn.14001d450
mov edx, 0xc9
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetDlgItem]
lea r9, [rbp + 0x5a0]
mov edx, 0x181
mov r8, 0xffffffffffffffff
mov rcx, rax
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140043580
mov byte [rdi + 0xaa4], 0
xor eax, eax
mov rcx, qword [rbp + 0x1880]
xor rcx, rsp
call fcn.14004e4a0
lea r11, [rsp + 0x1990]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004003
call fcn.14004ebc0
nop
mov ecx, 0x80004003
call fcn.14004ebc0
int3