Function at 0x416000
Capabilities:
Reference sql statements

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, dword [esp + 0x28]
mov ebp, edx
mov esi, ecx
mov dword [esp], 0
mov dword [esp + 4], 0
push ebx
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s
call fcn.0041ef10
add esp, 8
mov edi, eax
mov eax, esp
push 0
push eax
push 0xffffffffffffffff
push edi
push dword [esi]
call fcn.0042cf00
add esp, 0x14
test eax, eax
je 0x416081
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov ebp, esi
mov esi, eax
push dword [ebp]
call fcn.00432030
add esp, 4
mov ebx, eax
push dword [ebp]
call fcn.0042cf50
add esp, 4
push edi
push eax
push ebx
push str.Error:___d___s_on___s__n
push esi
call fcn.004014c0
add esp, 0x14
jmp 0x4161f2
mov dword [esp + 8], edi
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
jmp 0x4160b3
push str.done
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push dword [esp]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x416170
push 0
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov ebp, eax
push 1
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov esi, eax
push ebp
push str._s...
call fcn.00405eb0
add esp, 8
push 1
call edi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
lea eax, [esp + 4]
push eax
push 0
push 0
push esi
push dword [esp + 0x1c]
call fcn.0042c9a0
add esp, 0x14
cmp dword [esp + 4], 0
je 0x416150
push 2
call edi
add esp, 4
push esi
push dword [esp + 8]
push str.Error:__s_nSQL:___s__n
push eax
call fcn.004014c0
add esp, 0x10
push dword [esp + 4]
call fcn.0041c220
add esp, 4
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x10]
test eax, eax
je 0x4160a0
push ebp
push dword [esp + 0x10]
push esi
call eax
add esp, 0xc
jmp 0x4160a0
cmp eax, 0x65
jne 0x41617b
mov edi, dword [esp + 8]
jmp 0x4161f2
push dword [esp]
call fcn.00425440
add esp, 4
push dword [esp + 8]
call fcn.0041c220
add esp, 4
push ebx
push str.SELECT_name__sql_FROM_sqlite_master_WHERE__s_ORDER_BY_rowid_DESC
call fcn.0041ef10
add esp, 8
mov ebp, eax
push 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push ebp
push dword [esi]
call fcn.0042cf00
add esp, 0x14
test eax, eax
je 0x41620b
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, esi
mov esi, eax
push dword [edi]
call fcn.00432030
add esp, 4
mov ebx, eax
push dword [edi]
call fcn.0042cf50
add esp, 4
push ebp
push eax
push ebx
push str.Error:___d___s_on___s__n
push esi
call fcn.004014c0
add esp, 0x14
mov edi, ebp
push dword [esp]
call fcn.00425440
add esp, 4
push edi
call fcn.0041c220
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esp + 8], ebp
push dword [esp]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x416175
mov ebx, dword [esp + 0xc]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x416251
push str.done
call sub.api_ms_win_crt_stdio_l1_1_0.dll_puts
add esp, 4
push dword [esp]
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x416175
push 0
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov ebp, eax
push 1
push dword [esp + 4]
call fcn.00428220
add esp, 8
mov esi, eax
push ebp
push str._s...
call fcn.00405eb0
add esp, 8
push 1
call edi
add esp, 4
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
lea eax, [esp + 4]
push eax
push 0
push 0
push esi
push ebx
call fcn.0042c9a0
add esp, 0x14
cmp dword [esp + 4], 0
je 0x4162d7
push 2
call edi
add esp, 4
push esi
push dword [esp + 8]
push str.Error:__s_nSQL:___s__n
push eax
call fcn.004014c0
add esp, 0x10
push dword [esp + 4]
call fcn.0041c220
add esp, 4
mov dword [esp + 4], 0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
test ecx, ecx
je 0x416230
push ebp
push ebx
push eax
call ecx
add esp, 0xc
jmp 0x416230