Function at 0x47ddcd
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.00458093
mov dword [ebp - 8], eax
test eax, eax
jl 0x47e11c
cmp dword [ebp + 0xc], 0
je 0x47de22
cmp dword [edi + 4], 0
jbe 0x47de1b
cmp eax, 1
je 0x47de1b
push str.temporary_table_name_must_be_unqualified
mov edi, ebx
call fcn.00454005
jmp 0x47df77
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.00458049
mov dword [ebp - 0xc], eax
test eax, eax
je 0x47e11c
push eax
mov eax, ebx
call fcn.004580df
pop ecx
test eax, eax
jne 0x47df6b
inc eax
cmp dword [edi + 0x74], eax
jne 0x47de65
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 0x47de81
mov eax, str.sqlite_master
push edi
push 0
push eax
push 0x12
mov eax, ebx
call fcn.00457dc9
add esp, 0x10
test eax, eax
jne 0x47df6b
xor ecx, ecx
cmp dword [ebp + 0x10], eax
je 0x47deac
cmp dword [ebp + 0xc], eax
sete cl
lea ecx, [ecx + ecx + 6]
jmp 0x47deb6
cmp dword [ebp + 0xc], eax
setne cl
lea ecx, [ecx + ecx + 2]
cmp dword [ebp + 0x14], eax
jne 0x47ded3
push edi
push eax
push dword [ebp - 0xc]
mov eax, ebx
push ecx
call fcn.00457dc9
add esp, 0x10
test eax, eax
jne 0x47df6b
cmp byte [ebx + 0x214], 0
jne 0x47df49
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.0047d84a
test eax, eax
jne 0x47df6b
push dword [ebp - 0x14]
mov edi, dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.00450b28
pop ecx
pop ecx
test eax, eax
je 0x47df23
cmp dword [ebp + 0x18], 0
jne 0x47df17
push dword [ebp - 0x10]
push str.table__T_already_exists
jmp 0x47df3e
mov esi, dword [ebp - 8]
mov eax, ebx
call fcn.004708bb
jmp 0x47df6b
push dword [ebp - 0x14]
mov edx, edi
push dword [ebp - 0xc]
call fcn.00450b9f
pop ecx
pop ecx
test eax, eax
je 0x47df49
push dword [ebp - 0xc]
push str.there_is_already_an_index_named__s
mov edi, ebx
call fcn.00454005
pop ecx
pop ecx
jmp 0x47df6b
mov eax, dword [ebp - 4]
push 0x4c
call fcn.0045a0cc
mov edi, eax
pop ecx
test edi, edi
jne 0x47df7d
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.0044b423
pop ecx
pop ecx
jmp 0x47e11c
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 0x47dfc4
push str.sqlite_sequence
push eax
call fcn.00490140
pop ecx
pop ecx
test eax, eax
jne 0x47dfc4
mov eax, dword [edi + 0x44]
mov dword [eax + 0x48], edi
mov eax, dword [ebp - 4]
cmp byte [eax + 0x7c], 0
jne 0x47e11c
mov edi, ebx
call fcn.0045c77d
mov esi, eax
test esi, esi
je 0x47e11c
mov ecx, dword [ebp - 8]
push 0
mov eax, ebx
call fcn.00470979
cmp dword [ebp + 0x14], 0
pop ecx
je 0x47dfff
push 0x7c
mov ecx, esi
call fcn.0045622a
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.004561b8
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0044fa44
push edi
push 0x1a
pop eax
mov ecx, esi
call fcn.0045623c
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.0045624d
push edi
push 2
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.004561b8
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.0045624d
push edi
push 5
push dword [ebp - 8]
mov ecx, esi
push 0x24
pop eax
call fcn.004561b8
mov eax, dword [ebp - 0x14]
add esp, 0x38
mov ecx, esi
call fcn.0044f9fb
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
jne 0x47e0c0
cmp dword [ebp + 0x14], ecx
jne 0x47e0c0
mov eax, dword [ebp - 0xc]
inc eax
push eax
push dword [ebp - 8]
push 0x62
jmp 0x47e0c8
mov eax, dword [ebp - 0xc]
inc eax
push eax
push ecx
push 7
pop eax
mov ecx, esi
call fcn.0045624d
pop ecx
pop ecx
push dword [ebp - 8]
mov eax, ebx
call fcn.0045eedf
push dword [ebp - 0xc]
xor ebx, ebx
push ebx
push 0x36
pop eax
mov ecx, esi
call fcn.0045624d
push edi
push ebx
push 0xa
pop eax
mov ecx, esi
call fcn.0045624d
push dword [ebp - 0xc]
mov ecx, esi
push edi
push ebx
push 0x37
pop eax
call fcn.004561b8
mov dl, 8
mov ecx, esi
call fcn.0044f9e9
push 0x2b
mov ecx, esi
call fcn.0045622a
add esp, 0x24
pop edi
pop esi
pop ebx
leave
ret