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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5b1a
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4e5d60]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x4cf374
lea ecx, [ebp - 0x240]
mov dword [ebp - method.CArray_enum_CArchive::LoadArrayObjType__enum_CArchive::LoadArrayObjType_const__.virtual_0], vtable.CIniFile.0
call fcn.0040f300
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40754a
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 1
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40757a
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4075aa
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x238], eax
mov byte [ebp - 4], 3
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4075da
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x24c], esi
lea ecx, [ebp - 0x268]
push ecx
mov byte [ebp - 4], 4
call fcn.0041c8c0
mov byte [ebp - 4], 5
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40761a
push 0x80004005
call fcn.0040f160
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x234], ebx
push edi
push 0x1a
lea ecx, [ebp - 0x220]
push ecx
push edi
mov byte [ebp - 4], 6
mov dword [ebp - 0x248], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4076d6
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40766f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40769e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4076c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
jmp 0x407d43
lea ecx, [ebp - 0x22c]
push str.MozillaFirefox
push ecx
lea edi, [ebp - 0x220]
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 7
call fcn.0040ebc0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407726
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x230]
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4077e2
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40775b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40778a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x238]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077b0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4077d6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
lea eax, [edi - 0x10]
jmp 0x407d69
lea ecx, [ebp - 0x22c]
push str.profiles.ini
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 8
call fcn.0040ebc0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40782c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x238]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407898
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40785d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40788c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
lea eax, [edi - 0x10]
jmp 0x4076ab
test edi, edi
jne 0x4078a0
xor eax, eax
jmp 0x4078b4
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4078a5
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x240]
call fcn.0040f1b0
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x224]
call fcn.0041c080
mov esi, dword [ebp - 0x224]
test eax, eax
je 0x407cc7
cmp dword [esi - 0xc], 0
je 0x407cc7
mov edi, dword [ebp - 0x230]
lea edx, [ebp - 0x22c]
push esi
push edx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 9
call fcn.0040ebc0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 6
call fcn.0040ed20
mov ebx, dword [ebp - 0x224]
lea eax, [ebp - 0x23c]
push str.prefs.js
push eax
mov edi, ebx
call fcn.00401bb0
add esp, 8
push 0x4cbc0c
push 0x4cbdbc
lea ecx, [ebp - 0x23c]
push ecx
mov byte [ebp - 4], 0xa
call fcn.0040a970
mov edx, dword [ebp - 0x23c]
push edx
lea eax, [ebp - 0x228]
push eax
call fcn.00402750
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x228]
mov eax, dword [esi - 0xc]
test eax, eax
je 0x407a8e
jl 0x407a8e
push str._browser.startup.homepage__
push esi
call fcn.004a6d30
add esp, 8
test eax, eax
je 0x407a8e
sub eax, esi
sar eax, 1
test eax, eax
jle 0x407a8e
add eax, 0x1b
push eax
push 0x22
lea ecx, [ebp - 0x228]
call fcn.0040ab90
mov esi, eax
test esi, esi
jle 0x407a8e
inc esi
push esi
push 0x22
lea ecx, [ebp - 0x228]
call fcn.0040ab90
test eax, eax
jle 0x407a8e
mov edi, eax
sub edi, esi
push edi
push esi
lea ecx, [ebp - 0x22c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.0040ac60
lea edx, [ebp - 0x22c]
push edx
mov ecx, str.http:__home.vn__pk_campaignhpagepk_kwdpr
mov byte [ebp - 4], 0xc
call fcn.0040a7c0
test eax, eax
jne 0x407a2a
lea eax, [ebp - 0x228]
push eax
mov eax, edi
mov ecx, esi
call fcn.0040a7f0
mov eax, dword [0x4eb628]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x4d2f24]
jmp 0x407a5e
lea edx, [ebp - 0x22c]
push edx
mov ecx, str.http:__home.vn__tswpk_campaignhpagepk_kwdpr
call fcn.0040a7c0
test eax, eax
jne 0x407a7f
lea eax, [ebp - 0x228]
push eax
mov eax, edi
mov ecx, esi
call fcn.0040a7f0
mov eax, dword [0x4eb628]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x4d2f28]
push eax
push esi
lea edx, [ebp - 0x228]
push edx
call fcn.0040a8a0
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x23c]
push eax
push ecx
call fcn.00402910
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xb
call fcn.0040ed20
lea edx, [ebp - 0x22c]
push str.places.sqlite
push edx
mov edi, ebx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 0xd
call fcn.0040ebc0
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 0xb
call fcn.0040ed20
push 0x4cbc0c
push 0x4cbdbc
lea eax, [ebp - 0x224]
push eax
call fcn.0040a970
mov esi, dword [ebp - 0x224]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407b56
lea ecx, [ebp - 0x228]
call fcn.0040ed20
lea ecx, [ebp - 0x23c]
call fcn.0040ed20
lea ecx, [ebp - 0x234]
call fcn.0040ed20
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
lea ecx, [ebp - 0x24c]
call fcn.0040ed20
lea ecx, [ebp - 0x238]
call fcn.0040ed20
lea ecx, [ebp - 0x224]
call fcn.0040ed20
lea ecx, [ebp - 0x230]
call fcn.0040ed20
lea eax, [ebp - 0x244]
call fcn.0041bfe0
jmp 0x407db5
mov eax, esi
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0xe
call fcn.0041ca80
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x407b8c
push 0x4de414
lea ecx, [ebp - 0x250]
push ecx
mov dword [ebp - 0x250], 1
call fcn.004aa00a
mov eax, dword [0x4eb628]
push 0x4cee70
lea edx, [eax + eax*4]
mov eax, dword [edx*8 + 0x4d2f2c]
push 0x4cbe94
push eax
lea eax, [ebp - 0x234]
push str.UPDATE_moz_places_SET_url_s__title___s__WHERE_title___s_AND_typed1
push eax
call fcn.0040e520
mov ecx, dword [ebp - 0x234]
add esp, 0x14
push ecx
lea edx, [ebp - 0x288]
push edx
lea ebx, [ebp - 0x268]
call fcn.0041caf0
lea ecx, [ebp - 0x288]
call fcn.0041c650
push 0x4cee70
push 0x4cbe94
lea eax, [ebp - 0x234]
push str.UPDATE_moz_bookmarks_SET_title_s_WHERE_title___s_and_parent3
push eax
call fcn.0040e520
mov ecx, dword [ebp - 0x234]
add esp, 0x10
push ecx
lea edx, [ebp - 0x288]
push edx
call fcn.0041caf0
lea ecx, [ebp - 0x288]
call fcn.0041c650
mov dword [ebp - 0x248], 1
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x228]
call fcn.0040ed20
lea ecx, [ebp - 0x23c]
call fcn.0040ed20
lea ecx, [ebp - 0x234]
call fcn.0040ed20
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
lea ecx, [ebp - 0x24c]
call fcn.0040ed20
lea ecx, [ebp - 0x238]
call fcn.0040ed20
lea ecx, [ebp - 0x224]
call fcn.0040ed20
lea ecx, [ebp - 0x230]
call fcn.0040ed20
lea eax, [ebp - 0x244]
call fcn.0041bfe0
mov eax, dword [ebp - 0x248]
jmp 0x407db7
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407ce7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 4
call fcn.0041c9c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x24c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d1c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x230]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407d82
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - method.CArray_enum_CArchive::LoadArrayObjType__enum_CArchive::LoadArrayObjType_const__.virtual_0], vtable.CIniFile.0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407db5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a6859
mov esp, ebp
pop ebp
ret