Function at 0x492c68
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_master_WHERE__s
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00433b08
mov edi, eax
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.0046d028
test eax, eax
jne 0x492e0d
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0045a992
cmp eax, 0x64
mov edx, dword [ebp - 0x20]
jne 0x492db2
mov dword [esp], edx
mov dword [esp + 4], 0
call fcn.0042219f
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0042219f
mov esi, eax
mov eax, dword [ebp - 0x30]
mov dword [esp], str._s...
mov dword [esp + 4], eax
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 + 4], esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.0045ba70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x492d87
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 0xc], esi
mov dword [esp + 4], str.Error:__s_nSQL:___s__n
add eax, 0x40
mov dword [esp], eax
call fcn.00487932
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00409a90
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x492da1
mov eax, dword [ebp - 0x30]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
call dword [ebp + 8]
mov dword [esp], str.done
call sub.msvcrt.dll_puts
jmp 0x492cc6
cmp eax, 0x65
je 0x492f33
mov dword [esp], edx
call fcn.004500a8
mov dword [esp], edi
call fcn.00409a90
mov eax, dword [ebp - 0x34]
mov dword [esp], str.SELECT_name__sql_FROM_sqlite_master_WHERE__s_ORDER_BY_rowid_DESC
mov dword [esp + 4], eax
call fcn.00433b08
mov edi, eax
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.0046d028
test eax, eax
je 0x492f1f
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.0042701d
mov esi, eax
mov eax, dword [ebx]
mov dword [esp], eax
call fcn.00426fe5
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.00487932
jmp 0x492f33
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0042219f
mov esi, eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0042219f
mov dword [esp + 4], esi
mov dword [esp], str._s...
mov dword [ebp - 0x30], eax
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.0045ba70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x492efc
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.00487932
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00409a90
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x492f13
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
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0045a992
cmp eax, 0x64
je 0x492e4c
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.004500a8
mov dword [esp], edi
call fcn.00409a90
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret