Function at 0x100a30d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10125170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [edi]
shl edx, 4
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x2c], edi
mov esi, dword [edx + eax]
mov eax, 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x38], eax
lea ebx, [ebx]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call sym.SQLite.Interop.dll_sqlite3_snprintf
mov ecx, dword [edi]
add esp, 0x10
lea ebx, [ebp - 0x1c]
mov dword [ebp - 0x28], ecx
xor edi, edi
mov dword [ebp - 0x24], ebx
cmp dword [ecx + 0x14], edi
jle 0x100a31cc
lea ebx, [ebx]
mov ecx, edi
cmp edi, 2
jge 0x100a314f
xor ecx, 1
mov dword [ebp - 0x34], ecx
jmp 0x100a3152
mov dword [ebp - 0x34], edi
test esi, esi
je 0x100a323b
mov bl, byte [esi]
mov edx, ecx
mov ecx, dword [ebp - 0x28]
add edx, edx
mov ecx, dword [ecx + 0x10]
mov eax, esi
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x10105440]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x10105440]
sub esi, ecx
jne 0x100a31b9
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
lea esp, [esp]
test bl, bl
je 0x100a3231
movzx ecx, byte [edx + eax + 1]
mov bl, byte [eax + 1]
movzx edx, byte [ecx + 0x10105440]
inc eax
movzx ecx, bl
movzx esi, byte [ecx + 0x10105440]
sub esi, edx
mov edx, dword [ebp - 0x30]
je 0x100a3190
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x100a3140
mov dl, byte [ebx]
movzx eax, dl
movzx eax, byte [eax + 0x10105440]
sub eax, 0x73
jne 0x100a320a
mov esi, str.sqlite_master
sub esi, ebx
test dl, dl
je 0x100a3282
movzx eax, byte [esi + ebx + 1]
mov dl, byte [ebx + 1]
movzx ecx, byte [eax + 0x10105440]
inc ebx
movzx eax, dl
movzx eax, byte [eax + 0x10105440]
sub eax, ecx
je 0x100a31e4
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x38], eax
cmp eax, 4
jle 0x100a3110
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001186
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100a31b9
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov eax, dword [eax + 0x10]
add ecx, ecx
push 0
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
mov edx, ebx
call fcn.100e7ea0
mov eax, dword [eax + 8]
add esp, 4
test eax, eax
je 0x100a31bc
push dword [ebp - 0x40]
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x3c]
lea eax, [ebp - 0x1c]
push eax
push esi
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.100a6a20
add esp, 0x18
jmp 0x100a320d
mov ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 0x10]
test esi, esi
jne 0x100a3298
neg edx
sbb edx, edx
jmp 0x100a32e9
test edx, edx
je 0x100a320a
movzx eax, byte [edx]
mov edi, esi
movzx ecx, byte [eax + 0x10105440]
mov bl, byte [edi]
movzx eax, bl
movzx eax, byte [eax + 0x10105440]
sub eax, ecx
jne 0x100a32e2
sub edx, edi
mov edi, edi
test bl, bl
je 0x100a32e2
movzx eax, byte [edx + esi + 1]
mov bl, byte [esi + 1]
movzx ecx, byte [eax + 0x10105440]
inc esi
movzx eax, bl
movzx eax, byte [eax + 0x10105440]
sub eax, ecx
je 0x100a32c0
mov ecx, dword [ebp - 0x28]
mov edx, eax
mov esi, edi
test edx, edx
jne 0x100a320a
mov ebx, str.sqlite_temp_master
jmp 0x100a312c