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

Disassembly:
push 0xffffffffffffffff
push 0x48115c
mov eax, dword fs:[0]
push eax
sub esp, 0x634
mov eax, dword [0x4a60f8]
xor eax, esp
mov dword [esp + 0x630], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a60f8]
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 0x41fb37
mov eax, dword [0x4a4014]
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.0043fd40
push str.Bin_sqlite3.dll
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0041d3e0
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x654], 2
call fcn.0041be30
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 [0x4a4010]
je 0x41fadf
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41fadf
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00462471
add esp, 4
mov ebp, dword [esp + 0x1c]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebp
call esi
test eax, eax
jne 0x41fb3e
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a4010]
je 0x41fb19
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41fb19
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00462471
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a4010]
je 0x41fb37
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x41fb37
push esi
call fcn.00462471
add esp, 4
xor eax, eax
jmp 0x41fd04
mov edx, dword [0x4a4014]
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.00461950
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.0041be90
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.0041b440
mov edi, dword [esp + 0x18]
push edi
call esi
test eax, eax
je 0x41fc80
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x41fc80
call fcn.0043ec90
mov esi, eax
test esi, esi
je 0x41fc80
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x2a]
push edx
mov word [esp + 0x2c], cx
call fcn.00461950
xor eax, eax
push 0x208
push eax
lea ecx, [esp + 0x44e]
push ecx
mov word [esp + 0x450], ax
call fcn.00461950
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.0042c9c0
push edi
mov esi, eax
call fcn.00401f80
add esp, 0xc
test esi, esi
jge 0x41fc80
cmp eax, 1
jne 0x41fc80
lea ecx, [esp + 0x18]
call fcn.0041b2e0
lea ecx, [esp + 0x14]
call fcn.0041b2e0
lea ecx, [esp + 0x1c]
call fcn.0041b2e0
xor eax, eax
jmp 0x41fd04
push 0
push edi
push ebp
call fcn.0042d7c0
lea ecx, [edi - 0xc]
add esp, 0xc
cmp ecx, dword [0x4a4010]
je 0x41fcb2
lea esi, [edi - 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push esi
call edi
test eax, eax
jg 0x41fcb8
push esi
call fcn.00462471
add esp, 4
jmp 0x41fcb8
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [esp + 0x14]
lea edx, [eax - 0xc]
cmp edx, dword [0x4a4010]
je 0x41fce1
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x41fce1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.00462471
add esp, 4
lea ecx, [ebp - 0xc]
cmp ecx, dword [0x4a4010]
je 0x41fcff
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x41fcff
push esi
call fcn.00462471
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.00461932
add esp, 0x640
ret