Function at 0x49bdc0
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x50578e
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x806d00]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
push 1
add ecx, 0x10
push ecx
lea eax, [esp + 0x24]
push eax
call dword [0x6ad848]
add esp, 8
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov dword [esp + 0x64], 0
call dword [0x6ad8bc]
lea ecx, [esp + 0x28]
call dword [0x6ad844]
mov byte [esp + 0x28], 0x20
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x1a]
mov byte [esp + 0x60], 1
call dword [0x6abb70]
push str.SELECT_name_FROM_sqlite_master_WHERE_typetable_and_name__1
lea ecx, [esp + 0x24]
call dword [0x6abbc4]
mov ebp, dword [esp + 0x64]
mov ebx, dword [0x6abb74]
lea ecx, [esp + 0x16]
push ecx
push 0
push ebp
lea edx, [esp + 0x34]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 2
call ebx
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x60], 3
call dword [0x6ad840]
test al, al
lea ecx, [esp + 0x28]
sete byte [esp + 0x64]
mov byte [esp + 0x5c], 2
call dword [0x6abc18]
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 1
call dword [0x6abc18]
cmp byte [esp + 0x64], 0
je 0x49bef9
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x20]
call dword [0x6ad8c8]
mov ecx, eax
mov byte [esp + 0x5c], 4
call dword [0x6ad8c0]
mov esi, eax
lea ecx, [esp + 0x44]
neg esi
mov byte [esp + 0x5c], 1
call dword [0x6ad8d0]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call dword [0x6ad82c]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], 0xffffffff
call dword [0x6ad84c]
mov eax, esi
jmp 0x49c16f
lea ecx, [esp + 0x24]
call dword [0x6ad83c]
mov edi, dword [0x6ad82c]
test al, al
jne 0x49c150
mov byte [esp + 0x64], 0x20
mov ecx, dword [esp + 0x64]
push ecx
lea ecx, [esp + 0x68]
call dword [0x6abb70]
push str.CREATE_TABLE__1
lea ecx, [esp + 0x30]
call dword [0x6abbc4]
lea edx, [esp + 0x64]
push edx
push 0
push ebp
lea ecx, [esp + 0x2c]
push ecx
mov ecx, eax
mov byte [esp + 0x6c], 5
call ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x5c], 7
call dword [0x6abc18]
push str._ID_INTEGER_PRIMARY_KEY_
lea ecx, [esp + 0x24]
call dword [0x6aba54]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
call dword [0x6ad8c4]
lea ecx, [esp + 0x18]
call edi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call dword [0x6ad8c8]
mov ecx, eax
mov byte [esp + 0x5c], 8
call dword [0x6ad8c0]
mov esi, eax
lea ecx, [esp + 0x44]
neg esi
mov byte [esp + 0x5c], 7
call dword [0x6ad8d0]
test esi, esi
jne 0x49c113
mov byte [esp + 0x18], 0x20
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x1c]
call dword [0x6abb70]
mov byte [esp + 0x30], 0x20
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x1a]
call dword [0x6abb70]
push str.INSERT_INTO__1__ID__VALUES___2_
lea ecx, [esp + 0x3c]
call dword [0x6abbc4]
lea ecx, [esp + 0x16]
push ecx
push esi
push ebp
lea edx, [esp + 0x40]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 9
call ebx
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x18]
push ecx
push 0xa
push esi
push edx
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
mov byte [esp + 0x70], 0xa
call dword [0x6abafc]
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 0xc
call dword [0x6abc18]
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 0xd
call dword [0x6abc18]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x24]
call dword [0x6ad8c4]
lea ecx, [esp + 0x68]
call edi
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x20]
call dword [0x6ad8c8]
mov ecx, eax
mov byte [esp + 0x5c], 0xe
call dword [0x6ad8c0]
mov esi, eax
lea ecx, [esp + 0x44]
neg esi
mov byte [esp + 0x5c], 0xd
call dword [0x6ad8d0]
test esi, esi
je 0x49c132
mov byte [esp + 0x68], 0x20
mov edx, dword [esp + 0x68]
push edx
lea ecx, [esp + 0x6c]
call dword [0x6abb70]
push str.DROP_TABLE__1
lea ecx, [esp + 0x34]
call dword [0x6abbc4]
lea ecx, [esp + 0x68]
push ecx
push 0
push ebp
lea edx, [esp + 0x4c]
push edx
mov ecx, eax
mov byte [esp + 0x6c], 0xf
call ebx
lea ecx, [esp + 0x30]
mov byte [esp + 0x5c], 0x11
call dword [0x6abc18]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x24]
call dword [0x6ad8c4]
lea ecx, [esp + 0x3c]
call edi
lea ecx, [esp + 0x40]
mov byte [esp + 0x5c], 0xd
call dword [0x6abc18]
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 7
call dword [0x6abc18]
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 1
call dword [0x6abc18]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call edi
jmp 0x49bee0
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 7
call dword [0x6abc18]
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 1
call dword [0x6abc18]
lea ecx, [esp + 0x24]
mov byte [esp + 0x5c], 0
call edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x5c], 0xffffffff
call dword [0x6ad84c]
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 8