Function at 0x4cb3a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
mov eax, edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], 0
push edi
mov edi, dword [ecx]
mov dword [esp + 0x28], edi
test eax, eax
jne 0x4cb3cc
xor esi, esi
jmp 0x4cb3e0
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cb3d1
sub esi, edx
and esi, 0x3fffffff
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x12c]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4cb3f7
mov dword [ebx], 0
mov eax, dword [ecx + 0x20]
and eax, 0x10000
or eax, 0
jne 0x4cb423
test ebx, ebx
je 0x4cb417
push 0x66a450
call fcn.00478e40
add esp, 4
mov dword [ebx], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 0x66b2f4
mov esi, dword [esp + 0x10]
test ecx, ecx
push esi
cmovne eax, ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x28]
push edi
call eax
add esp, 8
mov dword [esp + 0x14], eax
mov ebx, 0x65fe74
nop dword [eax + eax]
test eax, eax
jne 0x4cb4f9
push dword [ebx]
push esi
push 0x66a424
call fcn.00478e40
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4cb72e
mov eax, dword [edi + 0x28]
push esi
push edi
call eax
push esi
mov dword [esp + 0x20], eax
call fcn.004766d0
mov esi, dword [esp + 0x1c]
add ebx, 4
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp ebx, 0x65fe78
jl 0x4cb450
test eax, eax
jne 0x4cb4f9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4cb4ed
call fcn.004f8a10
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4cb4b5
xor eax, eax
jmp 0x4cb4c1
xor eax, eax
push eax
push esi
call fcn.00476590
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [ebx], eax
test eax, eax
je 0x4cb4ed
mov ecx, dword [esp + 0x10]
push ecx
push 0x66b30c
push eax
push esi
call fcn.00478ee0
push dword [esp + 0x2c]
lea eax, [esi - 1]
push eax
mov eax, dword [edi + 0x2c]
push edi
call eax
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x20]
push ecx
push eax
mov eax, dword [edi + 0x30]
push edi
call eax
add esp, 0xc
test eax, eax
jne 0x4cb66e
cmp dword [ebp + 8], eax
jne 0x4cb73a
test esi, esi
je 0x4cb52f
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4cb520
sub esi, ecx
and esi, 0x3fffffff
call fcn.004f8a10
test eax, eax
jne 0x4cb720
lea eax, [esi + 0x1e]
push 0
push eax
call fcn.00476590
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4cb720
add esi, 0xffffffff
mov ecx, dword [str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL]
mov dword [ebx], ecx
mov ecx, dword [0x66b334]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x10]
js 0x4cb580
nop
mov al, byte [esi + ecx]
cmp al, 0x2f
je 0x4cb580
cmp al, 0x5c
je 0x4cb580
sub esi, 1
jns 0x4cb570
inc esi
push 3
push 0x66b33c
lea eax, [esi + ecx]
push eax
call fcn.00479e20
add esp, 0xc
test eax, eax
jne 0x4cb59b
add esi, 3
mov edx, dword [esp + 0x10]
add edx, esi
mov dword [esp + 0x24], 8
movsx ecx, byte [edx]
test ecx, ecx
je 0x4cb5e1
mov edi, 8
cmp ecx, 0x2e
je 0x4cb5d9
movzx eax, cl
test byte [eax + 0x660388], 2
je 0x4cb5d0
mov al, byte [ecx + 0x660e20]
mov byte [edi + ebx], al
inc edi
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
jne 0x4cb5b5
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [0x66b340]
mov esi, dword [esp + 0x14]
push ebx
mov dword [ecx + ebx], eax
mov ax, word [0x66b344]
mov word [ecx + ebx + 4], ax
mov eax, dword [edi + 0x30]
push esi
push edi
mov dword [esp + 0x2c], ebx
call eax
add esp, 0xc
mov dword [esp + 0x24], eax
test eax, eax
je 0x4cb740
cmp dword [0x67e0f8], 0
je 0x4cb714
mov eax, dword [0x684df0]
test eax, eax
je 0x4cb637
push eax
call dword [0x67e148]
add esp, 4
push ebx
call dword [0x67e124]
sub dword [0x684e30], eax
add esp, 4
dec dword [0x684e54]
push ebx
call dword [0x67e11c]
mov eax, dword [0x684df0]
add esp, 4
test eax, eax
je 0x4cb66a
push eax
call dword [0x67e150]
add esp, 4
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push 0x6609d0
push ecx
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x4cb87a
cmp eax, 0x100
je 0x4cb8f1
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4cb6af
push dword [esp + 0x1c]
push 0x66b374
call fcn.00478e40
add esp, 8
mov dword [ebx], eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4cb860
cmp dword [0x67e0f8], 0
je 0x4cb856
mov eax, dword [0x684df0]
test eax, eax
je 0x4cb6db
push eax
call dword [0x67e148]
add esp, 4
push esi
call dword [0x67e124]
sub dword [0x684e30], eax
add esp, 4
dec dword [0x684e54]
push esi
call dword [0x67e11c]
mov eax, dword [0x684df0]
add esp, 4
test eax, eax
je 0x4cb860
push eax
call dword [0x67e150]
jmp 0x4cb85d
push ebx
call dword [0x67e11c]
jmp 0x4cb667
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x34]
push ecx
push edi
call eax
add esp, 8
mov eax, 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
xor ebx, ebx
cmp dword [ebp + 0xc], 0
je 0x4cb7d7
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4cb756
xor ecx, ecx
jmp 0x4cb76f
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cb760
sub ecx, edx
and ecx, 0x3fffffff
add dword [esp + 0x18], ecx
mov eax, 0
adc eax, eax
mov dword [esp + 0x28], eax
call fcn.004f8a10
test eax, eax
je 0x4cb78b
xor eax, eax
jmp 0x4cb79c
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x1c]
call fcn.00476590
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
test eax, eax
je 0x4cb7d7
push dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push ecx
push 0x66b348
push eax
push dword [esp + 0x28]
call fcn.00478ee0
mov eax, dword [esp + 0x2c]
add esp, 0x14
dec eax
push dword [esp + 0x1c]
push eax
mov eax, dword [edi + 0x2c]
push edi
call eax
add esp, 0xc
mov eax, dword [edi + 0x34]
push esi
push edi
call eax
add esp, 8
test ebx, ebx
je 0x4cb84a
cmp dword [0x67e0f8], 0
je 0x4cb840
mov eax, dword [0x684df0]
test eax, eax
je 0x4cb801
push eax
call dword [0x67e148]
add esp, 4
push ebx
call dword [0x67e124]
sub dword [0x684e30], eax
add esp, 4
dec dword [0x684e54]
push ebx
call dword [0x67e11c]
mov eax, dword [0x684df0]
add esp, 4
test eax, eax
je 0x4cb84a
push eax
call dword [0x67e150]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x67e11c]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x67e11c]
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x34]
push ecx
push edi
call eax
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xc4]
mov ecx, ebx
push 0
lea edi, [eax*4 + 4]
push edi
call fcn.00476a20
mov esi, eax
add esp, 8
test esi, esi
je 0x4cb72e
push edi
push 0
push esi
call fcn.005cc450
mov eax, dword [ebx + 0xc4]
add esp, 0xc
test eax, eax
jle 0x4cb8c7
shl eax, 2
push eax
push dword [ebx + 0xc8]
push esi
call fcn.005cc9f0
add esp, 0xc
mov edx, dword [ebx + 0xc8]
test edx, edx
je 0x4cb8d8
mov ecx, ebx
call fcn.00476790
mov eax, dword [ebx + 0xc4]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0xc8], esi
mov dword [esi + eax*4], ecx
inc dword [ebx + 0xc4]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret