Function at 0x4a1520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56a2fd
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x5d6b80]
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
mov edi, ecx
mov dword [ebp - 0x9c], edi
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], ebx
mov dword [eax], ebx
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
je 0x4a17fd
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a1596
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa0], eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], 0
push eax
push esi
mov ecx, edi
call fcn.0049e8f0
mov edi, dword [ebp - 0xa0]
cmp dword [edi - 0xc], 0
je 0x4a17dc
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4a15e6
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push eax
call fcn.0049ec10
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 0xc], 0
je 0x4a17bc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a17bc
lea ecx, [ebp - 0xc0]
call fcn.00483ca0
lea ecx, [ebp - 0xa4]
call fcn.0045a530
push 3
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00491750
push dword [ebp - 0x98]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.00484590
test eax, eax
jne 0x4a1770
lea ecx, [ebp - 0x9c]
call fcn.0045a530
push str.select_value_from_ItemTable_where_key_like__pref_new_tab_off_by_user_
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 6
call fcn.0048d030
push dword [ebp - 0x9c]
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00484150
mov byte [ebp - 4], 7
lea esp, [esp]
lea ecx, [ebp - 0xd8]
call fcn.00483f10
test al, al
jne 0x4a1725
push 0x59c550
push str.value
lea ecx, [ebp - 0xd8]
call fcn.004844a0
push eax
lea ecx, [ebp - 0xa4]
call fcn.0046e230
mov eax, dword [ebp - 0xa4]
cmp dword [eax - 0xc], 0
jle 0x4a1741
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push str.true
mov dword [eax], 1
call fcn.0045cd80
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0xac], ebx
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.00483d60
lea ecx, [ebp - 0x9c]
call fcn.0048ceb0
jmp 0x4a1769
lea ecx, [ebp - 0xd8]
call fcn.004844e0
jmp 0x4a16c0
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x4a1789
push eax
call fcn.0052616f
add esp, 4
mov edx, dword [ebp - 0xa4]
or eax, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4a17ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 1
call fcn.00483d00
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or edx, 0xffffffff
mov ecx, edx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4a17df
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or edx, 0xffffffff
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x4a17fd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00525878
mov esp, ebp
pop ebp
ret 8