Function at 0x420e70
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x244
push 0xffffffffffffffff
push 0x490640
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4b0650]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x24c]
push 0x206
xor ebx, ebx
lea ecx, [ebp + 0x3a]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x14], esi
mov word [ebp + 0x38], ax
call fcn.00477c40
add esp, 0xc
lea edx, [ebp + 0x38]
push edx
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jl 0x4210b6
push str.GoogleChromeUser_DataDefaultCookies
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp + 0x38]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4210b6
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
call fcn.00427100
lea edx, [ebp + 0x38]
push edx
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00416710
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
push ecx
mov byte [ebp - 4], 2
call fcn.00425270
add esp, 8
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
mov byte [ebp - 4], 3
jae 0x420f46
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x20]
call fcn.00427260
push str.select_value_from_cookies_where_host_key_.uu.cyberlink.com__and_name_session_id_
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x20]
call fcn.00427560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.00427480
lea ecx, [ebp - 0x3c]
test al, al
jne 0x42100a
push 0
call fcn.00427420
mov ebx, eax
test ebx, ebx
jne 0x420f88
xor edx, edx
jmp 0x420fd4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
cmp edi, 0x3fffffff
jg 0x420fd0
lea eax, [edi + edi]
call fcn.00478cc0
mov esi, esp
mov dword [ebp - 0x10], esp
test esi, esi
je 0x420fcd
push edi
push esi
push 0xffffffffffffffff
xor eax, eax
push ebx
push eax
mov word [esi], ax
mov eax, 3
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
neg eax
sbb eax, eax
and eax, esi
mov esi, dword [ebp - 0x14]
jmp 0x420fd2
mov esi, dword [ebp - 0x14]
xor eax, eax
mov edx, eax
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420fe0
sub eax, edi
sar eax, 1
push eax
push edx
mov ecx, esi
call fcn.00415c80
lea ecx, [ebp - 0x3c]
call fcn.00427490
mov ebx, 1
jmp 0x420f64
mov byte [ebp - 4], 3
call fcn.004273c0
cmp dword [ebp + 0x34], 0x10
jb 0x421025
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00477a90
add esp, 4
mov edi, 8
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp dword [ebp + 0x18], edi
jb 0x42104d
mov edx, dword [ebp + 4]
push edx
call fcn.00477a90
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov word [ebp + 4], ax
mov byte [ebp - 4], al
call fcn.00427500
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x18], edi
jb 0x42107d
mov eax, dword [esi + 4]
jmp 0x421080
lea eax, [esi + 4]
push eax
push str.CInternal::readChromeCookie
push str._UNO___s___s
call fcn.00419c60
add esp, 0xc
mov eax, ebx
jmp 0x4210b8
xor eax, eax
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00477bf8
add ebp, 0x244
mov esp, ebp
pop ebp
ret 4