Function at 0x1004c780
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
or ebx, 0xffffffff
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov esi, edx
push edi
test eax, eax
je 0x1004c7d1
mov edx, eax
mov ecx, str.sqlite_stat1
call fcn.1010de20
test eax, eax
jne 0x1004c7d1
push esi
push str.SELECT_tbl___2__stat_FROM__Q.sqlite_stat1_WHERE_tbl_IS__1_AND_idx_IS__CASE_WHEN__2X_THEN_NULL_ELSE__2_END_
call sym.SQLite.Interop.dll_SI1c7a7970970b9619
mov esi, eax
add esp, 8
test esi, esi
jne 0x1004ca16
lea eax, [ebx + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
mov edi, 0x10127dbc
mov dword [ebp - 0x20], 0
push 0xe
lea edx, [ebp - 4]
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.1004d570
add esp, 8
test eax, eax
jne 0x1004c831
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
movq xmm0, qword [str.SELECT__FROM]
movq qword [ecx + edx], xmm0
mov eax, dword [0x101305b0]
mov dword [ecx + edx + 8], eax
mov ax, word [0x101305b4]
mov word [ecx + edx + 0xc], ax
add edx, 0xe
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 4]
mov edx, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.1004d2a0
mov eax, dword [ebp - 0x1c]
add esp, 4
cdq
add eax, 1
adc edx, 0
cmp dword [ebp - 4], 0
jne 0x1004c879
push edx
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.1004d570
add esp, 8
test eax, eax
jne 0x1004c879
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov cl, byte [0x10127dd0]
mov byte [esi + eax], cl
inc esi
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
call fcn.1004d2a0
mov ebx, dword [ebp - 0x1c]
add esp, 4
mov eax, ebx
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 4]
cdq
add eax, 7
adc edx, 0
test ebx, ebx
jne 0x1004c8ea
push edx
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.1004d570
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ebx, dword [ebp - 4]
test eax, eax
jne 0x1004c8e5
mov ecx, dword [ebp - 0x20]
mov eax, dword [str._WHERE]
mov dword [ecx + edx], eax
mov ax, word [0x101305bc]
mov word [ecx + edx + 4], ax
mov al, byte [0x101305be]
mov byte [ecx + edx + 6], al
add edx, 7
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], edx
jmp 0x1004c8ed
mov dword [ebp - 8], edx
jmp 0x1004c8ed
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1004ca0c
mov eax, dword [ebp + 0x14]
mov esi, 1
dec eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
nop word [eax + eax]
mov edi, dword [ebp - 0x10]
cmp byte [edi + esi], 0
mov edi, dword [ebp - 0xc]
je 0x1004c9f3
test edi, edi
je 0x1004c936
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x1004c927
sub edi, ecx
and edi, 0x3fffffff
mov eax, edx
mov ecx, edi
cdq
add ecx, eax
mov eax, 0
adc eax, edx
test ebx, ebx
jne 0x1004c979
push eax
push ecx
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.1004d570
add esp, 8
test eax, eax
jne 0x1004c979
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
add eax, esi
push edi
push dword [ebp - 0xc]
push eax
call fcn.10015590
add esp, 0xc
add esi, edi
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x20]
mov edx, dword [edx]
call fcn.1004d2a0
mov eax, dword [ebp - 0x1c]
add esp, 4
cdq
add eax, 5
adc edx, 0
cmp dword [ebp - 4], 0
jne 0x1004c9ce
push edx
push eax
lea edx, [ebp - 4]
lea ecx, [ebp - 0x20]
call fcn.1004d570
add esp, 8
test eax, eax
jne 0x1004c9ce
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [str._IS__]
mov dword [ecx + edx], eax
mov al, byte [0x101305c4]
mov byte [ecx + edx + 4], al
add edx, 5
mov dword [ebp - 0x1c], edx
lea eax, [ebp - 4]
mov edx, esi
push eax
lea ecx, [ebp - 0x20]
call fcn.1004d330
mov ebx, dword [ebp - 4]
mov edi, str._AND
mov edx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
add eax, 4
inc esi
sub ecx, 1
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], esi
mov dword [ebp + 0xc], ecx
jne 0x1004c910
mov dword [ebp - 8], edx
mov esi, dword [ebp - 0x20]
test ebx, ebx
jne 0x1004ca32
mov ebx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push dword [ebp + 0x18]
push 0
push 0x80
push ebx
call fcn.100a7a30
add esp, 0x14
mov ebx, eax
test esi, esi
je 0x1004ca98
cmp dword [0x101422c8], 0
je 0x1004ca8e
mov eax, dword [0x101441e8]
test eax, eax
je 0x1004ca52
push eax
call dword [0x10142318]
add esp, 4
push esi
call dword [0x101422f4]
sub dword [0x10144240], eax
add esp, 4
dec dword [0x10144264]
push esi
call dword [0x101422ec]
mov eax, dword [0x101441e8]
add esp, 4
test eax, eax
je 0x1004ca98
push eax
call dword [0x10142320]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x101422ec]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret