Function at 0x408b20
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c593a
mov eax, dword fs:[0]
push eax
sub esp, 0x284
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
xor edi, edi
mov dword [ebp - 0x248], edi
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408b73
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 - 0x228], eax
mov dword [ebp - 4], edi
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408ba2
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 0x408bd2
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 - 0x22c], eax
mov byte [ebp - 4], 2
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408c02
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 - 0x234], eax
mov byte [ebp - 4], 3
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408c32
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 - 0x23c], eax
mov byte [ebp - 4], 4
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408c62
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 - 0x244], ebx
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 4], 5
call fcn.0041c8c0
mov byte [ebp - 4], 6
call fcn.004990cf
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x408ca2
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 - 0x238], esi
push edi
push 0x1c
lea ecx, [ebp - 0x220]
push ecx
push edi
mov byte [ebp - 4], 7
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x408de8
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408cf1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d46
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d6c
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d92
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408db8
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095b5
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x228]
push str._sCocCocBrowserUser_DataDefault
push edx
call fcn.0040e520
mov eax, dword [ebp - 0x228]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
push eax
call edi
test eax, eax
jne 0x408f35
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e8f
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408eb5
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408edb
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f01
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095b5
mov ecx, dword [ebp - 0x228]
push ecx
call edi
test eax, eax
jne 0x409061
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408f66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408f95
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fbb
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408fe1
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409007
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
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40902d
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095b5
mov edi, dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
push str.Favicons
push ecx
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 8
call fcn.0040ebc0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4090b1
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_PathFileExistsW]
test eax, eax
jne 0x4091db
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4090e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409115
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40913b
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 - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409161
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 - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409187
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], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4091a7
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 - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4095b5
mov esi, dword [ebp - 0x228]
lea ecx, [ebp - 0x224]
push str.Bookmarks
push ecx
mov edi, esi
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 9
call fcn.0040ebc0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40922d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x224]
push 0x4cbdc0
push ecx
mov edi, 0x4ebd50
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x23c]
mov byte [ebp - 4], 0xa
call fcn.0040ebc0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40927c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x224]
push str.Preferences
push ecx
mov edi, esi
call fcn.00401bb0
add esp, 8
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0xb
call fcn.0040ebc0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4092c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4093b8
push ecx
mov byte [ebp - 4], 0xc
lea edx, [ebp - 0x22c]
mov ecx, esp
mov dword [ebp - 0x224], esp
push edx
call fcn.0040ed00
lea ecx, [ebp - 0x224]
call fcn.00409600
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x234]
push edi
lea eax, [ebp - 0x240]
push eax
call fcn.00402750
mov byte [ebp - 4], 0xe
mov eax, dword [0x4eb628]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x4d2f2c]
push eax
push str.http:__home.vn__pk_campaignshfed
lea edx, [ebp - 0x240]
push edx
call fcn.0040a970
mov esi, eax
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov eax, dword [eax*8 + 0x4d2f24]
push eax
push str.http:__home.vn__pk_campaignhpagepk_kwdpr
lea ecx, [ebp - 0x240]
push ecx
call fcn.0040a970
add esi, eax
mov eax, dword [0x4eb628]
lea edx, [eax + eax*4]
mov eax, dword [edx*8 + 0x4d2f28]
push eax
push str.http:__home.vn__tswpk_campaignhpagepk_kwdpr
lea eax, [ebp - 0x240]
push eax
call fcn.0040a970
add esi, eax
test esi, esi
jle 0x409396
mov ecx, dword [ebp - 0x240]
push ecx
push edi
call fcn.00402910
mov edx, dword [ebp - 0x224]
cmp dword [edx - 0xc], 0
jne 0x40941b
lea ecx, [ebp - 0x240]
call fcn.0040ed20
lea ecx, [ebp - 0x224]
call fcn.0040ed20
lea ecx, [ebp - 0x238]
call fcn.0040ed20
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea ecx, [ebp - 0x244]
call fcn.0040ed20
lea ecx, [ebp - 0x23c]
call fcn.0040ed20
lea ecx, [ebp - 0x234]
call fcn.0040ed20
lea ecx, [ebp - 0x22c]
call fcn.0040ed20
lea ecx, [ebp - 0x230]
call fcn.0040ed20
lea ecx, [ebp - 0x228]
call fcn.0040ed20
xor eax, eax
jmp 0x4095b5
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x260]
call fcn.0041ca80
mov dword [ebp - 0x248], eax
test eax, eax
jne 0x409451
push 0x4de414
lea eax, [ebp - 0x264]
push eax
mov dword [ebp - 0x264], 1
call fcn.004aa00a
mov eax, dword [0x4eb628]
lea ecx, [eax + eax*4]
mov eax, dword [ecx*8 + 0x4d2f2c]
push str.http:__home.vn__pk_campaignshfed
push eax
lea edx, [ebp - 0x238]
push str.UPDATE_icon_mapping_SET_page_url__s_WHERE_page_url_s
push edx
call fcn.0040e520
mov eax, dword [ebp - 0x238]
add esp, 0x10
push eax
lea ecx, [ebp - 0x284]
push ecx
lea ebx, [ebp - 0x260]
call fcn.0041caf0
lea ecx, [ebp - 0x284]
call fcn.0041c650
mov eax, dword [0x4eb628]
lea edx, [eax + eax*4]
mov eax, dword [edx*8 + 0x4d2f24]
push str.http:__home.vn__pk_campaignhpagepk_kwdpr
push eax
lea eax, [ebp - 0x238]
push str.UPDATE_icon_mapping_SET_page_url__s_WHERE_page_url_s
push eax
call fcn.0040e520
mov ecx, dword [ebp - 0x238]
add esp, 0x10
push ecx
lea edx, [ebp - 0x284]
push edx
call fcn.0041caf0
lea ecx, [ebp - 0x284]
call fcn.0041c650
mov eax, dword [0x4eb628]
lea eax, [eax + eax*4]
mov eax, dword [eax*8 + 0x4d2f28]
push str.http:__home.vn__tswpk_campaignhpagepk_kwdpr
push eax
lea ecx, [ebp - 0x238]
push str.UPDATE_icon_mapping_SET_page_url__s_WHERE_page_url_s
push ecx
call fcn.0040e520
mov edx, dword [ebp - 0x238]
add esp, 0x10
push edx
lea eax, [ebp - 0x284]
push eax
call fcn.0041caf0
lea ecx, [ebp - 0x284]
call fcn.0041c650
lea ecx, [ebp - 0x240]
mov dword [ebp - 0x248], 1
call fcn.0040ed20
lea ecx, [ebp - 0x224]
call fcn.0040ed20
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x238]
call fcn.0040ed20
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 5
call fcn.0041c9c0
lea ecx, [ebp - 0x244]
call fcn.0040ed20
lea ecx, [ebp - 0x23c]
call fcn.0040ed20
lea ecx, [ebp - 0x234]
call fcn.0040ed20
lea ecx, [ebp - 0x22c]
call fcn.0040ed20
lea ecx, [ebp - 0x230]
call fcn.0040ed20
lea ecx, [ebp - 0x228]
call fcn.0040ed20
mov eax, dword [ebp - 0x248]
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