Function at 0x410450
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a33c
mov eax, dword fs:[0]
push eax
mov eax, 0x205c
call fcn.0049ff70
mov eax, dword [0x53307c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x20]
lea ecx, [edi + 0x58]
cmp ecx, esi
je 0x4104a1
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x410498
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00401c70
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x4104b6
xor edx, edx
call fcn.00496480
mov dword [edi + 0x54], 0
cmp dword [esi + 0x14], 0x10
jb 0x4104be
mov esi, dword [esi]
push 0
push 6
lea edx, [edi + 0x54]
mov ecx, esi
call fcn.00498730
add esp, 8
lea eax, [edi + 0x38]
lea ecx, [ebp - 0x2040]
push eax
call fcn.00406d00
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004e7890
cmp dword [ebp - 0x202c], 0x10
lea eax, [ebp - 0x2040]
cmovae eax, dword [ebp - 0x2040]
push eax
push str.SELECT__FROM_sqlite_master_WHERE_typetable_and_name_s
lea eax, [ebp - 0x1010]
push 0x1000
push eax
call fcn.00401c40
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x2018], 0
add esp, 0x1c
mov dword [ebp - 0x2014], 0xf
mov byte [ebp - 0x2028], 0
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410550
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x2028]
call fcn.00401c70
mov dword [ebp - 0x2068], 0
mov dword [ebp - 0x2064], 0
mov dword [ebp - 0x2060], 0
mov dword [ebp - 0x205c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x2028]
cmp dword [ebp - 0x2014], 0x10
mov dword [ebp - 0x2048], 0
cmovae edx, dword [ebp - 0x2028]
mov ecx, edx
mov dword [ebp - 0x2044], 0xf
mov byte [ebp - 0x2058], 0
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4105d0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2058]
call fcn.00401c70
lea eax, [ebp - 0x2068]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x2058]
lea ebx, [edi + 0x50]
push eax
mov ecx, ebx
call fcn.00418480
mov byte [ebp - 4], 2
mov esi, eax
mov edx, dword [ebp - 0x2044]
cmp edx, 0x10
jb 0x410642
mov ecx, dword [ebp - 0x2058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x410638
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41081a
push edx
push ecx
call fcn.0049e956
add esp, 8
test esi, esi
jne 0x4106fa
mov ecx, dword [ebp - 0x2064]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x2068]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x410700
push 0x1000
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.004e7890
cmp dword [ebp - 0x202c], 0x10
lea eax, [ebp - 0x2040]
push str.value
cmovae eax, dword [ebp - 0x2040]
push 0x526f08
push eax
push str.CREATE_TABLE__s___s_varchar_primary_key___s_varchar_
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00401c40
lea edx, [ebp - 0x2010]
add esp, 0x24
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4106c1
sub edx, ecx
lea eax, [ebp - 0x2010]
push edx
push eax
lea ecx, [ebp - 0x2028]
call fcn.00401c70
lea eax, [ebp - 0x2028]
mov ecx, ebx
push eax
call fcn.00418300
cmp eax, 0x65
je 0x4106fa
mov esi, dword [ebp - 0x2068]
xor bl, bl
jmp 0x410706
mov esi, dword [ebp - 0x2068]
mov byte [edi + 4], 1
mov bl, 1
test esi, esi
je 0x410790
mov edi, dword [ebp - 0x2064]
cmp esi, edi
je 0x41072c
mov ecx, esi
call fcn.00410ed0
add esi, 0xc
cmp esi, edi
jne 0x410718
mov esi, dword [ebp - 0x2068]
mov ecx, dword [ebp - 0x2060]
mov eax, 0x2aaaaaab
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 2
cmp ecx, 0x1000
jb 0x410768
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41081f
push ecx
push esi
call fcn.0049e956
add esp, 8
mov dword [ebp - 0x2068], 0
mov dword [ebp - 0x2064], 0
mov dword [ebp - 0x2060], 0
mov edx, dword [ebp - 0x2014]
cmp edx, 0x10
jb 0x4107c6
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4107bc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410824
push edx
push ecx
call fcn.0049e956
add esp, 8
mov edx, dword [ebp - 0x202c]
cmp edx, 0x10
jb 0x4107fc
mov ecx, dword [ebp - 0x2040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4107f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410829
push edx
push ecx
call fcn.0049e956
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049e964
mov esp, ebp
pop ebp
ret
call fcn.004e9a8c
call fcn.004e9a8c
call fcn.004e9a8c
call fcn.004e9a8c
int3