Function at 0x140002fd0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x410]
sub rsp, 0x510
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x400], rax
mov r13, rcx
lea r8, str.Default
mov edx, 0x104
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1f0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0x1f0]
call fcn.140002220
test al, al
je 0x1400036d6
lea rcx, [rbp + 0x1f0]
mov r15, 0xffffffffffffffff
mov rax, r15
inc rax
cmp word [rcx + rax*2], 0
jne 0x140003056
test rax, rax
je 0x1400036d6
lea r8, str.GoogleChromeUser_Data_
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.Local_State
mov edx, 0x104
lea rcx, [rbp + 0x1f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0xe0]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp + 0xe0]
call fcn.1400047a0
nop
lea rdx, [rbp + 0x1f0]
lea rcx, [rbp + 0xe0]
call fcn.140004620
cmp qword [rbp + 0x170], 0
je 0x140003640
xor edx, edx
mov qword [rsp + 0x30], rdx
mov word [rsp + 0x38], 1
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x128]
mov qword [rsp + 0x20], rax
test rax, rax
sete byte [rsp + 0x28]
mov byte [rsp + 0x29], dl
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], dl
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
movzx r14d, byte [rsp + 0x29]
movzx edi, byte [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
movzx r12d, byte [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
nop dword [rax]
test dil, dil
jne 0x140003183
test rbx, rbx
je 0x14000317e
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x14000317e
movzx r14d, al
jmp 0x140003180
xor ebx, ebx
mov dil, 1
test r12b, r12b
jne 0x1400031a0
test rsi, rsi
je 0x14000319b
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
jne 0x14000319d
xor esi, esi
mov r12b, 1
test rbx, rbx
jne 0x140003290
test rsi, rsi
jne 0x140003299
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], rax
xor r12d, r12d
mov dword [rbp - 0x80], r12d
mov r8d, 0x400
lea rcx, [rbp - 0x78]
call fcn.140004c60
mov qword [rbp - 0x48], r12
mov qword [rbp - 0x40], r12
mov rcx, qword [rsp + 0x60]
add rcx, 2
call fcn.140009e10
mov r14, rax
mov r8, qword [rsp + 0x60]
add r8, 2
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, r14
call fcn.14000aa87
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140005470
cmp qword [rax + 0x48], r12
jne 0x1400034e6
lea rdx, str.profile
lea rcx, [rsp + 0x70]
call fcn.140004d80
test rax, rax
je 0x1400034e6
lea rdx, str.profile
lea rcx, [rsp + 0x70]
call fcn.140004d80
lea rdi, [0x140013af8]
mov esi, 4
test rax, rax
je 0x14000331e
lea rbx, [rax + 0x14]
jmp 0x14000336c
test rsi, rsi
jne 0x1400031b2
test dil, dil
jne 0x1400032b9
test rbx, rbx
je 0x1400032b7
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sgetc_void____ptr64]
cmp eax, 0xffffffff
je 0x1400032b7
movzx r14d, al
jmp 0x1400032b9
xor ebx, ebx
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x68]
cmp rcx, rdx
jae 0x1400032eb
lea rax, [rcx + 1]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x50]
mov byte [rax + rcx], r14b
mov byte [rax + rcx + 1], 0
jmp 0x1400032f9
movzx r9d, r14b
lea rcx, [rsp + 0x50]
call fcn.140005880
test rbx, rbx
je 0x140003314
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::sbumpc_void____ptr64]
cmp eax, 0xffffffff
je 0x140003314
xor dil, dil
jmp 0x140003160
xor ebx, ebx
mov dil, 1
jmp 0x140003160
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x140013ae8], eax
jle 0x140003369
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x140003369
mov dword [0x140013b08], r12d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov rbx, rdi
lea rdx, str.last_used
mov rcx, rbx
call fcn.140004d80
xor edx, edx
test rax, rax
je 0x14000346d
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x28]
call sub.VCRUNTIME140.dll_memset
lea rdx, str.last_used
mov rcx, rbx
call fcn.140004d80
test rax, rax
je 0x1400033af
lea rdi, [rax + 0x14]
jmp 0x1400033fa
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rsi + rcx]
cmp dword [0x140013ae8], eax
jle 0x1400033fa
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x1400033fa
mov dword [0x140013b08], r12d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov rdx, qword [rdi]
lea rax, [rbp - 0x28]
mov qword [rbp - 0x30], rax
mov r8d, 3
lea rcx, [rbp - 0x30]
call fcn.140004a40
mov rcx, qword [rbp - 0x30]
nop dword [rax + rax]
inc r15
cmp word [rcx + r15*2], 0
jne 0x140003420
test r15, r15
je 0x140003455
mov r8, rcx
mov edx, 0x104
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov rdx, qword [rbp - 0x30]
lea rcx, str.GetChromeLastUsedProfilePath::_Found_last_Used_Profile_
call fcn.140001780
mov rcx, qword [rbp - 0x30]
lea rax, [rbp - 0x28]
cmp rcx, rax
je 0x14000356a
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000356a
mov r8d, 0x106
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000356a
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x1400034dd
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp - 0x30]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x14000356a
lea r8, str.GetChromeLastUsedProfilePath::_Couldnt_find__last_used__in_Chrome_Prefs
jmp 0x140003557
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000356a
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140003550
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp - 0x30]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x14000356a
lea r8, str.GetChromeLastUsedProfilePath::_Either_Doc_has_parse_error_or_couldnt_find__profile__in_Chrome_Prefs
lea r9, [0x14000b878]
lea rdx, str._s_____s_n
call fcn.140001040
lea rcx, [rbp + 0xf0]
call fcn.140004ef0
test rax, rax
jne 0x14000359d
mov rax, qword [rbp + 0xe0]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0xe0]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, r14
call fcn.140009914
nop
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x1400035f7
cmp qword [rdi], 0
je 0x1400035db
mov rbx, qword [rdi]
nop dword [rax + rax]
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
je 0x1400035db
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x1400035c0
mov edx, 1
mov rcx, qword [rdi + 0x20]
call fcn.140009914
mov edx, 0x28
mov rcx, rdi
call fcn.140009914
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x1400036c5
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003636
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003636
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009914
jmp 0x1400036c5
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1400036c5
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x1400036aa
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp - 0x30]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x1400036c5
lea r9, [rbp + 0x1f0]
lea r8, str.GetChromeLastUsedProfilePath::_Failed_to_open_file
lea rdx, str._s_____s_n
call fcn.140001040
nop
lea rcx, [rbp + 0xe0]
call fcn.1400023e0
jmp 0x14000375a
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp - 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x14000375a
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140003740
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp - 0x30]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp - 0x30]
lea rcx, [0x140013ac8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov rcx, qword [0x140013ac8]
test rcx, rcx
je 0x14000375a
lea r9, [0x14000b878]
lea r8, str.GetChromeLastUsedProfilePath::_FAILED_to_get_local_appdata_folder_path
lea rdx, str._s_____s_n
call fcn.140001040
mov rcx, qword [rbp + 0x400]
xor rcx, rsp
call fcn.1400098f0
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret