Function at 0x100319d0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101aad68
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x10224008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebx + 4]
mov edi, dword [ebp + 8]
test ecx, ecx
je 0x10031c10
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
call eax
test al, al
je 0x10031c10
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 dword [ebp - 4], 0
cmp dword [edi + 0x18], 0
je 0x10031a95
push str.SELECT_last_usage_FROM_soft_usage_record_WHERE_soft_usage_record.soft_id____ORDER_BY_soft_usage_record.last_usage_DESC_limit_1
lea ecx, [ebp - 0x38]
call fcn.10004fc0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
mov ecx, dword [ebx + 4]
push edx
lea edx, [ebp - 0x38]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x10031a7c
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.10005540
jmp 0x10031bec
push dword [edi + 0x18]
lea ecx, [ebp - 0x18]
push 1
call fcn.10032e80
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
jmp 0x10031b75
cmp dword [edi + 0x2c], 0
jne 0x10031aa5
mov esi, 0xc0010001
jmp 0x10031bec
push str.SELECT_DISTINCT_last_usage_FROM_____SELECT_soft_usage_record.last_usage_FROM_soft_usage_record_WHERE___LIKE_soft_usage_record.pattern___UNION_ALL___SELECT_soft_usage_record.last_usage_FROM_soft_usage_record_WHERE_soft_usage_record.soft_name_LIKE_____ORDER_BY_last_usage_DESC_limit_1
lea ecx, [ebp - 0x50]
call fcn.10004fc0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x18]
mov ecx, dword [ebx + 4]
push edx
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x10031add
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10005540
jmp 0x10031bec
xor eax, eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
mov byte [ebp - 4], 3
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10031b10
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x38]
push str.___s__
push eax
call fcn.100b6030
sub esp, 0xc
mov ecx, esp
mov dword [ebp - 0x54], esp
push esi
call fcn.10006ac0
mov byte [ebp - 4], 4
push 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.10032f70
sub esp, 0x18
lea eax, [ebp - 0x38]
mov ecx, esp
mov dword [ebp - 0x54], esp
push eax
call fcn.10006ac0
mov byte [ebp - 4], 5
push 2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
call fcn.10032f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
call fcn.10005540
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.10005540
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], 6
lea edx, [ebp - 0x20]
mov ecx, dword [ebx + 4]
push edx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov esi, eax
test esi, esi
je 0x10031bbb
lea ecx, [ebp - 0x18]
call fcn.10033000
jmp 0x10031be1
lea ecx, [ebp - 0x20]
call fcn.100330d0
test al, al
je 0x10031bd7
push 0
lea ecx, [ebp - 0x20]
call fcn.10033420
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], edx
lea ecx, [ebp - 0x18]
call fcn.10033000
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebp - 0x20], vtable.RC::RCResultSet.0
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.RC::RCSqliteStmt.0
call fcn.1010f010
add esp, 4
mov dword [ebp - 0x14], 0
mov eax, esi
jmp 0x10031c15
mov eax, 0xc0011141
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1019e7b8
mov esp, ebp
pop ebp
ret 4