Function at 0x4cd0bb
Capabilities:
Check if file exists
Reference sql statements

Disassembly:
push 0x87c
mov eax, 0x587361
call fcn.004fb9d0
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x82c], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x888]
call fcn.00432a3a
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x870]
call fcn.004a86e3
mov byte [ebp - 4], 7
push ecx
mov ecx, esp
mov dword [ebp - 0x830], esp
push str.MozillaFirefoxProfiles
call fcn.0043479c
mov byte [ebp - 4], 8
push ecx
mov eax, esp
mov dword [ebp - 0x838], esp
push eax
lea ecx, [ebp - 0x888]
call fcn.0049bb8c
mov byte [ebp - 4], 9
lea eax, [ebp - 0x83c]
push eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x888]
call fcn.0049be74
mov byte [ebp - 4], 0xa
push dword [ebp - 0x83c]
lea ecx, [ebp - 0x870]
call fcn.004b6e50
xor ebx, ebx
cmp eax, ebx
je 0x4cd649
lea ecx, [ebp - 0x870]
call fcn.004a16b2
lea ecx, [ebp - 0x870]
mov dword [ebp - 0x830], eax
call fcn.004a46c4
test eax, eax
jne 0x4cd63d
push 0x10
lea ecx, [ebp - 0x870]
call fcn.004a1690
test eax, eax
je 0x4cd63d
push ecx
mov ecx, esp
mov dword [ebp - 0x834], esp
push str.webappsstore.sqlite
call fcn.0043479c
mov byte [ebp - 4], 0xb
push ecx
mov eax, esp
mov dword [ebp - 0x828], esp
push eax
lea ecx, [ebp - 0x870]
call fcn.004c94f3
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x820]
push eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x888]
call fcn.0049be74
mov byte [ebp - 4], 0xd
push dword [ebp - 0x820]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cd207
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x820]
add ecx, 0xfffffff0
call fcn.004310e3
jmp 0x4cd63d
lea ecx, [ebp - 0x854]
call fcn.004a9bab
mov byte [ebp - 4], 0xf
push ecx
lea eax, [ebp - 0x820]
mov ecx, esp
mov dword [ebp - 0x828], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x854]
call fcn.004c1bb0
test al, al
jne 0x4cd253
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x854]
call fcn.004a9bf0
jmp 0x4cd1f0
push 0x7ff
lea eax, [ebp - 0x80f]
push ebx
push eax
mov byte [ebp - 0x810], 0
call fcn.004fc1f0
add esp, 0xc
push dword [ebp + 0xc]
lea ecx, [ebp - 0x814]
call fcn.004b40f5
mov byte [ebp - 4], 0x12
push dword [ebp + 0x10]
lea ecx, [ebp - 0x818]
call fcn.004b40f5
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x818]
xor edi, edi
inc edi
cmp dword [eax - 4], edi
jle 0x4cd2b5
push dword [eax - 0xc]
lea ecx, [ebp - 0x818]
call fcn.00499af5
mov eax, dword [ebp - 0x818]
mov esi, eax
mov eax, dword [ebp - 0x814]
cmp dword [eax - 4], edi
jle 0x4cd2d6
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
call fcn.00499af5
mov eax, dword [ebp - 0x814]
push esi
push eax
lea eax, [ebp - 0x810]
push str.SELECT_value_FROM_webappsstore2_WHERE_scope_s_and_key_s
push eax
call fcn.004a33cc
add esp, 0x10
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x854]
call fcn.004a4933
test al, al
je 0x4cd4d3
lea ecx, [ebp - 0x854]
call fcn.004a195a
test al, al
je 0x4cd4d3
xor eax, eax
cmp dword [ebp - 0x84c], ebx
je 0x4cd331
push ebx
push dword [ebp - 0x84c]
call fcn.0047445a
pop ecx
pop ecx
push 0xfde9
push eax
call fcn.004a08a3
pop ecx
pop ecx
mov esi, eax
push esi
lea ecx, [ebp - 0x81c]
call fcn.0043479c
mov byte [ebp - 4], 0x14
cmp esi, ebx
je 0x4cd35b
push esi
call fcn.004fc324
pop ecx
mov eax, dword [ebp - 0x81c]
add eax, 0xfffffff0
push eax
call fcn.00431714
add eax, 0x10
pop ecx
mov dword [ebp - 0x840], eax
mov byte [ebp - 4], 0x16
push ebx
push dword [0x606430]
lea ecx, [ebp - 0x840]
call fcn.00433966
mov ecx, eax
call fcn.00432533
test eax, eax
sets bl
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x840]
add ecx, 0xfffffff0
call fcn.004310e3
test bl, bl
je 0x4cd4b9
sub esp, 0x34
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x828], esp
push eax
call fcn.004aa615
mov byte [ebp - 4], 0x18
push ecx
lea eax, [ebp - 0x81c]
mov ecx, esp
mov dword [ebp - 0x834], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x858]
push eax
mov byte [ebp - 4], 0x14
call dword [ebp - 0x82c]
add esp, 0x3c
mov byte [ebp - 4], 0x1a
push eax
lea ecx, [ebp - 0x81c]
call fcn.00433c20
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x858]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [ebp - 0x81c]
cmp dword [eax - 4], edi
jle 0x4cd436
push dword [eax - 0xc]
lea ecx, [ebp - 0x81c]
call fcn.00431f53
mov eax, dword [ebp - 0x81c]
push 0xfde9
push eax
call fcn.004a0856
mov esi, eax
mov eax, dword [ebp - 0x818]
pop ecx
pop ecx
cmp dword [eax - 4], edi
jle 0x4cd464
push dword [eax - 0xc]
lea ecx, [ebp - 0x818]
call fcn.00499af5
mov eax, dword [ebp - 0x818]
mov ebx, eax
mov eax, dword [ebp - 0x814]
cmp dword [eax - 4], edi
jle 0x4cd485
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
call fcn.00499af5
mov eax, dword [ebp - 0x814]
push ebx
push eax
push esi
lea eax, [ebp - 0x810]
push str.UPDATE_webappsstore2_SET_value_s_WHERE_scope_s_and_key_s
push eax
call fcn.004a33cc
add esp, 0x14
test esi, esi
je 0x4cd4a7
push esi
call fcn.004fc324
pop ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x854]
call fcn.004a18ae
lea ecx, [ebp - 0x854]
call fcn.004a19e2
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x81c]
jmp 0x4cd5e3
sub esp, 0x34
lea eax, [ebp + 0x18]
mov ecx, esp
mov dword [ebp - 0x828], esp
push eax
call fcn.004aa615
mov byte [ebp - 4], 0x1d
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
mov dword [ebp - 0x834], esp
push eax
call fcn.004324a9
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x838]
push eax
mov byte [ebp - 4], 0x13
call dword [ebp - 0x82c]
add esp, 0x3c
mov byte [ebp - 4], 0x1f
push eax
lea ecx, [ebp - 0x824]
call fcn.004324a9
mov byte [ebp - 4], 0x21
mov ecx, dword [ebp - 0x838]
add ecx, 0xfffffff0
call fcn.004310e3
mov eax, dword [ebp - 0x824]
cmp dword [eax - 4], edi
jle 0x4cd556
push dword [eax - 0xc]
lea ecx, [ebp - 0x824]
call fcn.00431f53
mov eax, dword [ebp - 0x824]
push 0xfde9
push eax
call fcn.004a0856
mov esi, eax
mov eax, dword [ebp - 0x818]
pop ecx
pop ecx
cmp dword [eax - 4], edi
jle 0x4cd584
push dword [eax - 0xc]
lea ecx, [ebp - 0x818]
call fcn.00499af5
mov eax, dword [ebp - 0x818]
mov ebx, eax
mov eax, dword [ebp - 0x814]
cmp dword [eax - 4], edi
jle 0x4cd5a5
push dword [eax - 0xc]
lea ecx, [ebp - 0x814]
call fcn.00499af5
mov eax, dword [ebp - 0x814]
push esi
push ebx
push eax
lea eax, [ebp - 0x810]
push str.INSERT_INTO_webappsstore2__scope__key__value__secure__owner__VALUES___s___s___s__NULL__NULL_
push eax
call fcn.004a33cc
add esp, 0x14
test esi, esi
je 0x4cd5c7
push esi
call fcn.004fc324
pop ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x854]
call fcn.004a18ae
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x824]
add ecx, 0xfffffff0
call fcn.004310e3
lea ecx, [ebp - 0x854]
call fcn.004a48d3
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x818]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x814]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x854]
call fcn.004a9bf0
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x820]
add ecx, 0xfffffff0
call fcn.004310e3
xor ebx, ebx
cmp dword [ebp - 0x830], ebx
jne 0x4cd15d
lea ecx, [ebp - 0x870]
call fcn.004a4686
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x83c]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x870]
call fcn.004a8728
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x888]
call fcn.00432a92
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004310e3
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.004310e3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.004a9a6d
call fcn.004fba53
ret 0x48