Function at 0x1400065a0
Capabilities:
Check if file exists
Create directory
Get file attributes
Read .ini file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0xe48]
sub rsp, 0xf30
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400623d0]
xor rax, rsp
mov qword [rbp + 0xe20], rax
mov rbx, rcx
xor r15d, r15d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x58], r15d
mov qword [rsp + 0x60], r15
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.14001a650
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x3e0]
call fcn.14001a650
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x5f0]
call fcn.14001a650
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call fcn.14001a650
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x140006ac4
mov dword [rsp + 0x30], 1
lea rdi, [0x140065980]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x1d0]
lea r8, [0x1400476d0]
lea rdx, str.ItemFavIconFile
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x3e0]
lea r8, [0x1400476d0]
lea rdx, str.ItemName
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp + 0x5f0]
lea r8, [0x1400476d0]
lea rdx, str.ItemUrl
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x104
lea r9, [rbp - 0x40]
lea r8, [0x1400476d0]
lea rdx, str.RegFile
mov rcx, rbx
call fcn.14000e830
mov r9, rdi
xor r8d, r8d
lea rdx, str.Index
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov r14d, eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x5f0]
lea r8, [rbp + 0x3e0]
lea rdx, [rbp + 0x1d0]
lea rcx, str._nCreateEdgeFavBarReg:__nItemFavIconFile_s_nItemName_s_nItemUrl_s_nRegFile_s
call fcn.14000b8c0
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp ebx, 0xffffffff
jne 0x14000678d
lea rcx, str._nError:_CreateEdgeFavBarReg__icon_file_does_not_exist
call fcn.14000b8c0
mov dword [0x1400667b8], 1
or rbx, 0xffffffffffffffff
cmp edi, 0xffffffff
jne 0x1400068ec
movaps xmm0, xmmword [str.YWindows_Registry_Editor_Version_5.00_r_n]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm1, xmmword [0x14004ab60]
movaps xmmword [rbp - 0x80], xmm1
movaps xmm0, xmmword [0x14004ab70]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm1, xmmword [0x14004ab80]
movaps xmmword [rbp - 0x60], xmm1
movaps xmm0, xmmword [0x14004ab90]
movaps xmmword [rbp - 0x50], xmm0
mov eax, 0xfeff
mov word [rsp + 0x70], ax
lea rax, [rsp + 0x70]
mov rdi, rbx
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1400067e4
add edi, edi
mov rcx, r15
movzx eax, word [rbp + rcx - 0x40]
mov word [rbp + rcx + 0x800], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x1400067f3
mov esi, 0x5c
mov edx, esi
lea rcx, [rbp + 0x800]
call fcn.14001ae48
test rax, rax
je 0x140006825
mov word [rax], r15w
lea rdx, [0x140047570]
lea rcx, [rbp + 0x800]
call fcn.14001b0f4
test rax, rax
je 0x14000687a
nop dword [rax]
lea rcx, [rbp + 0x800]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140006861
xor edx, edx
lea rcx, [rbp + 0x800]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x140047570]
xor ecx, ecx
call fcn.14001b0f4
test rax, rax
je 0x14000687a
mov word [rax - 2], si
jmp 0x140006840
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
test rax, rax
je 0x1400068d2
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, edi
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400068ec
lea rdx, [rbp - 0x40]
lea rcx, str._nFailed_to_create__s_reg_file
call fcn.14000b8c0
mov dword [0x1400667b8], 1
mov r8d, r14d
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftMicrosoftEdgeMainFavoriteBarItemsFavorite_d
lea rcx, [rbp + 0xa00]
call qword [sym.imp.USER32.dll_wsprintfW]
mov r8d, r14d
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftMicrosoftEdgeMainFavoriteBarItemsFavorite_d
lea rcx, [rbp + 0xc10]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rbp + 0x1d0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x140006924
test rax, rax
je 0x1400069a8
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1d0]
lea rdx, str.ItemFavIconFile
lea rcx, [rbp + 0xa00]
call fcn.140014800
test eax, eax
je 0x14000698b
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1d0]
lea rdx, str.ItemFavIconFile
lea rcx, [rbp + 0xc10]
call fcn.140014800
test eax, eax
jne 0x1400069a8
lea rdx, [rbp + 0x1d0]
lea rcx, str._nError_CreateEdgeFavBarReg_Entry_ItemFavIconFile_s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
lea rcx, [rbp + 0x3e0]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400069b2
test rax, rax
je 0x140006a36
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x3e0]
lea rdx, str.ItemName
lea rcx, [rbp + 0xa00]
call fcn.140014800
test eax, eax
je 0x140006a19
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x3e0]
lea rdx, str.ItemName
lea rcx, [rbp + 0xc10]
call fcn.140014800
test eax, eax
jne 0x140006a36
lea rdx, [rbp + 0x3e0]
lea rcx, str._nError_CreateEdgeFavBarReg_Entry_ItemName_s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
lea rax, [rbp + 0x5f0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140006a40
test rbx, rbx
je 0x140006ac4
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x5f0]
lea rdx, str.ItemUrl
lea rcx, [rbp + 0xa00]
call fcn.140014800
test eax, eax
je 0x140006aa7
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x5f0]
lea rdx, str.ItemUrl
lea rcx, [rbp + 0xc10]
call fcn.140014800
test eax, eax
jne 0x140006ac4
lea rdx, [rbp + 0x1d0]
lea rcx, str._nError_CreateEdgeFavBarReg_Entry_ItemUrl_s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
mov rcx, qword [rbp + 0xe20]
xor rcx, rsp
call fcn.14001a120
lea r11, [rsp + 0xf30]
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