Function at 0x458469
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
mov eax, edx
mov dword [ebp - 8], eax
mov ecx, str.sqlite_temp_master
mov ebx, dword [edi]
cmp byte [ebx + 0x99], 0
je 0x4584b0
cmp dword [ebx + 0x94], 1
jne 0x4584b0
movzx eax, byte [ebx + 0x98]
mov edx, str.sqlite_master
cmp eax, 1
mov dword [ebp - 4], eax
cmove edx, ecx
mov ecx, ebx
call fcn.0042c548
jmp 0x458505
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push esi
mov ecx, edi
call fcn.0045837e
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
js 0x4585f5
cmp dword [ebp + 0xc], 0
je 0x4584f6
cmp dword [esi + 4], 0
jbe 0x4584ef
cmp eax, 1
je 0x4584ef
push str.temporary_table_name_must_be_unqualified
push edi
call fcn.0042e402
pop ecx
pop ecx
jmp 0x4585f5
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
mov ecx, ebx
mov edx, eax
mov dword [ebp - 8], eax
call fcn.004582a3
mov ecx, dword [ebp - 8]
mov esi, eax
mov eax, dword [ecx]
mov dword [edi + 0x180], eax
mov eax, dword [ecx + 4]
mov dword [edi + 0x184], eax
test esi, esi
je 0x4585f5
mov edx, esi
mov ecx, edi
call fcn.004583e2
test eax, eax
jne 0x4585ec
mov ecx, dword [ebp - 4]
xor edx, edx
mov eax, dword [ebx + 0x10]
inc edx
cmp byte [ebx + 0x98], dl
cmovne edx, dword [ebp + 0xc]
shl ecx, 4
cmp edx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
mov eax, dword [ecx + eax]
mov ecx, str.sqlite_temp_master
push eax
mov dword [ebp - 0xc], eax
mov eax, str.sqlite_master
push 0
cmove eax, ecx
mov ecx, edi
push eax
push 0x12
pop edx
call fcn.00457946
add esp, 0xc
test eax, eax
jne 0x4585ec
cmp dword [ebp + 0x14], eax
jne 0x4585a1
push dword [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 0x14]
push esi
movzx edx, byte [eax + ecx*2 + 0x5017d0]
mov ecx, edi
call fcn.00457946
add esp, 0xc
test eax, eax
jne 0x4585ec
cmp byte [edi + 0x194], 0
jne 0x45861c
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
mov ecx, edi
mov dword [ebp - 0xc], eax
call fcn.00465e72
test eax, eax
jne 0x4585ec
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.00457d53
pop ecx
test eax, eax
je 0x4585fa
cmp dword [ebp + 0x18], 0
jne 0x4585e2
push dword [ebp - 8]
push str.table__T_already_exists
jmp 0x458611
mov edx, dword [ebp - 4]
mov ecx, edi
call fcn.0045b93e
mov edx, esi
mov ecx, ebx
call fcn.0042c1c6
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
mov edx, esi
mov ecx, ebx
call fcn.00457f0e
pop ecx
test eax, eax
je 0x45861c
push esi
push str.there_is_already_an_index_named__s
push edi
call fcn.0042e402
add esp, 0xc
jmp 0x4585ec
push 0
push 0x50
mov ecx, ebx
call fcn.0042c37a
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x45863e
inc dword [edi + 0x24]
mov dword [edi + 0xc], 7
jmp 0x4585ec
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
mov word [ecx + 0x28], ax
mov dword [ecx], esi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edx + 0xc]
mov dword [ecx + 0x48], eax
mov eax, 0xc8
mov dword [ecx + 0x20], 1
mov word [ecx + 0x2c], ax
cmp byte [edi + 0x12], 0
mov dword [edi + 0x1b4], ecx
jne 0x45868a
push str.sqlite_sequence
push esi
call fcn.004cb9b0
pop ecx
pop ecx
test eax, eax
jne 0x45868a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x48]
mov dword [eax + 0x48], ecx
cmp byte [ebx + 0x99], 0
jne 0x4585f5
mov ecx, edi
call fcn.00468189
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x4585f5
push dword [ebp - 4]
xor edx, edx
mov ecx, edi
inc edx
call fcn.0045b9c5
cmp dword [ebp + 0x14], 0
pop ecx
je 0x4586cb
mov edx, 0x9b
mov ecx, esi
call fcn.0044335b
mov eax, dword [edi + 0x2c]
mov ecx, esi
inc eax
mov dword [ebp - 8], eax
mov dword [edi + 0x64], eax
inc eax
push 2
mov dword [edi + 0x68], eax
inc eax
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
push 0x67
pop edx
mov dword [edi + 0x2c], eax
call fcn.004432f9
mov edx, dword [ebp - 4]
add esp, 0xc
mov ecx, esi
call fcn.00443d37
push dword [ebp - 0xc]
mov ecx, esi
push 0x15
pop edx
call fcn.00443369
pop ecx
mov ecx, dword [ebx + 0x18]
mov esi, eax
and ecx, 0x8000
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 4
push ecx
mov ecx, dword [ebp - 0x10]
push 2
push dword [ebp - 4]
push 0x68
pop edx
call fcn.004432f9
movzx eax, byte [ebx + 0x42]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push eax
push 5
push dword [ebp - 4]
push 0x68
pop edx
call fcn.004432f9
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00443817
cmp dword [ebp + 0x10], 0
jne 0x45877f
cmp dword [ebp + 0x14], 0
jne 0x45877f
mov eax, dword [ebp - 8]
mov edx, 0x89
inc eax
mov ecx, ebx
push eax
push dword [ebp - 4]
call fcn.0044337d
mov dword [edi + 0x84], eax
jmp 0x458790
mov eax, dword [ebp - 8]
mov ecx, ebx
inc eax
push eax
push 0
push 0x38
pop edx
call fcn.0044337d
mov edx, dword [ebp - 4]
pop ecx
pop ecx
mov ecx, edi
call fcn.004582c5
mov edi, dword [ebp - 8]
mov ecx, ebx
push edi
push 0
push 0x75
pop edx
call fcn.0044337d
mov esi, dword [ebp - 0xc]
mov ecx, ebx
push 0xfffffffffffffffe
push 0x501414
push 0
push esi
push 6
push 0x3d
pop edx
call fcn.00443422
add esp, 0x1c
mov ecx, ebx
push edi
push esi
push 0
push 0x76
pop edx
call fcn.004432f9
add esp, 0xc
mov ecx, ebx
push 8
pop edx
call fcn.004437ff
push 0x72
pop edx
call fcn.0044335b
jmp 0x4585f5