Function at 0x4098cc
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
push dword [ebp + 0x10]
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s
call fcn.0040d36f
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dd78
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40994c
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dbb4
pop ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040db73
pop ecx
push eax
push 0x49f300
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0x14
jmp 0x409b4e
push dword [ebp - 8]
call fcn.0040e54f
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
jne 0x409a08
push 0
push dword [ebp - 8]
call fcn.0040e8ac
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 8]
call fcn.0040e8ac
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
push 0x49f318
call fcn.0040aa77
pop ecx
pop ecx
push 1
call fcn.00487c90
pop ecx
push eax
call fcn.00487f98
pop ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.0040c7a8
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x4099e3
push dword [ebp - 0x14]
push dword [ebp - 4]
push 0x49f320
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0x10
push dword [ebp - 4]
call fcn.0040d51d
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x4099f8
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x14]
add esp, 0xc
push 0x49f338
call fcn.0040aa77
pop ecx
jmp 0x40994c
cmp dword [ebp - 0xc], 0x65
je 0x409b4e
push dword [ebp - 8]
call fcn.0040eaca
pop ecx
push dword [ebp - 0x10]
call fcn.0040d51d
pop ecx
push dword [ebp + 0x10]
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s_ORDER_BY_rowid_DESC
call fcn.0040d36f
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dd78
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x409a92
push dword [ebp - 0x10]
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040dbb4
pop ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0040db73
pop ecx
push eax
push str.Error:___d___s_on___s__n
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0x14
jmp 0x409b4e
push dword [ebp - 8]
call fcn.0040e54f
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x64
jne 0x409b4e
push 0
push dword [ebp - 8]
call fcn.0040e8ac
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
push 1
push dword [ebp - 8]
call fcn.0040e8ac
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x18]
push str._s...
call fcn.0040aa77
pop ecx
pop ecx
push 1
call fcn.00487c90
pop ecx
push eax
call fcn.00487f98
pop ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp - 0x14]
push dword [ebp + 0xc]
call fcn.0040c7a8
add esp, 0x14
cmp dword [ebp - 4], 0
je 0x409b29
push dword [ebp - 0x14]
push dword [ebp - 4]
push str.Error:__s_nSQL:___s__n
push 2
call fcn.00487c90
pop ecx
push eax
call fcn.0040aa3c
add esp, 0x10
push dword [ebp - 4]
call fcn.0040d51d
pop ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
je 0x409b3e
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [ebp + 0x14]
add esp, 0xc
push str.done_n
call fcn.0040aa77
pop ecx
jmp 0x409a92
push dword [ebp - 8]
call fcn.0040eaca
pop ecx
push dword [ebp - 0x10]
call fcn.0040d51d
pop ecx
leave
ret