Function at 0x473070
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc60d
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x53f030]
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 0x47334d
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x4730e6
push 0x80004005
call fcn.0043a9b0
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.00472760
mov edi, dword [ebp - 0xa0]
cmp dword [edi - 0xc], 0
je 0x47332c
call fcn.0043ae40
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x473136
push 0x80004005
call fcn.0043a9b0
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.00472a80
mov esi, dword [ebp - 0xa8]
cmp dword [esi - 0xc], 0
je 0x47330c
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47330c
lea ecx, [ebp - 0xc0]
call fcn.00459d90
lea ecx, [ebp - 0xa4]
call fcn.0043a5b0
push 3
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 3
push esi
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], eax
call fcn.00465ce0
push dword [ebp - 0x98]
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.0045a670
test eax, eax
jne 0x4732c0
lea ecx, [ebp - 0x9c]
call fcn.0043a5b0
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.00462450
push dword [ebp - 0x9c]
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0045a230
mov byte [ebp - 4], 7
lea esp, [esp]
lea ecx, [ebp - 0xd8]
call fcn.0045a000
test al, al
jne 0x473275
push 0x51e9b0
push str.value
lea ecx, [ebp - 0xd8]
call fcn.0045a580
push eax
lea ecx, [ebp - 0xa4]
call fcn.0044dc00
mov eax, dword [ebp - 0xa4]
cmp dword [eax - 0xc], 0
jle 0x473291
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xa4]
push str.true
mov dword [eax], 1
call fcn.0043ce00
xor ebx, ebx
test eax, eax
sete bl
mov dword [ebp - 0xac], ebx
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 6
call fcn.00459e50
lea ecx, [ebp - 0x9c]
call fcn.00441080
jmp 0x4732b9
lea ecx, [ebp - 0xd8]
call fcn.0045a5c0
jmp 0x473210
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x4732d9
push eax
call fcn.004d92bb
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 0x4732fd
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.00459df0
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 0x47332f
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 0x47334d
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.004d89fb
mov esp, ebp
pop ebp
ret 8