Function at 0x4a3b30
Capabilities:
Reference sql statements

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebp
push esi
push edi
push eax
xor ebp, ebp
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
call fcn.004d32a0
mov esi, dword [esp + 0x24]
mov edx, dword [esi]
push ebp
lea ecx, [esp + 0x18]
push ecx
mov edi, eax
push 0xffffffffffffffff
push edi
push edx
mov dword [esp + 0x30], edi
call fcn.00521340
add esp, 0x1c
test eax, eax
je 0x4a3ba5
mov eax, dword [esi]
push edi
push eax
call fcn.004f7f30
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
call fcn.004f8080
add esp, 4
push eax
push str.Error:___d___s_on___s__n
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.00495e80
add esp, 0x14
jmp 0x4a3d87
mov edx, dword [esp + 0xc]
push edx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x4a3c6b
jmp 0x4a3bc0
mov eax, dword [esp + 0xc]
push ebp
push eax
call fcn.004d0010
mov ecx, dword [esp + 0x14]
push 1
push ecx
mov edi, eax
call fcn.004d0010
push edi
push str._s...
mov esi, eax
call fcn.00587839
call fcn.0058bb1f
add eax, 0x20
push eax
call fcn.00586d99
lea edx, [esp + 0x2c]
push edx
push ebp
push ebp
push esi
push ebx
call fcn.00527d00
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp eax, ebp
je 0x4a3c33
push esi
push eax
push str.Error:__s_nSQL:___s__n
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.00495e80
mov eax, dword [esp + 0x20]
push eax
call fcn.004acb60
add esp, 0x14
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4a3c47
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push ecx
call eax
add esp, 0xc
push str.done_n
call fcn.00587839
mov edx, dword [esp + 0x10]
push edx
call fcn.00527980
add esp, 8
cmp eax, 0x64
je 0x4a3bc0
mov esi, dword [esp + 0x1c]
cmp eax, 0x65
je 0x4a3d87
mov eax, dword [esp + 0xc]
push eax
call fcn.005127b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004acb60
mov edx, dword [esp + 0x28]
push edx
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s_ORDER_BY_rowid_DESC
call fcn.004d32a0
mov ecx, dword [esi]
mov edi, eax
push ebp
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push ecx
mov dword [esp + 0x38], edi
call fcn.00521340
add esp, 0x24
test eax, eax
je 0x4a3cca
mov edx, dword [esi]
push edi
push edx
call fcn.004f7f30
add esp, 4
push eax
mov eax, dword [esi]
push eax
jmp 0x4a3b81
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00527980
add esp, 4
cmp eax, 0x64
jne 0x4a3d87
mov edx, dword [esp + 0xc]
push ebp
push edx
call fcn.004d0010
mov edi, eax
mov eax, dword [esp + 0x14]
push 1
push eax
call fcn.004d0010
push edi
push str._s...
mov esi, eax
call fcn.00587839
call fcn.0058bb1f
add eax, 0x20
push eax
call fcn.00586d99
lea ecx, [esp + 0x2c]
push ecx
push ebp
push ebp
push esi
push ebx
call fcn.00527d00
mov eax, dword [esp + 0x40]
add esp, 0x30
cmp eax, ebp
je 0x4a3d53
push esi
push eax
push str.Error:__s_nSQL:___s__n
call fcn.0058bb1f
add eax, 0x40
push eax
call fcn.00495e80
mov edx, dword [esp + 0x20]
push edx
call fcn.004acb60
add esp, 0x14
mov dword [esp + 0x10], ebp
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4a3d67
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push ecx
call eax
add esp, 0xc
push str.done_n
call fcn.00587839
mov edx, dword [esp + 0x10]
push edx
call fcn.00527980
add esp, 8
cmp eax, 0x64
je 0x4a3ce0
mov eax, dword [esp + 0xc]
push eax
call fcn.005127b0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.004acb60
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xc
ret