Function at 0x4edb57
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x34], ecx
mov dword [esp + 4], ecx
mov dword [esp], str.SELECT_name__sql_FROM_sqlite_schema_WHERE__s_ORDER_BY_rowid_ASC
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.004440e8
mov edi, eax
call fcn.004bd956
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0048b371
test eax, eax
jne 0x4edd22
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
mov edx, dword [ebp - 0x20]
jne 0x4edcc6
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.0041feb6
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041feb6
test esi, esi
mov dword [ebp - 0x30], eax
je 0x4edbba
test eax, eax
je 0x4edbba
mov dword [esp + 4], str.sqlite_sequence
mov dword [esp], esi
call fcn.004019f3
test eax, eax
je 0x4edc9e
mov dword [esp + 4], esi
mov dword [esp], str._s...
call sub.msvcrt.dll_printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00477ee4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4edc9e
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], str.Error:__s_nSQL:___s__n
add eax, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004c5d3a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0040b268
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4edcb5
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebp + 8]
mov dword [esp], str.done
call sub.msvcrt.dll_puts
jmp 0x4edbba
cmp eax, 0x65
je 0x4ede6a
mov dword [esp], edx
call fcn.00458aaf
mov dword [esp], edi
call fcn.0040b268
mov eax, dword [ebp - 0x34]
mov dword [esp], str.SELECT_name__sql_FROM_sqlite_schema_WHERE__s_ORDER_BY_rowid_DESC
mov dword [esp + 4], eax
call fcn.004440e8
mov edi, eax
call fcn.004bd956
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0048b371
test eax, eax
je 0x4edd90
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042dd05
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042dccd
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Error:___d___s_on___s__n
add eax, 0x40
mov dword [esp], eax
call fcn.004c5d3a
jmp 0x4ede6a
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0041feb6
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0041feb6
test esi, esi
mov dword [ebp - 0x30], eax
jne 0x4edda5
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0047778f
cmp eax, 0x64
je 0x4edd61
jmp 0x4ede6a
test eax, eax
je 0x4edd90
mov dword [esp + 4], str.sqlite_sequence
mov dword [esp], esi
call fcn.004019f3
test eax, eax
je 0x4edd90
mov dword [esp + 4], esi
mov dword [esp], str._s...
call sub.msvcrt.dll_printf
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x20
mov dword [esp], eax
call sub.msvcrt.dll_fflush
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00477ee4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4ede42
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], str.Error:__s_nSQL:___s__n
add eax, 0x40
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call fcn.004c5d3a
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0040b268
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4ede59
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [ebp + 8]
mov dword [esp], str.done
call sub.msvcrt.dll_puts
jmp 0x4edd90
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00458aaf
mov dword [esp], edi
call fcn.0040b268
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret