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

Disassembly:
push 0xffffffffffffffff
push 0x47e7dc
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x4a30f8]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a30f8]
xor eax, esp
push eax
lea eax, [esp + 0x648]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x420897
mov eax, dword [0x4a1014]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x650], 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x654], 1
call fcn.00440930
push str.Bin_sqlite3.dll
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0041dfe0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x654], 2
call fcn.0041ca20
mov eax, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
mov byte [esp + 0x650], 1
cmp ecx, dword [0x4a1010]
je 0x42083f
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x42083f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
mov ebp, dword [esp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x42089e
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a1010]
je 0x420879
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x420879
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a1010]
je 0x420897
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x420897
push esi
call fcn.00461ef0
add esp, 4
xor eax, eax
jmp 0x420a64
mov edx, dword [0x4a1014]
mov dword [esp + 0x18], edx
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x236]
push ecx
mov byte [esp + 0x65c], 3
mov word [esp + 0x238], ax
call fcn.00461880
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x234]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x22c]
push eax
lea ecx, [esp + 0x1c]
call fcn.0041ca80
push str.360NotifyBin_sqlite3.dll
push str.360NotifyBin_sqlite3.dll
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x20]
call fcn.0041bff0
mov edi, dword [esp + 0x18]
push edi
call esi
test eax, eax
je 0x4209e0
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4209e0
call fcn.0043f760
mov esi, eax
test esi, esi
je 0x4209e0
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x2c], cx
call fcn.00461880
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x44e]
push ecx
mov word [esp + 0x450], ax
call fcn.00461880
mov edx, dword [esi]
mov ecx, dword [edx + 0x60]
add esp, 0x18
push 0x104
lea eax, [esp + 0x24]
push eax
push edi
push esi
call ecx
mov edx, dword [esi]
mov ecx, dword [edx + 0x60]
push 0x104
lea eax, [esp + 0x43c]
push eax
push ebp
push esi
call ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x43c]
push eax
call fcn.0042d330
push edi
mov esi, eax
call fcn.00401f60
add esp, 0xc
test esi, esi
jge 0x4209e0
cmp eax, 1
jne 0x4209e0
lea ecx, [esp + 0x18]
call fcn.0041c130
lea ecx, [esp + 0x14]
call fcn.0041c130
lea ecx, [esp + 0x1c]
call fcn.0041c130
xor eax, eax
jmp 0x420a64
push 0
push edi
push ebp
call fcn.0042e140
lea ecx, [edi - 0xc]
add esp, 0xc
cmp ecx, dword [0x4a1010]
je 0x420a12
lea esi, [edi - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call edi
test eax, eax
jg 0x420a18
push esi
call fcn.00461ef0
add esp, 4
jmp 0x420a18
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a1010]
je 0x420a41
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x420a41
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00461ef0
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a1010]
je 0x420a5f
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x420a5f
push esi
call fcn.00461ef0
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x648]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x630]
xor ecx, esp
call fcn.00461862
add esp, 0x640
ret