Function at 0x10031560
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aaca8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10031643
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x10031643
push 0x77
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
push str.SELECT_count___AS_count_FROM_sqlite_master_WHERE_sqlite_master.typetable_AND_sqlite_master.namesoft_usage_record
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.100055f0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], vtable.RC::RCSqliteStmtIF.0
mov dword [ebp - 0x18], vtable.RC::RCSqliteStmt.0
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
test eax, eax
je 0x10031740
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.RC::RCSqliteStmt.0
call fcn.1010f010
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10005540
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10031723
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x10031723
push 0x84
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x38]
push str.CREATE_TABLE_soft_usage_record__soft_key_nvarchar_260__primary_key_soft_id_int_soft_name_exe_name_pattern_last_usage_bigint_version_
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.100055f0
mov dword [ebp - 4], 3
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.RC::RCSqliteStmtIF.0
mov dword [ebp - 0x20], vtable.RC::RCSqliteStmt.0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov edi, eax
test edi, edi
jne 0x100316ef
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
push dword [ebp - 0x1c]
mov edi, eax
call fcn.1010f010
add esp, 4
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 3
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], vtable.RC::RCSqliteStmt.0
call fcn.1010f010
add esp, 4
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10005540
test edi, edi
je 0x100317de
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], vtable.RC::RCResultSetIF.0
mov dword [ebp - 0x20], vtable.RC::RCResultSet.0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x20]
mov ecx, dword [esi + 4]
push edx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
test eax, eax
je 0x1003178d
lea ecx, [ebp - 0x18]
call fcn.10033000
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], vtable.RC::RCResultSet.0
jmp 0x10031617
lea ecx, [ebp - 0x20]
call fcn.100330d0
test al, al
je 0x10031775
push 0
lea ecx, [ebp - 0x20]
call fcn.10033100
cmp eax, 1
jne 0x10031775
mov byte [ebp - 4], al
mov dword [ebp - 0x20], vtable.RC::RCResultSet.0
mov byte [ebp - 4], 0
push dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.RC::RCSqliteStmt.0
call fcn.1010f010
add esp, 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10005540
mov al, 1
jmp 0x10031725