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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ce682
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5154b0]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov eax, dword [0x5154b0]
xor eax, esp
push eax
lea eax, [esp + 0x1d0]
mov dword fs:[0], eax
mov esi, 0x4e77ae
lea ecx, [esp + 0x14]
push esi
call fcn.00404860
xor edi, edi
lea ecx, [esp + 0x2c]
push esi
mov dword [esp + 0x1dc], edi
call fcn.00404860
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.0044a20d
mov ecx, eax
call fcn.0044a277
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
call fcn.0045d814
test al, al
je 0x402ac8
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push dword [esp + 0x24]
cmovae eax, dword [esp + 0x18]
push eax
push 0x4dce74
push str.HISTORY
call fcn.0044d523
mov ecx, eax
call fcn.0044d9de
movzx eax, al
mov dword [0x51b188], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004aa670
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 0x402ba1
lea eax, [esp + 0xbc]
push eax
call fcn.00404843
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004047ca
mov edi, str.GoogleChromeUser_DataDefaultHistory
push edi
call fcn.00404843
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.004047ca
lea eax, [esp + 0x2c]
push eax
push eax
push str.HisChDir
push str.CInfos
call fcn.0044a20d
mov ecx, eax
call fcn.0044a4a0
push 0xffffffffffffffff
xor edi, edi
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00404390
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402ba1
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, str.CHROME
push eax
call fcn.004027d5
pop ecx
movzx eax, al
pop ecx
mov dword [0x51b184], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004aa670
add esp, 0xc
lea eax, [esp + 0xbc]
push 1
push 0x1a
push eax
push edi
call esi
test eax, eax
js 0x402c6e
lea eax, [esp + 0xbc]
push eax
call fcn.00404843
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004047ca
mov edi, str.SogouExplorerHistoryUrl3.db
push edi
call fcn.00404843
pop ecx
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.004047ca
lea eax, [esp + 0x2c]
push eax
push eax
push str.HisSoDir
push str.CInfos
call fcn.0044a20d
mov ecx, eax
call fcn.0044a4a0
push 0xffffffffffffffff
xor edi, edi
lea eax, [esp + 0x30]
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00404390
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
call ebx
cmp eax, 0xffffffff
je 0x402c6e
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, str.SOGOU
push eax
call fcn.004027d5
pop ecx
movzx eax, al
pop ecx
mov dword [0x51b180], eax
push 0x104
lea eax, [esp + 0xc0]
push edi
push eax
call fcn.004aa670
add esp, 0xc
lea ecx, [esp + 0x44]
push str.last_install_path
call fcn.00404860
push str.Software360360se6Chrome
lea ecx, [esp + 0x60]
mov byte [esp + 0x1dc], 2
call fcn.00404860
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.004021b5
pop ecx
pop ecx
mov bl, al
lea ecx, [esp + 0x5c]
push edi
neg bl
push 1
sbb bl, bl
call fcn.00404b60
push edi
push 1
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e0], 1
call fcn.00404b60
inc bl
je 0x402d2f
xor ebx, ebx
lea eax, [esp + 0xbc]
inc ebx
push ebx
push 0x1a
push eax
push edi
call esi
test eax, eax
js 0x402e5b
lea eax, [esp + 0xbc]
push eax
call fcn.00404843
pop ecx
push eax
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x1c]
call fcn.004047ca
jmp 0x402d32
xor ebx, ebx
inc ebx
push str.DefaultHistory
lea ecx, [esp + 0x90]
call fcn.00404860
mov edi, eax
push str.User_Data_
lea ecx, [esp + 0x78]
mov byte [esp + 0x1dc], 4
call fcn.00404860
mov esi, eax
push str.360se6_
lea ecx, [esp + 0xa8]
mov byte [esp + 0x1dc], 5
call fcn.00404860
push esi
mov edx, eax
mov byte [esp + 0x1dc], 6
lea ecx, [esp + 0x60]
call fcn.00403c00
pop ecx
push edi
mov edx, eax
mov byte [esp + 0x1dc], 7
lea ecx, [esp + 0x48]
call fcn.00403c00
pop ecx
push eax
lea ecx, [esp + 0x30]
call fcn.004036f5
xor edi, edi
lea ecx, [esp + 0x44]
push edi
push ebx
call fcn.00404b60
push edi
push ebx
lea ecx, [esp + 0x64]
call fcn.00404b60
push edi
push ebx
lea ecx, [esp + 0xac]
call fcn.00404b60
push edi
push ebx
lea ecx, [esp + 0x7c]
call fcn.00404b60
push edi
push ebx
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e0], bl
call fcn.00404b60
lea eax, [esp + 0x2c]
push eax
push eax
push str.His3Dir
push str.CInfos
call fcn.0044a20d
mov ecx, eax
call fcn.0044a4a0
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.00404390
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 0x402e5b
cmp dword [esp + 0x28], 0x10
lea eax, [esp + 0x14]
push ecx
cmovae eax, dword [esp + 0x18]
mov edx, 0x4dce8c
push eax
call fcn.004027d5
pop ecx
movzx eax, al
pop ecx
mov dword [0x51b17c], eax
push edi
push ebx
lea ecx, [esp + 0x34]
call fcn.00404b60
push edi
push ebx
lea ecx, [esp + 0x1c]
call fcn.00404b60
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.004a41df
mov esp, ebp
pop ebp
ret