Function at 0x583ecc
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.0055e192
mov dword [ebp - 8], eax
test eax, eax
jl 0x58421b
cmp dword [ebp + 0xc], 0
je 0x583f21
cmp dword [edi + 4], 0
jbe 0x583f1a
cmp eax, 1
je 0x583f1a
push str.temporary_table_name_must_be_unqualified
mov edi, ebx
call fcn.0055a104
jmp 0x584076
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.0055e148
mov dword [ebp - 0xc], eax
test eax, eax
je 0x58421b
push eax
mov eax, ebx
call fcn.0055e1de
pop ecx
test eax, eax
jne 0x58406a
inc eax
cmp dword [edi + 0x74], eax
jne 0x583f64
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 0x583f80
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
mov eax, ebx
call fcn.0055dec8
add esp, 0x10
test eax, eax
jne 0x58406a
xor ecx, ecx
cmp dword [ebp + 0x10], eax
je 0x583fab
cmp dword [ebp + 0xc], eax
sete cl
lea ecx, [ecx + ecx + 6]
jmp 0x583fb5
cmp dword [ebp + 0xc], eax
setne cl
lea ecx, [ecx + ecx + 2]
cmp dword [ebp + 0x14], eax
jne 0x583fd2
push edi
push eax
push dword [ebp - 0xc]
mov eax, ebx
push ecx
call fcn.0055dec8
add esp, 0x10
test eax, eax
jne 0x58406a
cmp byte [ebx + 0x214], 0
jne 0x584048
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.00583949
test eax, eax
jne 0x58406a
push dword [ebp - 0x14]
mov edi, dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00556c26
pop ecx
pop ecx
test eax, eax
je 0x584022
cmp dword [ebp + 0x18], 0
jne 0x584016
push dword [ebp - 0x10]
push str.table__T_already_exists
jmp 0x58403d
mov esi, dword [ebp - 8]
mov eax, ebx
call fcn.005769ba
jmp 0x58406a
push dword [ebp - 0x14]
mov edx, edi
push dword [ebp - 0xc]
call fcn.00556c9d
pop ecx
pop ecx
test eax, eax
je 0x584048
push dword [ebp - 0xc]
push str.there_is_already_an_index_named__s
mov edi, ebx
call fcn.0055a104
pop ecx
pop ecx
jmp 0x58406a
mov eax, dword [ebp - 4]
push 0x4c
call fcn.005601cb
mov edi, eax
pop ecx
test edi, edi
jne 0x58407c
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.00551521
pop ecx
pop ecx
jmp 0x58421b
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 0x5840c3
push str.sqlite_sequence
push eax
call fcn.00598590
pop ecx
pop ecx
test eax, eax
jne 0x5840c3
mov eax, dword [edi + 0x44]
mov dword [eax + 0x48], edi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x58421b
mov edi, ebx
call fcn.0056287c
mov esi, eax
test esi, esi
je 0x58421b
mov ecx, dword [ebp - 8]
push 0
mov eax, ebx
call fcn.00576a78
cmp dword [ebp + 0x14], 0
pop ecx
je 0x5840fe
push 0x7c
mov ecx, esi
call fcn.0055c329
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.0055c2b7
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.00555b45
push edi
push 0x1a
pop eax
mov ecx, esi
call fcn.0055c33b
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.0055c34c
push edi
push 2
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.0055c2b7
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.0055c34c
push edi
push 5
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.0055c2b7
mov eax, dword [ebp - 0x14]
add esp, 0x38
mov ecx, esi
call fcn.00555afc
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x5841bf
cmp dword [ebp + 0x14], ecx
jne 0x5841bf
mov eax, dword [ebp - 0xc]
inc eax
push eax
push dword [ebp - 8]
push 0x62
jmp 0x5841c7
mov eax, dword [ebp - 0xc]
inc eax
push eax
push ecx
push 7
pop eax
mov ecx, esi
call fcn.0055c34c
pop ecx
pop ecx
push dword [ebp - 8]
mov eax, ebx
call fcn.00564fde
push dword [ebp - 0xc]
xor ebx, ebx
push ebx
push 0x36
pop eax
mov ecx, esi
call fcn.0055c34c
push edi
push ebx
push 0xa
pop eax
mov ecx, esi
call fcn.0055c34c
push dword [ebp - 0xc]
mov ecx, esi
push edi
push ebx
push 0x37
pop eax
call fcn.0055c2b7
mov dl, 8
mov ecx, esi
call fcn.00555aea
push 0x2b
mov ecx, esi
call fcn.0055c329
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret