Function at 0x140007960
Capabilities:
Check if file exists
Create directory
Get file attributes
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x7e8]
sub rsp, 0x8d0
mov qword [rsp + 0x48], 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 dword [rbp + 0x1c0], r14d
xor edx, edx
mov r8d, 0x1fc
lea rcx, [rbp + 0x1c4]
call fcn.14001a650
mov dword [rbp + 0x3c0], r14d
xor edx, edx
mov r8d, 0x1fc
lea rcx, [rbp + 0x3c4]
call fcn.14001a650
mov qword [rsp + 0x50], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x60], r14
mov rcx, rbx
call fcn.140005bd0
test eax, eax
je 0x140007e4d
mov dword [rsp + 0x30], r14d
lea rdi, [0x140065980]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x1c0]
lea r8, [0x1400476d0]
lea rdx, [0x14004b120]
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp + 0x3c0]
lea r8, [0x1400476d0]
lea rdx, str.SecondaryURL
mov rcx, rbx
call fcn.14000e830
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x100
lea r9, [rbp - 0x40]
lea r8, [0x1400476d0]
lea rdx, str.RegFile
mov rcx, rbx
call fcn.14000e830
lea r8, [rbp - 0x40]
lea rdx, [rbp + 0x1c0]
lea rcx, str._nCreating_IEHome__s_in_the_RegFile__s
call fcn.14000b8c0
lea rcx, [rbp + 0x1c0]
or rdi, 0xffffffffffffffff
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007ab0
test rax, rax
jne 0x140007ad0
lea rcx, str._nIEHomeUrl_not_specified
call fcn.14001c2d0
jmp 0x140007e4d
lea rcx, [rbp - 0x40]
mov rax, rdi
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007ae0
test rax, rax
jne 0x140007b00
lea rcx, str._nRegFile_not_specified
call fcn.14001c2d0
jmp 0x140007e4d
lea rcx, [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140007c6c
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 rbx, rdi
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140007b60
add ebx, ebx
mov rcx, r14
nop
movzx eax, word [rbp + rcx - 0x40]
mov word [rbp + rcx + 0x5c0], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x140007b70
mov esi, 0x5c
mov edx, esi
lea rcx, [rbp + 0x5c0]
call fcn.14001ae48
test rax, rax
je 0x140007ba2
mov word [rax], r14w
lea rdx, [0x140047570]
lea rcx, [rbp + 0x5c0]
call fcn.14001b0f4
test rax, rax
je 0x140007bfa
nop word [rax + rax]
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140007be1
xor edx, edx
lea rcx, [rbp + 0x5c0]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea rdx, [0x140047570]
xor ecx, ecx
call fcn.14001b0f4
test rax, rax
je 0x140007bfa
mov word [rax - 2], si
jmp 0x140007bc0
mov qword [rsp + 0x30], r14
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 0x140007c52
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
mov r8d, ebx
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 0x140007c6c
lea rdx, [rbp - 0x40]
lea rcx, str._nFailed_to_create__s_reg_file
call fcn.14000b8c0
mov dword [0x1400667b8], 1
lea rcx, [rbp + 0x1c0]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], 0
jne 0x140007c76
test eax, eax
je 0x140007e33
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Start_Page
lea rcx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007d9c
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Default_Page_URL
lea rcx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007d9c
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Start_Page
lea rcx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007d9c
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Default_Page_URL
lea rcx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007d9c
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Start_Page
lea rcx, str.HKEY_USERS.DEFAULTSOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007d9c
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], r14d
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x1c0]
lea rdx, str.Default_Page_URL
lea rcx, str.HKEY_USERS.DEFAULTSOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
jne 0x140007dbd
lea r8, [rbp + 0x1c0]
lea rdx, [rbp - 0x40]
lea rcx, str._nError_Creating_IE_Home_Entry_in__s___s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
lea rax, [rbp + 0x3c0]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140007dc4
test rdi, rdi
je 0x140007e4d
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x3c0]
lea rdx, str.Secondary_Start_Pages
lea rcx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
je 0x140007e43
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 2
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x3c0]
lea rdx, str.Secondary_Start_Pages
lea rcx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftInternet_ExplorerMain
call fcn.140014800
test eax, eax
jne 0x140007e4d
jmp 0x140007e43
lea rdx, [rbp - 0x40]
lea rcx, str._nError_blank_IE_Home_URL_cannot_be_set_in__s
call fcn.14000b8c0
mov dword [0x1400667b8], 1
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