Function at 0x419f20
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x505bec
mov eax, dword fs:[0]
push eax
mov eax, 0x205c
call fcn.004dd480
mov eax, dword [0x52d324]
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 0x419f71
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x419f68
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.00402850
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x419f86
xor edx, edx
call fcn.0048e300
mov dword [edi + 0x54], 0
cmp dword [esi + 0x14], 0x10
jb 0x419f8e
mov esi, dword [esi]
push 0
push 6
lea edx, [edi + 0x54]
mov ecx, esi
call fcn.004903e0
add esp, 8
lea eax, [edi + 0x38]
lea ecx, [ebp - 0x2040]
push eax
call fcn.00407a70
push 0x1000
lea eax, [ebp - 0x1010]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x2040]
cmp dword [ebp - 0x202c], 0x10
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.00409560
lea ecx, [ebp - 0x1010]
mov dword [ebp - 0x2018], 0
add esp, 0x10
mov dword [ebp - 0x2014], 0xf
mov byte [ebp - 0x2028], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a020
sub ecx, edx
lea eax, [ebp - 0x1010]
push ecx
push eax
lea ecx, [ebp - 0x2028]
call fcn.00402850
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 0x41a0a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2058]
call fcn.00402850
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.0041aed0
mov byte [ebp - 4], 2
mov esi, eax
mov edx, dword [ebp - 0x2044]
cmp edx, 0x10
jb 0x41a112
mov ecx, dword [ebp - 0x2058]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a108
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a2f2
push edx
push ecx
call fcn.004dc783
add esp, 8
test esi, esi
jne 0x41a1cd
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 0x41a1d3
push 0x1000
push eax
lea eax, [ebp - 0x2010]
push eax
call fcn.004df150
add esp, 0xc
lea eax, [ebp - 0x2040]
cmp dword [ebp - 0x202c], 0x10
cmovae eax, dword [ebp - 0x2040]
push str.value
push 0x522d98
push eax
push str.CREATE_TABLE__s___s_varchar_primary_key___s_varchar_
lea eax, [ebp - 0x2010]
push 0x1000
push eax
call fcn.00409560
lea edx, [ebp - 0x2010]
add esp, 0x18
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x41a194
sub edx, ecx
lea eax, [ebp - 0x2010]
push edx
push eax
lea ecx, [ebp - 0x2028]
call fcn.00402850
lea eax, [ebp - 0x2028]
mov ecx, ebx
push eax
call fcn.0041ad50
cmp eax, 0x65
je 0x41a1cd
mov esi, dword [ebp - 0x2068]
xor bl, bl
jmp 0x41a1d9
mov esi, dword [ebp - 0x2068]
mov byte [edi + 4], 1
mov bl, 1
test esi, esi
je 0x41a268
mov edi, dword [ebp - 0x2064]
cmp esi, edi
je 0x41a204
nop dword [eax + eax]
mov ecx, esi
call fcn.0041a9b0
add esi, 0xc
cmp esi, edi
jne 0x41a1f0
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 0x41a240
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a2f7
push ecx
push esi
call fcn.004dc783
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 0x41a29e
mov ecx, dword [ebp - 0x2028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a294
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a2fc
push edx
push ecx
call fcn.004dc783
add esp, 8
mov edx, dword [ebp - 0x202c]
cmp edx, 0x10
jb 0x41a2d4
mov ecx, dword [ebp - 0x2040]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41a2ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41a301
push edx
push ecx
call fcn.004dc783
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.004dc214
mov esp, ebp
pop ebp
ret
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
int3