Function at 0x4caeab
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, eax
mov eax, dword [ebx]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
mov ecx, edi
mov eax, ebx
call fcn.004a5171
mov dword [ebp - 8], eax
test eax, eax
jl 0x4cb1fa
cmp dword [ebp + 0xc], 0
je 0x4caf00
cmp dword [edi + 4], 0
jbe 0x4caef9
cmp eax, 1
je 0x4caef9
push str.temporary_table_name_must_be_unqualified
mov edi, ebx
call fcn.004a10e3
jmp 0x4cb055
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edi, dword [ebp - 4]
mov dword [ebx + 0x1ec], ecx
mov ecx, dword [eax + 4]
mov dword [ebx + 0x1f0], ecx
mov ecx, edi
call fcn.004a5127
mov dword [ebp - 0xc], eax
test eax, eax
je 0x4cb1fa
push eax
mov eax, ebx
call fcn.004a51bd
pop ecx
test eax, eax
jne 0x4cb049
inc eax
cmp dword [edi + 0x74], eax
jne 0x4caf43
mov dword [ebp + 0xc], eax
mov esi, dword [ebp - 8]
mov eax, dword [edi + 8]
shl esi, 4
cmp dword [ebp + 0xc], 1
mov edi, dword [esi + eax]
mov eax, str.sqlite_temp_master
je 0x4caf5f
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
mov eax, ebx
call fcn.004a4ea7
add esp, 0x10
test eax, eax
jne 0x4cb049
xor ecx, ecx
cmp dword [ebp + 0x10], eax
je 0x4caf8a
cmp dword [ebp + 0xc], eax
sete cl
lea ecx, [ecx + ecx + 6]
jmp 0x4caf94
cmp dword [ebp + 0xc], eax
setne cl
lea ecx, [ecx + ecx + 2]
cmp dword [ebp + 0x14], eax
jne 0x4cafb1
push edi
push eax
push dword [ebp - 0xc]
mov eax, ebx
push ecx
call fcn.004a4ea7
add esp, 0x10
test eax, eax
jne 0x4cb049
cmp byte [ebx + 0x214], 0
jne 0x4cb027
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [esi + eax]
mov edi, ebx
mov dword [ebp - 0x14], eax
call fcn.004ca928
test eax, eax
jne 0x4cb049
push dword [ebp - 0x14]
mov edi, dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0049dc06
pop ecx
pop ecx
test eax, eax
je 0x4cb001
cmp dword [ebp + 0x18], 0
jne 0x4caff5
push dword [ebp - 0x10]
push str.table__T_already_exists
jmp 0x4cb01c
mov esi, dword [ebp - 8]
mov eax, ebx
call fcn.004bd999
jmp 0x4cb049
push dword [ebp - 0x14]
mov edx, edi
push dword [ebp - 0xc]
call fcn.0049dc7d
pop ecx
pop ecx
test eax, eax
je 0x4cb027
push dword [ebp - 0xc]
push str.there_is_already_an_index_named__s
mov edi, ebx
call fcn.004a10e3
pop ecx
pop ecx
jmp 0x4cb049
mov eax, dword [ebp - 4]
push 0x4c
call fcn.004a71aa
mov edi, eax
pop ecx
test edi, edi
jne 0x4cb05b
mov eax, dword [ebp - 4]
mov byte [eax + 0x1e], 1
inc dword [ebx + 0x40]
mov dword [ebx + 4], 7
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.004984ff
pop ecx
pop ecx
jmp 0x4cb1fa
or dword [edi + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov ecx, dword [ecx + 8]
mov ecx, dword [esi + ecx + 0xc]
mov dword [edi + 0x44], ecx
xor ecx, ecx
inc ecx
mov word [edi + 0x20], cx
mov dword [edi + 0x18], 0xf4240
cmp byte [ebx + 0x13], 0
mov dword [ebx + 0x200], edi
jne 0x4cb0a2
push str.sqlite_sequence
push eax
call fcn.004ddd20
pop ecx
pop ecx
test eax, eax
jne 0x4cb0a2
mov eax, dword [edi + 0x44]
mov dword [eax + 0x48], edi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x4cb1fa
mov edi, ebx
call fcn.004a985b
mov esi, eax
test esi, esi
je 0x4cb1fa
mov ecx, dword [ebp - 8]
push 0
mov eax, ebx
call fcn.004bda57
cmp dword [ebp + 0x14], 0
pop ecx
je 0x4cb0dd
push 0x7c
mov ecx, esi
call fcn.004a3308
pop ecx
mov eax, dword [ebx + 0x48]
inc eax
lea edi, [eax + 1]
push 2
mov dword [ebx + 0x19c], edi
inc edi
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebx + 0x198], eax
push 0x23
pop eax
mov ecx, esi
mov dword [ebx + 0x48], edi
call fcn.004a3296
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0049cb23
push edi
push 0x1a
pop eax
mov ecx, esi
call fcn.004a331a
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
and eax, 0x100000
neg eax
sbb eax, eax
and eax, 0xfffffffd
push edi
add eax, 4
push eax
push 7
pop eax
mov ecx, esi
call fcn.004a332b
push edi
push 2
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.004a3296
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 0x4d]
push edi
push eax
push 7
pop eax
mov ecx, esi
call fcn.004a332b
push edi
push 5
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.004a3296
mov eax, dword [ebp - 0x14]
add esp, 0x38
mov ecx, esi
call fcn.0049cada
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x4cb19e
cmp dword [ebp + 0x14], ecx
jne 0x4cb19e
mov eax, dword [ebp - 0xc]
inc eax
push eax
push dword [ebp - 8]
push 0x62
jmp 0x4cb1a6
mov eax, dword [ebp - 0xc]
inc eax
push eax
push ecx
push 7
pop eax
mov ecx, esi
call fcn.004a332b
pop ecx
pop ecx
push dword [ebp - 8]
mov eax, ebx
call fcn.004abfbd
push dword [ebp - 0xc]
xor ebx, ebx
push ebx
push 0x36
pop eax
mov ecx, esi
call fcn.004a332b
push edi
push ebx
push 0xa
pop eax
mov ecx, esi
call fcn.004a332b
push dword [ebp - 0xc]
mov ecx, esi
push edi
push ebx
push 0x37
pop eax
call fcn.004a3296
mov dl, 8
mov ecx, esi
call fcn.0049cac8
push 0x2b
mov ecx, esi
call fcn.004a3308
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret