Function at 0x140006220
Capabilities:
Check if file exists
Get file attributes
Read .ini file
Set registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x7e8]
sub rsp, 0x8d0
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
mov rbx, rcx
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x60], r14
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x80]
call fcn.14001a650
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3a0]
call fcn.14001a650
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x190]
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x14000655f
mov dword [rsp + 0x30], 1
lea rsi, [0x140065980]
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x80]
lea r8, [0x1400476d0]
lea rdx, str.ItemFavIconFile
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x3a0]
lea r8, [0x1400476d0]
lea rdx, str.ItemName
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x190]
lea r8, [0x1400476d0]
lea rdx, str.ItemUrl
mov rcx, rbx
call fcn.14000e830
mov r9, rsi
xor r8d, r8d
lea rdx, str.Index
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ebx, eax
lea r9, [rbp + 0x190]
lea r8, [rbp + 0x3a0]
lea rdx, [rbp - 0x80]
lea rcx, str._nCreateEdgeFavBar:__nItemFavIconFile_s_nItemName_s_ntszItemUrl_s
call fcn.14000b8c0
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400063a7
lea rcx, str._nError:_CreateEdgeFavBar__icon_file_does_not_exist
call fcn.14000b8c0
mov dword [0x1400667b8], 1
mov r8d, ebx
lea rdx, str.SOFTWAREMicrosoftMicrosoftEdgeMainFavoriteBarItemsFavorite_d
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x5b0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000654b
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x58], r14d
mov r9d, 0x2001f
lea r8, [rbp + 0x5b0]
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x50]
call fcn.140011540
test eax, eax
je 0x14000645c
lea rcx, str._nError:_CreateEdgeFavBar_open_registry_path_fail
call fcn.14000b8c0
mov dword [0x1400667b8], 1
mov rdi, qword [rsp + 0x50]
jmp 0x14000655f
lea rcx, [rbp - 0x80]
or rbx, 0xffffffffffffffff
mov rax, rbx
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006470
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ItemFavIconFile
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rcx, [rbp + 0x3a0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400064b3
inc eax
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x3a0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ItemName
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea rax, [rbp + 0x190]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400064f1
inc ebx
lea eax, [rbx + rbx]
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.ItemUrl
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test rdi, rdi
je 0x14000653f
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r14
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
call fcn.14000ddd0
jmp 0x14000655f
lea rdx, [rbp + 0x5b0]
lea rcx, str._nError:_CreateEdgeFavBar__create_registry_path___s
call fcn.14000b8c0
nop
test rdi, rdi
je 0x14000656d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0x8d0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret