Function at 0x140002520
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 - 0x220]
sub rsp, 0x320
mov rax, qword [0x140013010]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rcx
xor edx, edx
lea r12d, [rdx - 1]
mov r8d, 0x110
lea rcx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x10]
call fcn.1400047a0
nop
mov rdx, rbx
lea rcx, str.GetExtensionStateFromFile::_Using_Chrome_Pref_file:
call fcn.140001780
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor edx, edx
lea r8d, [r12 + 4]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140002cc9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, rbx
lea rcx, [rbp - 0x10]
call fcn.140004620
cmp qword [rbp + 0x80], r13
je 0x140002cd9
mov qword [rsp + 0x50], r13
mov word [rsp + 0x58], 1
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx + 0x38]
mov qword [rsp + 0x40], rax
test rax, rax
sete byte [rsp + 0x48]
mov byte [rsp + 0x49], r13b
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 0xf
mov byte [rsp + 0x70], r13b
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x60], xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
movzx r14d, byte [rsp + 0x49]
movzx edi, byte [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
movzx r15d, byte [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
test dil, dil
jne 0x14000267b
test rbx, rbx
je 0x140002675
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 0x140002675
movzx r14d, al
jmp 0x140002678
mov rbx, r13
mov dil, 1
test r15b, r15b
jne 0x140002699
test rsi, rsi
je 0x140002693
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 0x140002696
mov rsi, r13
mov r15b, 1
test rbx, rbx
jne 0x14000277f
test rsi, rsi
jne 0x140002788
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x60], r13d
mov r8d, 0x400
lea rcx, [rbp - 0x58]
call fcn.140004c60
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
mov rcx, qword [rbp - 0x80]
add rcx, 2
call fcn.140009e10
mov r14, rax
mov r8, qword [rbp - 0x80]
add r8, 2
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0x10
cmovae rdx, qword [rsp + 0x70]
mov r8, qword [rbp - 0x80]
mov rcx, r14
call fcn.14000aa87
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.140005470
cmp qword [rax + 0x48], 0
jne 0x140002b7c
lea rdx, str.extensions
lea rcx, [rbp - 0x70]
call fcn.140004d80
test rax, rax
je 0x140002b7c
lea rdx, str.extensions
lea rcx, [rbp - 0x70]
call fcn.140004d80
lea rbx, [0x140013af8]
mov edi, 4
test rax, rax
je 0x14000280c
lea rsi, [rax + 0x14]
jmp 0x14000285a
test rsi, rsi
jne 0x1400026ab
test dil, dil
jne 0x1400027a9
test rbx, rbx
je 0x1400027a6
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 0x1400027a6
movzx r14d, al
jmp 0x1400027a9
mov rbx, r13
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rbp - 0x78]
cmp rcx, rdx
jae 0x1400027d8
lea rax, [rcx + 1]
mov qword [rbp - 0x80], rax
lea rax, [rsp + 0x70]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x70]
mov byte [rax + rcx], r14b
mov byte [rax + rcx + 1], 0
jmp 0x1400027e6
movzx r9d, r14b
lea rcx, [rsp + 0x70]
call fcn.140005880
test rbx, rbx
je 0x140002801
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 0x140002801
xor dil, dil
jmp 0x140002657
mov rbx, r13
mov dil, 1
jmp 0x140002657
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdi + rcx]
cmp dword [0x140013ae8], eax
jle 0x140002857
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x140002857
mov dword [0x140013b08], r13d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov rsi, rbx
lea rdx, str.settings
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x140002af5
lea rdx, str.settings
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x14000288c
lea rsi, [rax + 0x14]
jmp 0x1400028da
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdi + rcx]
cmp dword [0x140013ae8], eax
jle 0x1400028d7
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x1400028d7
mov dword [0x140013b08], r13d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov rsi, rbx
lea rdx, str.efaidnbmnnnibpcajpcglclefindmkaj
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x140002a6b
lea rdx, str.efaidnbmnnnibpcajpcglclefindmkaj
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x14000290c
lea rsi, [rax + 0x14]
jmp 0x14000295a
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdi + rcx]
cmp dword [0x140013ae8], eax
jle 0x140002957
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x140002957
mov dword [0x140013b08], r13d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov rsi, rbx
lea rdx, str.state
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x1400029e1
lea rdx, str.state
mov rcx, rsi
call fcn.140004d80
test rax, rax
je 0x14000298e
lea rbx, [rax + 0x14]
mov r12d, dword [rbx]
jmp 0x140002c0c
mov rax, qword gs:[0x58]
mov rdx, qword [rax]
mov eax, dword [rdi + rdx]
cmp dword [0x140013ae8], eax
jle 0x1400029d9
lea rcx, [0x140013ae8]
call fcn.140009a74
cmp dword [0x140013ae8], 0xffffffff
jne 0x1400029d9
mov dword [0x140013b08], r13d
lea rcx, [0x14000ad60]
call fcn.140009df8
lea rcx, [0x140013ae8]
call fcn.140009a14
mov r12d, dword [rbx]
jmp 0x140002c0c
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002c0c
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140002a5f
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp + 0x100]
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 0x140002c0c
lea r8, str.GetExtensionStateFromFile::_Couldnt_find__state__in_Chrome_Prefs
jmp 0x140002bf9
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002c0c
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140002ae9
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp + 0x100]
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 0x140002c0c
lea r8, str.GetExtensionStateFromFile::_Couldnt_find__efaidnbmnnnibpcajpcglclefindmkaj__in_Chrome_Prefs
jmp 0x140002bf9
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002c0c
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140002b73
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp + 0x100]
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 0x140002c0c
lea r8, str.GetExtensionStateFromFile::_Couldnt_find__settings__in_Chrome_Prefs
jmp 0x140002bf9
xor edx, edx
mov r8d, 0x106
lea rcx, [rbp + 0x100]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x100]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x140002c0c
mov rcx, qword [0x140013ac8]
test rcx, rcx
jne 0x140002bf2
lea r8, str.ChromeReprompt.txt
mov edx, 0x104
lea rcx, [rbp + 0x100]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
lea r8, [0x14000b90c]
lea rdx, [rbp + 0x100]
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 0x140002c0c
lea r8, str.GetExtensionStateFromFile::_Doc_has_parse_error_or_couldnt_find__extensions__in_Chrome_Prefs
lea r9, [0x14000b878]
lea rdx, str._s_____s_n
call fcn.140001040
lea rcx, [rbp]
call fcn.140004ef0
test rax, rax
jne 0x140002c36
mov rax, qword [rbp - 0x10]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x10]
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 - 0x50]
test rdi, rdi
je 0x140002c88
cmp qword [rdi], 0
je 0x140002c6c
mov rbx, qword [rdi]
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
je 0x140002c6c
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 0x140002c51
mov edx, 1
mov rcx, qword [rdi + 0x20]
call fcn.140009914
mov edx, 0x28
mov rcx, rdi
call fcn.140009914
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0x10
jb 0x140002cd9
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002cc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002cc2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140009914
jmp 0x140002cd9
mov rdx, rbx
lea rcx, str.GetExtensionStateFromFile::_FAILED_to_find_file_
call fcn.140001780
nop
lea rcx, [rbp - 0x10]
call fcn.1400023e0
mov eax, r12d
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400098f0
lea r11, [rsp + 0x320]
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