Function at 0x10019c90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a49c
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x10137920]
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 esi, ecx
lea ecx, [esi + 0x5c]
lea ebx, [esi + 8]
lea eax, [esi + 0x24]
mov dword [ebp - 0x86c], esi
call fcn.1002fa50
xor ebx, ebx
push 0xffffffffffffffff
push ebx
add esi, 0x40
mov edi, 0xf
push esi
lea ecx, [ebp - 0x848]
mov dword [ebp - 0x834], edi
mov dword [ebp - 0x838], ebx
mov byte [ebp - 0x848], bl
call fcn.10004180
push 0x3ff
lea eax, [ebp - 0x80f]
push ebx
mov dword [ebp - 4], ebx
push eax
mov byte [ebp - 0x810], bl
call fcn.10066620
mov eax, dword [ebp - 0x848]
mov esi, 0x10
add esp, 0xc
cmp dword [ebp - 0x834], esi
jae 0x10019d36
lea eax, [ebp - 0x848]
push eax
push str.SELECT__FROM_sqlite_master_WHERE_typetable_and_name_s
lea ecx, [ebp - 0x810]
push 0x400
push ecx
call fcn.100665ff
lea eax, [ebp - 0x810]
add esp, 0x10
mov dword [ebp - 0x818], edi
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
lea edx, [eax + 1]
jmp 0x10019d70
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10019d70
sub eax, edx
push eax
lea edx, [ebp - 0x810]
push edx
lea ecx, [ebp - 0x82c]
call fcn.10004560
mov dword [ebp - 0x880], ebx
mov dword [ebp - 0x87c], ebx
mov dword [ebp - 0x878], ebx
mov dword [ebp - 0x870], ebx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x82c]
cmp dword [ebp - 0x818], esi
jae 0x10019dbc
lea edx, [ebp - 0x82c]
mov eax, edx
mov dword [ebp - 0x850], edi
mov dword [ebp - 0x854], ebx
mov byte [ebp - 0x864], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10019dd3
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x864]
call fcn.10004560
mov eax, dword [ebp - 0x880]
mov ecx, dword [ebp - 0x87c]
mov dword [ebp - 0x868], ebx
cmp eax, ecx
je 0x10019e17
mov edx, dword [ebp - 0x868]
push edx
push ecx
mov esi, eax
call fcn.1001a690
add esp, 8
mov dword [ebp - 0x87c], esi
mov edi, dword [ebp - 0x854]
lea eax, [edi + 2]
push eax
push 0x40
mov dword [ebp - 0x870], ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp dword [ebp - 0x850], 0x10
mov esi, eax
mov eax, dword [ebp - 0x864]
jae 0x10019e46
lea eax, [ebp - 0x864]
push edi
push eax
push esi
call fcn.10065960
mov eax, dword [ebp - 0x86c]
lea ecx, [ebp - 0x868]
push ecx
mov ecx, dword [eax + 0x60]
lea edx, [ebp - 0x880]
push edx
push 0x1002fbf0
push esi
push ecx
call fcn.10088310
add esp, 0x20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x850], esi
jb 0x10019e9d
mov edx, dword [ebp - 0x864]
push edx
call fcn.10065453
add esp, 4
cmp edi, ebx
jne 0x10019fb0
mov ecx, dword [ebp - 0x87c]
mov eax, dword [ebp - 0x880]
sub ecx, eax
test ecx, 0xfffffff0
jne 0x10019fb6
push 0x3ff
lea edx, [ebp - 0x40f]
push ebx
push edx
mov byte [ebp - 0x410], bl
call fcn.10066620
mov eax, dword [ebp - 0x848]
add esp, 0xc
cmp dword [ebp - 0x834], esi
jae 0x10019eee
lea eax, [ebp - 0x848]
push str.value
push 0x101261ac
push eax
push str.CREATE_TABLE__s___s_varchar_primary_key___s_varchar_
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.100665ff
lea eax, [ebp - 0x410]
add esp, 0x18
lea edx, [eax + 1]
jmp 0x10019f20
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10019f20
sub eax, edx
push eax
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x82c]
call fcn.10004560
mov edx, dword [ebp - 0x86c]
lea ecx, [ebp - 0x82c]
add edx, 0x5c
call fcn.1002faf0
cmp eax, 0x65
je 0x10019fb0
lea esi, [ebp - 0x880]
call fcn.1001a060
mov esi, 0x10
cmp dword [ebp - 0x818], esi
jb 0x10019f7c
mov edx, dword [ebp - 0x82c]
push edx
call fcn.10065453
add esp, 4
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
cmp dword [ebp - 0x834], esi
jb 0x10019fa9
mov eax, dword [ebp - 0x848]
push eax
call fcn.10065453
add esp, 4
xor al, al
jmp 0x1001a03e
mov eax, dword [ebp - 0x880]
mov ecx, dword [ebp - 0x86c]
mov byte [ecx + 4], 1
cmp eax, ebx
je 0x10019fe6
mov edx, dword [ebp - 0x868]
mov ecx, dword [ebp - 0x87c]
push edx
push ecx
call fcn.1001a690
mov edx, dword [ebp - 0x880]
push edx
call fcn.10065453
add esp, 0xc
mov dword [ebp - 0x880], ebx
mov dword [ebp - 0x87c], ebx
mov dword [ebp - 0x878], ebx
cmp dword [ebp - 0x818], esi
jb 0x1001a00f
mov eax, dword [ebp - 0x82c]
push eax
call fcn.10065453
add esp, 4
mov dword [ebp - 0x818], 0xf
mov dword [ebp - 0x81c], ebx
mov byte [ebp - 0x82c], bl
cmp dword [ebp - 0x834], esi
jb 0x1001a03c
mov ecx, dword [ebp - 0x848]
push ecx
call fcn.10065453
add esp, 4
mov al, 1
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.1006656c
mov esp, ebp
pop ebp
ret