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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf3d9
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5164b0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x5164b0]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov esi, 0x4e870e
lea ecx, [esp + 0x14]
push esi
call fcn.004041e5
xor edi, edi
lea ecx, [esp + 0x2c]
push esi
mov dword [esp + 0x1dc], edi
call fcn.004041e5
lea eax, [esp + 0x10]
mov byte [esp + 0x1d8], 1
push eax
push eax
push str.KeepNDayHistory
push str.CInfos
mov dword [esp + 0x20], 0x1e
call fcn.0044cc7a
mov ecx, eax
call fcn.0044cce4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.0046019c
test al, al
je 0x402a2d
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmovae eax, dword [esp + 0x18]
push eax
push 0x4dde14
push str.HISTORY
call fcn.0044fe3d
mov ecx, eax
call fcn.004502f8
movzx eax, al
mov dword [0x51c158], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004ab3c0
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0xc8]
add esp, 0xc
push 1
push 0x1c
push eax
push edi
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test eax, eax
js 0x402b06
lea eax, [esp + 0xbc]
push eax
call fcn.004041c8
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040414f
mov edi, str.GoogleChromeUser_DataDefaultHistory
push edi
call fcn.004041c8
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0040414f
lea eax, [esp + 0x2c]
push eax
push eax
push str.HisChDir
push str.CInfos
call fcn.0044cc7a
mov ecx, eax
call fcn.0044cf0d
push 0xffffffffffffffff
xor edi, edi
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00403d15
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402b06
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, str.CHROME
push eax
call fcn.0040273a
pop ecx
movzx eax, al
pop ecx
mov dword [0x51c154], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004ab3c0
add esp, 0xc
lea eax, [esp + 0xbc]
push 1
push 0x1a
push eax
push edi
call esi
test eax, eax
js 0x402bd3
lea eax, [esp + 0xbc]
push eax
call fcn.004041c8
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040414f
mov edi, str.SogouExplorerHistoryUrl3.db
push edi
call fcn.004041c8
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.0040414f
lea eax, [esp + 0x2c]
push eax
push eax
push str.HisSoDir
push str.CInfos
call fcn.0044cc7a
mov ecx, eax
call fcn.0044cf0d
push 0xffffffffffffffff
xor edi, edi
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00403d15
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402bd3
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, str.SOGOU
push eax
call fcn.0040273a
pop ecx
movzx eax, al
pop ecx
mov dword [0x51c150], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004ab3c0
add esp, 0xc
lea ecx, [esp + 0x44]
push str.last_install_path
call fcn.004041e5
push str.Software360360se6Chrome
lea ecx, [esp + 0x60]
mov byte [esp + 0x1dc], 2
call fcn.004041e5
lea eax, [esp + 0x14]
mov byte [esp + 0x1d8], 3
push eax
lea eax, [esp + 0x48]
mov ecx, 0x80000001
push eax
lea edx, [esp + 0x64]
call fcn.0040211a
pop ecx
pop ecx
mov bl, al
lea ecx, [esp + 0x5c]
push edi
neg bl
push 1
sbb bl, bl
call fcn.004044e5
push edi
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 1
call fcn.004044e5
inc bl
je 0x402c94
xor ebx, ebx
lea eax, [esp + 0xbc]
inc ebx
push ebx
push 0x1a
push eax
push edi
call esi
test eax, eax
js 0x402dc0
lea eax, [esp + 0xbc]
push eax
call fcn.004041c8
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040414f
jmp 0x402c97
xor ebx, ebx
inc ebx
push str.DefaultHistory
lea ecx, [esp + 0x90]
call fcn.004041e5
mov edi, eax
push str.User_Data_
lea ecx, [esp + 0x78]
mov byte [esp + 0x1dc], 4
call fcn.004041e5
mov esi, eax
push str.360se6_
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1dc], 5
call fcn.004041e5
push esi
mov edx, eax
mov byte [esp + 0x1dc], 6
lea ecx, [esp + 0x60]
call fcn.00403668
pop ecx
push edi
mov edx, eax
mov byte [esp + 0x1dc], 7
lea ecx, [esp + 0x48]
call fcn.00403668
pop ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004033c5
xor edi, edi
lea ecx, [esp + 0x44]
push edi
push ebx
call fcn.004044e5
push edi
push ebx
lea ecx, [esp + 0x64]
call fcn.004044e5
push edi
push ebx
lea ecx, [esp + 0xac]
call fcn.004044e5
push edi
push ebx
lea ecx, [esp + 0x7c]
call fcn.004044e5
push edi
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e0], bl
call fcn.004044e5
lea eax, [esp + 0x2c]
push eax
push eax
push str.His3Dir
push str.CInfos
call fcn.0044cc7a
mov ecx, eax
call fcn.0044cf0d
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.00403d15
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402dc0
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, 0x4dde2c
push eax
call fcn.0040273a
pop ecx
movzx eax, al
pop ecx
mov dword [0x51c14c], eax
push edi
push ebx
lea ecx, [esp + 0x34]
call fcn.004044e5
push edi
push ebx
lea ecx, [esp + 0x1c]
call fcn.004044e5
mov ecx, dword [esp + 0x1d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.004a5088
mov esp, ebp
pop ebp
ret