Function at 0x4a03f0
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 0x4a041c
xor esi, esi
jmp 0x4a0430
mov esi, eax
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a0421
sub esi, edx
and esi, 0x3fffffff
mov ebx, dword [ebp + 0xc]
lea eax, [esi + 0x12c]
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x4a0447
mov dword [ebx], 0
mov eax, dword [ecx + 0x20]
and eax, 0x10000
or eax, 0
jne 0x4a0473
test ebx, ebx
je 0x4a0467
push 0x63bc58
call fcn.0044dea0
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, 0x63cafc
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, 0x6317f4
nop dword [eax + eax]
test eax, eax
jne 0x4a0549
push dword [ebx]
push esi
push 0x63bc2c
call fcn.0044dea0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4a077e
mov eax, dword [edi + 0x28]
push esi
push edi
call eax
push esi
mov dword [esp + 0x20], eax
call fcn.0044b730
mov esi, dword [esp + 0x1c]
add ebx, 4
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp ebx, 0x6317f8
jl 0x4a04a0
test eax, eax
jne 0x4a0549
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4a053d
call fcn.004cda50
mov esi, dword [esp + 0x18]
test eax, eax
je 0x4a0505
xor eax, eax
jmp 0x4a0511
xor eax, eax
push eax
push esi
call fcn.0044b5f0
add esp, 8
mov dword [esp + 0x1c], eax
mov dword [ebx], eax
test eax, eax
je 0x4a053d
mov ecx, dword [esp + 0x10]
push ecx
push 0x63cb14
push eax
push esi
call fcn.0044df40
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 0x4a06be
cmp dword [ebp + 8], eax
jne 0x4a078a
test esi, esi
je 0x4a057f
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4a0570
sub esi, ecx
and esi, 0x3fffffff
call fcn.004cda50
test eax, eax
jne 0x4a0770
lea eax, [esi + 0x1e]
push 0
push eax
call fcn.0044b5f0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a0770
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 [0x63cb3c]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x10]
js 0x4a05d0
nop
mov al, byte [esi + ecx]
cmp al, 0x2f
je 0x4a05d0
cmp al, 0x5c
je 0x4a05d0
sub esi, 1
jns 0x4a05c0
inc esi
push 3
push 0x63cb44
lea eax, [esi + ecx]
push eax
call fcn.0044ee80
add esp, 0xc
test eax, eax
jne 0x4a05eb
add esi, 3
mov edx, dword [esp + 0x10]
add edx, esi
mov dword [esp + 0x24], 8
movsx ecx, byte [edx]
test ecx, ecx
je 0x4a0631
mov edi, 8
cmp ecx, 0x2e
je 0x4a0629
movzx eax, cl
test byte [eax + 0x631b70], 2
je 0x4a0620
mov al, byte [ecx + 0x632638]
mov byte [edi + ebx], al
inc edi
movsx ecx, byte [edx + 1]
inc edx
test ecx, ecx
jne 0x4a0605
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov eax, dword [0x63cb48]
mov esi, dword [esp + 0x14]
push ebx
mov dword [ecx + ebx], eax
mov ax, word [0x63cb4c]
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 0x4a0790
cmp dword [0x64f108], 0
je 0x4a0764
mov eax, dword [0x657208]
test eax, eax
je 0x4a0687
push eax
call dword [0x64f158]
add esp, 4
push ebx
call dword [0x64f134]
sub dword [0x657248], eax
add esp, 4
dec dword [0x65726c]
push ebx
call dword [0x64f12c]
mov eax, dword [0x657208]
add esp, 4
test eax, eax
je 0x4a06ba
push eax
call dword [0x64f160]
add esp, 4
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
lea ecx, [esp + 0x1c]
push 0x6321c8
push ecx
push ebx
call eax
add esp, 0xc
test eax, eax
je 0x4a08ca
cmp eax, 0x100
je 0x4a0941
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4a06ff
push dword [esp + 0x1c]
push 0x63cb7c
call fcn.0044dea0
add esp, 8
mov dword [ebx], eax
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a08b0
cmp dword [0x64f108], 0
je 0x4a08a6
mov eax, dword [0x657208]
test eax, eax
je 0x4a072b
push eax
call dword [0x64f158]
add esp, 4
push esi
call dword [0x64f134]
sub dword [0x657248], eax
add esp, 4
dec dword [0x65726c]
push esi
call dword [0x64f12c]
mov eax, dword [0x657208]
add esp, 4
test eax, eax
je 0x4a08b0
push eax
call dword [0x64f160]
jmp 0x4a08ad
push ebx
call dword [0x64f12c]
jmp 0x4a06b7
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 0x4a0827
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x4a07a6
xor ecx, ecx
jmp 0x4a07bf
mov ecx, eax
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a07b0
sub ecx, edx
and ecx, 0x3fffffff
add dword [esp + 0x18], ecx
mov eax, 0
adc eax, eax
mov dword [esp + 0x28], eax
call fcn.004cda50
test eax, eax
je 0x4a07db
xor eax, eax
jmp 0x4a07ec
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x1c]
call fcn.0044b5f0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], eax
mov dword [ecx], eax
test eax, eax
je 0x4a0827
push dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push ecx
push 0x63cb50
push eax
push dword [esp + 0x28]
call fcn.0044df40
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 0x4a089a
cmp dword [0x64f108], 0
je 0x4a0890
mov eax, dword [0x657208]
test eax, eax
je 0x4a0851
push eax
call dword [0x64f158]
add esp, 4
push ebx
call dword [0x64f134]
sub dword [0x657248], eax
add esp, 4
dec dword [0x65726c]
push ebx
call dword [0x64f12c]
mov eax, dword [0x657208]
add esp, 4
test eax, eax
je 0x4a089a
push eax
call dword [0x64f160]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [0x64f12c]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [0x64f12c]
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.0044ba80
mov esi, eax
add esp, 8
test esi, esi
je 0x4a077e
push edi
push 0
push esi
call fcn.0059d550
mov eax, dword [ebx + 0xc4]
add esp, 0xc
test eax, eax
jle 0x4a0917
shl eax, 2
push eax
push dword [ebx + 0xc8]
push esi
call fcn.0059daf0
add esp, 0xc
mov edx, dword [ebx + 0xc8]
test edx, edx
je 0x4a0928
mov ecx, ebx
call fcn.0044b7f0
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