Function at 0x4cf5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
test dword [0x87ed4c], 0xfffff000
jne 0x4cf5d0
test dword [0x87ed4c], 0xffffffff
jne 0x4cfde0
call fcn.007663a0
jmp fcn.004cf5a0
push ebp
mov ebp, esp
and esp, 0xfffffff0
push edi
push esi
push ebx
sub esp, 0xc4
mov esi, eax
mov edi, dword [esi]
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
test ecx, ecx
je 0x4cfdcb
movzx eax, byte [edi + 0x1e]
test eax, eax
jne 0x4cfcaf
mov ebx, dword [esi + 0x1f4]
test ebx, ebx
je 0x4cfcaf
mov edx, dword [ebx + 0x44]
test edx, edx
je 0x4cfdbb
mov ecx, dword [edi + 4]
mov dword [esp + 0xb4], 0
test ecx, ecx
jle 0x4cf66d
mov eax, dword [edi + 8]
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0xb4]
mov dword [esp + 0xac], esi
mov esi, edi
shl esi, 4
cmp edx, dword [eax + esi + 0xc]
je 0x4cf658
inc edi
cmp edi, ecx
jl 0x4cf648
mov esi, dword [esp + 0xac]
mov dword [esp + 0xb4], edi
mov edi, dword [esp + 0xb0]
cmp dword [ebx + 0x2c], 0
je 0x4cf6fe
pxor xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
movd dword [esp + 0xa0], xmm0
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x50], xmm0
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
mov ecx, 1
mov word [esp + 0x40], cx
mov eax, dword [ebx + 4]
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x54], ebx
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], edx
mov byte [esp + 0x96], cl
mov edx, dword [ebx + 0x2c]
call fcn.00551a60
test eax, eax
je 0x4cf6fe
add esp, 0xc4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + 0x7c]
test eax, eax
je 0x4cf710
mov eax, dword [edi + 0x78]
mov dword [ebx + 0x18], eax
movzx eax, byte [edi + 0x7c]
test eax, eax
jne 0x4cfc3f
mov eax, esi
call fcn.004395a0
mov dword [esp + 0xa8], eax
cmp dword [esp + 0xa8], 0
je 0x4cfcaf
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 0x10]
mov dword [esp + 0x20], edx
jl 0x4cf753
call fcn.0045ce30
test eax, eax
jne 0x4cf78a
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ebx
inc edx
mov ebx, dword [eax + 0x14]
mov dword [eax + 0xc], edx
lea ecx, [ecx + ecx*4]
xor edx, edx
mov byte [ebx + ecx*4], 0x2a
mov byte [ebx + ecx*4 + 3], dl
mov dword [ebx + ecx*4 + 4], edx
mov dword [ebx + ecx*4 + 8], edx
mov dword [ebx + ecx*4 + 0xc], edx
mov dword [ebx + ecx*4 + 0x10], edx
mov byte [ebx + ecx*4 + 1], dl
mov ebx, dword [esp + 0x3c]
mov byte [eax + 0x62], dl
cmp dword [ebx + 0x1c], 0
je 0x4cf7a2
mov dword [esp + 0xa4], str.view
mov edx, str.VIEW
jmp 0x4cf7b2
mov dword [esp + 0xa4], 0x790868
mov edx, 0x790870
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x4cf7e5
mov eax, dword [esi + 0x1e0]
mov ecx, dword [esp + 0xb8]
push eax
mov ecx, dword [ecx]
sub ecx, eax
inc ecx
push ecx
push edx
push str.CREATE__s__.s
push edi
call fcn.00455e50
add esp, 0x14
mov dword [esp + 0x24], eax
jmp 0x4cfb5b
mov eax, dword [esi + 0x19c]
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0xc]
cmp eax, dword [edx + 0x10]
mov dword [esp + 0x24], eax
jl 0x4cf817
mov eax, edx
call fcn.0045ce30
test eax, eax
jne 0x4cf872
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xb0], edi
mov edi, dword [esp + 0x24]
inc eax
lea edx, [edi + edi*4]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xa8]
mov ecx, dword [ebx + 0x14]
mov dword [ebx + 0xc], eax
xor eax, eax
mov byte [ecx + edx*4], 0x27
mov byte [ecx + edx*4 + 3], al
mov dword [ecx + edx*4 + 4], 1
mov dword [ecx + edx*4 + 8], edi
mov edi, dword [esp + 0xb4]
mov dword [ecx + edx*4 + 0xc], edi
mov edi, dword [esp + 0xb0]
mov dword [ecx + edx*4 + 0x10], eax
mov byte [ecx + edx*4 + 1], al
mov byte [ebx + 0x62], al
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4cf892
mov edx, dword [esp + 0xa8]
mov ecx, dword [edx + 0xc]
lea edx, [ecx + ecx*4]
mov byte [eax + edx*4 - 0x11], 1
mov dword [esi + 0x44], 2
lea eax, [esp + 0x2c]
mov edx, 8
mov ecx, 1
call fcn.0058d110
mov edx, dword [ebp + 0x14]
mov eax, esi
lea ecx, [esp + 0x2c]
call fcn.005671b0
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0xc]
cmp edx, dword [eax + 0x10]
mov dword [esp + 0x20], edx
jl 0x4cf8e0
call fcn.0045ce30
test eax, eax
jne 0x4cf91b
mov eax, dword [esp + 0xa8]
mov edx, dword [eax + 0xc]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ebx
inc edx
mov ebx, dword [eax + 0x14]
mov dword [eax + 0xc], edx
lea ecx, [ecx + ecx*4]
xor edx, edx
mov byte [ebx + ecx*4], 0x2a
mov byte [ebx + ecx*4 + 3], dl
mov dword [ebx + ecx*4 + 4], 1
mov dword [ebx + ecx*4 + 8], edx
mov dword [ebx + ecx*4 + 0xc], edx
mov dword [ebx + ecx*4 + 0x10], edx
mov byte [ebx + ecx*4 + 1], dl
mov ebx, dword [esp + 0x3c]
mov byte [eax + 0x62], dl
cmp dword [esi + 0x40], 0
jne 0x4cfb4e
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.00454940
mov dword [esp + 0x28], eax
cmp dword [esp + 0x28], 0
je 0x4cfcaf
mov edx, dword [eax + 0xc]
mov dword [ebx + 0xc], edx
xor edx, edx
mov ecx, dword [eax + 0x10]
mov dword [ebx + 0x10], ecx
mov ecx, dword [eax]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
movzx edx, word [eax + 0x20]
dec edx
mov dword [esp + 0x24], ecx
mov word [eax + 0x20], dx
movzx eax, dx
test eax, eax
jg 0x4cfb4e
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4cf9f4
mov dword [esp + 0x3c], ebx
mov ebx, eax
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov esi, dword [ebx + 0x20]
mov edx, dword [ebx]
mov ecx, edx
test edx, edx
je 0x4cfd17
movsx edi, byte [edx]
test edi, edi
je 0x4cf9a9
inc ecx
movsx edi, byte [ecx]
test edi, edi
jne 0x4cf9a1
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [ebx + 0x24]
add eax, 0x14
mov dword [esp + 0xc], 0
call fcn.004fbe50
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x1c]
mov edi, dword [ecx]
mov eax, edi
call fcn.004e33d8
mov eax, edi
mov edx, ebx
call fcn.004e33d8
mov ebx, esi
test esi, esi
jne 0x4cf98b
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
mov eax, dword [esp + 0x28]
call fcn.004fb6c0
mov eax, dword [esp + 0x28]
call fcn.004f3c60
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 4]
call fcn.004e33d8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x28]
call fcn.004e33d8
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x20], edx
test edx, edx
je 0x4cfa4b
mov eax, dword [esp + 0x24]
call fcn.004ce330
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
call fcn.004e33d8
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x4cfa5f
mov eax, dword [esp + 0x24]
call fcn.0044db10
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x34]
mov dword [edx + 0x34], 0
test eax, eax
je 0x4cfab9
mov dword [esp + 0xb0], edi
mov edi, edx
mov dword [esp + 0xac], esi
mov ecx, dword [eax]
mov esi, dword [eax + 0x10]
test ecx, ecx
je 0x4cfa9b
mov edx, dword [ecx + 0x128]
mov dword [eax + 0x10], edx
mov dword [ecx + 0x128], eax
jmp 0x4cfaa5
mov dword [edi + 0x34], eax
mov dword [eax + 0x10], 0
mov eax, esi
test esi, esi
jne 0x4cfa81
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4cfcd7
mov ecx, eax
mov eax, dword [ecx + 0x38]
mov ecx, dword [ecx]
test eax, eax
jle 0x4cfcd0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0xb0], edi
mov edi, eax
mov eax, ecx
mov dword [esp + 0xac], esi
mov esi, dword [esp + 0x20]
mov ecx, dword [edx + esi*4]
test eax, eax
je 0x4cfd08
test ecx, ecx
je 0x4cfcfd
cmp ecx, dword [eax + 0xf0]
jb 0x4cfce9
cmp ecx, dword [eax + 0xf4]
jae 0x4cfce9
mov edx, dword [eax + 0xec]
mov dword [ecx], edx
dec dword [eax + 0xe4]
mov dword [eax + 0xec], ecx
mov eax, dword [ebx]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
inc esi
cmp esi, edi
jl 0x4cfafd
jmp 0x4cfcbc
mov eax, edi
mov edx, ebx
call fcn.004d0800
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x3c], ebx
mov ecx, str.sqlite_temp_master
cmp eax, 1
mov edx, str.sqlite_master
mov ebx, dword [ebx + 4]
cmove edx, ecx
shl eax, 4
mov ecx, dword [edi + 8]
mov dword [esp + 0x20], eax
push dword [esi + 0x198]
push dword [esp + 0x28]
push dword [esi + 0x19c]
push ebx
push ebx
push dword [esp + 0xb8]
push edx
push dword [ecx + eax]
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push esi
mov ebx, dword [esp + 0x64]
call fcn.004f4e50
add esp, 0x28
mov edx, dword [esp + 0x24]
mov eax, edi
call fcn.004e33d8
mov edx, dword [esp + 0xb4]
mov eax, esi
call fcn.004d0570
test byte [ebx + 0x22], 8
je 0x4cfbe6
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + edx + 0xc]
cmp dword [ecx + 0x44], 0
je 0x4cfd1e
push dword [ebx + 4]
push str.tbl_name_q
push edi
call fcn.00455e50
add esp, 0xc
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xb4]
xor eax, eax
mov dword [esp + 0xc], eax
mov edx, 0x62
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xa8]
call fcn.004dcdf0
mov edx, eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], 0xffffffff
call fcn.004d9420
movzx eax, byte [edi + 0x7c]
test eax, eax
je 0x4cfcaf
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4cfdb4
mov edx, ecx
movsx edx, byte [edx]
test edx, edx
je 0x4cfc62
inc ecx
movsx edx, byte [ecx]
test edx, edx
jne 0x4cfc5a
sub ecx, dword [esp + 0x20]
and ecx, 0x3fffffff
mov edx, dword [esp + 0x20]
add eax, 4
mov dword [esp + 0xc], ebx
call fcn.004fbe50
test eax, eax
je 0x4cfc91
mov byte [edi + 0x1e], 1
add esp, 0xc4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1f4], 0
inc dword [edi + 0x28]
or dword [edi + 0xc], 0x200
cmp dword [ebx + 0x1c], 0
je 0x4cfd34
add esp, 0xc4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0xac]
mov ecx, eax
mov eax, ecx
call fcn.004e33d8
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
call fcn.004e33d8
jmp 0x4cfb4e
mov eax, ecx
call fcn.004c69c4
mov eax, dword [ebx]
mov edx, dword [ebx + 0x3c]
mov edi, dword [ebx + 0x38]
jmp 0x4cfb44
inc esi
cmp esi, edi
jl 0x4cfafd
jmp 0x4cfcbc
test ecx, ecx
jne 0x4cfce9
inc esi
cmp esi, edi
jl 0x4cfafd
jmp 0x4cfcbc
xor ecx, ecx
jmp 0x4cf9b1
push dword [eax + edx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push esi
call fcn.004f4e50
add esp, 0xc
jmp 0x4cfbe6
mov esi, dword [esi + 0x1e0]
mov eax, dword [esp + 0xbc]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4cfd50
mov eax, dword [esp + 0xb8]
mov ecx, dword [eax]
movzx edi, byte [esi]
mov edx, ecx
mov eax, 0xffffffff
sub edx, esi
cmovs ecx, eax
xor edx, edx
test edi, edi
je 0x4cfda1
cmp esi, ecx
jae 0x4cfda1
movzx edi, byte [esi]
inc esi
cmp edi, 0xc0
movzx eax, byte [esi]
jl 0x4cfd9c
mov edi, eax
and edi, 0xc0
cmp edi, 0x80
jne 0x4cfd9c
inc esi
movzx eax, byte [esi]
mov edi, eax
and edi, 0xc0
cmp edi, 0x80
je 0x4cfd88
inc edx
test eax, eax
jne 0x4cfd65
add edx, 0xd
mov dword [ebx + 0x30], edx
add esp, 0xc4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor ecx, ecx
jmp 0x4cfc6c
mov dword [esp + 0xb4], 0xfff0bdc0
jmp 0x4cf66d
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4cfcaf
jmp 0x4cf5f9
push edi
push esi
push ebp
push ebx
sub esp, 0xb0
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov ebx, eax
mov ebp, dword [ebx]
test ecx, ecx
je 0x4d0550
movzx eax, byte [ebp + 0x1e]
test eax, eax
jne 0x4d0444
mov edi, dword [ebx + 0x1f4]
test edi, edi
je 0x4d0444
mov ecx, dword [edi + 0x44]
test ecx, ecx
je 0x4d0540
mov edx, dword [ebp + 4]
mov dword [esp + 0xa4], 0
test edx, edx
jle 0x4cfe6a
mov eax, dword [ebp + 8]
mov dword [esp + 0xa0], ebx
mov esi, dword [esp + 0xa4]
mov ebx, esi
shl ebx, 4
cmp ecx, dword [eax + ebx + 0xc]
je 0x4cfe5c
inc esi
cmp esi, edx
jl 0x4cfe4c
mov dword [esp + 0xa4], esi
mov ebx, dword [esp + 0xa0]
cmp dword [edi + 0x2c], 0
je 0x4cfef6
xor edx, edx
mov dword [esp + 0x58], edx
mov eax, 0x20
mov dword [esp + eax + 0x34], edx
mov dword [esp + eax + 0x30], edx
mov dword [esp + eax + 0x2c], edx
mov dword [esp + eax + 0x28], edx
sub eax, 0x10
jne 0x4cfe7f
mov eax, 0x40
mov dword [esp + eax + 0x58], edx
mov dword [esp + eax + 0x54], edx
mov dword [esp + eax + 0x50], edx
mov dword [esp + eax + 0x4c], edx
sub eax, 0x10
jne 0x4cfe99
mov ecx, 1
mov word [esp + 0x5c], cx
mov esi, dword [edi + 4]
mov dword [esp + 0x68], esi
mov dword [esp + 0x70], edi
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x5c]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x4e], cl
lea eax, [esp + 0x38]
mov edx, dword [edi + 0x2c]
call fcn.00551a60
test eax, eax
je 0x4cfef6
add esp, 0xb0
pop ebx
pop ebp
pop esi
pop edi
ret
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4cff08
mov eax, dword [ebp + 0x78]
mov dword [edi + 0x18], eax
movzx eax, byte [ebp + 0x7c]
test eax, eax
jne 0x4d03e4
mov eax, ebx
call fcn.004395a0
mov dword [esp + 0x9c], eax
cmp dword [esp + 0x9c], 0
je 0x4d0444
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x10]
jl 0x4cff4b
call fcn.0045ce30
test eax, eax
jne 0x4cff7c
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0xc]
inc ecx
mov edx, eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov esi, dword [edx + 0x14]
mov byte [esi + ecx*4], 0x2a
xor eax, eax
mov byte [esi + ecx*4 + 3], al
mov dword [esi + ecx*4 + 4], eax
mov dword [esi + ecx*4 + 8], eax
mov dword [esi + ecx*4 + 0xc], eax
mov dword [esi + ecx*4 + 0x10], eax
mov byte [esi + ecx*4 + 1], al
mov byte [edx + 0x62], al
cmp dword [edi + 0x1c], 0
je 0x4cff91
mov dword [esp + 0x34], str.view
mov eax, str.VIEW
jmp 0x4cff9e
mov dword [esp + 0x34], 0x790868
mov eax, 0x790870
mov edx, dword [esp + 0xd0]
test edx, edx
jne 0x4cffd5
mov ecx, dword [ebx + 0x1e0]
mov edx, dword [esp + 0xa8]
mov esi, dword [edx]
sub esi, ecx
inc esi
push ecx
push esi
push eax
push str.CREATE__s__.s
push ebp
call fcn.00455e50
add esp, 0x14
mov dword [esp + 0x14], eax
jmp 0x4d030b
mov eax, dword [ebx + 0x19c]
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 0xc]
mov dword [esp + 0x18], eax
cmp eax, dword [edx + 0x10]
jl 0x4d0007
mov eax, edx
call fcn.0045ce30
test eax, eax
jne 0x4d0054
mov eax, dword [esp + 0x9c]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], edi
inc eax
mov esi, dword [esp + 0x9c]
mov dword [esi + 0xc], eax
mov edi, dword [esp + 0x18]
lea edx, [edi + edi*4]
mov ecx, dword [esi + 0x14]
mov byte [ecx + edx*4], 0x27
xor eax, eax
mov byte [ecx + edx*4 + 3], al
mov dword [ecx + edx*4 + 4], 1
mov edi, dword [esp + 0x14]
mov dword [ecx + edx*4 + 8], edi
mov edi, dword [esp + 0xa4]
mov dword [ecx + edx*4 + 0xc], edi
mov dword [ecx + edx*4 + 0x10], eax
mov byte [ecx + edx*4 + 1], al
mov byte [esi + 0x62], al
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x4d006d
mov edx, dword [eax + 0xc]
lea esi, [edx + edx*4]
mov byte [ecx + esi*4 - 0x11], 1
mov dword [ebx + 0x44], 2
lea eax, [esp + 0x20]
mov edx, 8
mov ecx, 1
call fcn.0058d110
mov eax, ebx
mov edx, dword [esp + 0xd0]
lea ecx, [esp + 0x20]
call fcn.005671b0
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
cmp ecx, dword [eax + 0x10]
jl 0x4d00bf
call fcn.0045ce30
test eax, eax
jne 0x4d00f4
mov eax, dword [esp + 0x9c]
mov ecx, dword [eax + 0xc]
inc ecx
mov edx, eax
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0x14]
lea ecx, [ecx + ecx*4]
mov esi, dword [edx + 0x14]
mov byte [esi + ecx*4], 0x2a
xor eax, eax
mov byte [esi + ecx*4 + 3], al
mov dword [esi + ecx*4 + 4], 1
mov dword [esi + ecx*4 + 8], eax
mov dword [esi + ecx*4 + 0xc], eax
mov dword [esi + ecx*4 + 0x10], eax
mov byte [esi + ecx*4 + 1], al
mov byte [edx + 0x62], al
cmp dword [ebx + 0x40], 0
jne 0x4d02fe
mov eax, ebx
mov edx, dword [esp + 0xd0]
call fcn.00454940
mov dword [esp + 0x1c], eax
cmp dword [esp + 0x1c], 0
je 0x4d0444
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov ecx, dword [eax + 0x10]
mov dword [edi + 0x10], ecx
xor esi, esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov edx, dword [eax]
mov dword [esp + 0x18], edx
movzx ecx, word [eax + 0x20]
dec ecx
mov word [eax + 0x20], cx
movzx eax, cx
test eax, eax
jg 0x4d02fe
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x14]
test esi, esi
je 0x4d01cb
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xa0], ebx
xor ebp, ebp
mov ebx, dword [esi + 0x20]
mov edx, dword [esi]
mov ecx, edx
test edx, edx
je 0x4d049f
movsx eax, byte [edx]
test eax, eax
je 0x4d0183
inc ecx
movsx eax, byte [ecx]
test eax, eax
jne 0x4d017b
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esi + 0x24]
add eax, 0x14
mov dword [esp + 0xc], 0
call fcn.004fbe50
mov ecx, dword [esi + 0x10]
mov edi, dword [ecx]
mov eax, edi
mov edx, dword [esi + 0x1c]
call fcn.004e33d8
mov eax, edi
mov edx, esi
call fcn.004e33d8
mov esi, ebx
test ebx, ebx
jne 0x4d0165
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0x1c]
call fcn.004fb6c0
mov eax, dword [esp + 0x1c]
call fcn.004f3c60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
call fcn.004e33d8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x28]
call fcn.004e33d8
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x1c]
test esi, esi
je 0x4d021e
mov eax, dword [esp + 0x18]
mov edx, esi
call fcn.004ce330
mov eax, dword [esp + 0x18]
mov edx, esi
call fcn.004e33d8
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x4d0232
mov eax, dword [esp + 0x18]
call fcn.0044db10
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x34]
mov dword [edx + 0x34], 0
test eax, eax
je 0x4d027e
mov dword [esp + 0xa0], ebx
mov esi, edx
mov ecx, dword [eax]
mov ebx, dword [eax + 0x10]
test ecx, ecx
je 0x4d0267
mov edx, dword [ecx + 0x128]
mov dword [eax + 0x10], edx
mov dword [ecx + 0x128], eax
jmp 0x4d0271
mov dword [esi + 0x34], eax
mov dword [eax + 0x10], 0
mov eax, ebx
test ebx, ebx
jne 0x4d024d
mov ebx, dword [esp + 0xa0]
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 0x3c]
test edx, edx
je 0x4d045f
mov ecx, dword [eax + 0x38]
mov eax, dword [eax]
test ecx, ecx
jle 0x4d045a
xor esi, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0xa0], ebx
mov ebp, ecx
mov ebx, dword [esp + 0x1c]
mov ecx, dword [edx + esi*4]
test eax, eax
je 0x4d0490
test ecx, ecx
je 0x4d0485
cmp ecx, dword [eax + 0xf0]
jb 0x4d0471
cmp ecx, dword [eax + 0xf4]
jae 0x4d0471
mov edx, dword [eax + 0xec]
mov dword [ecx], edx
mov dword [eax + 0xec], ecx
dec dword [eax + 0xe4]
mov eax, dword [ebx]
mov edx, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x38]
inc esi
cmp esi, ebp
jl 0x4d02ad
jmp 0x4d044f
mov eax, ebp
mov edx, edi
call fcn.004d0800
mov dword [esp + 0x14], eax
cmp dword [esp + 0xa4], 1
je 0x4d031c
mov edx, str.sqlite_master
jmp 0x4d0321
mov edx, str.sqlite_temp_master
mov eax, dword [edi + 4]
mov esi, dword [esp + 0xa4]
shl esi, 4
mov ecx, dword [ebp + 8]
push dword [ebx + 0x198]
push dword [esp + 0x18]
push dword [ebx + 0x19c]
push eax
push eax
push dword [esp + 0x48]
push edx
push dword [ecx + esi]
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ebx
call fcn.004f4e50
add esp, 0x28
mov eax, ebp
mov edx, dword [esp + 0x14]
call fcn.004e33d8
mov eax, ebx
mov edx, dword [esp + 0xa4]
call fcn.004d0570
test byte [edi + 0x22], 8
je 0x4d038b
mov ecx, dword [ebp + 8]
mov eax, esi
mov edx, dword [ecx + eax + 0xc]
cmp dword [edx + 0x44], 0
je 0x4d04a6
push dword [edi + 4]
push str.tbl_name_q
push ebp
call fcn.00455e50
add esp, 0xc
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x9c]
mov edx, 0x62
mov ecx, dword [esp + 0xa4]
call fcn.004dcdf0
mov edx, eax
mov dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x14]
call fcn.004d9420
movzx eax, byte [ebp + 0x7c]
test eax, eax
je 0x4d0444
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 4]
mov ecx, edx
test edx, edx
je 0x4d0539
movsx esi, byte [edx]
test esi, esi
je 0x4d0403
inc ecx
movsx esi, byte [ecx]
test esi, esi
jne 0x4d03fb
sub ecx, edx
and ecx, 0x3fffffff
add eax, 4
mov dword [esp + 0xc], edi
call fcn.004fbe50
test eax, eax
je 0x4d042a
mov byte [ebp + 0x1e], 1
add esp, 0xb0
pop ebx
pop ebp
pop esi
pop edi
ret
mov dword [ebx + 0x1f4], 0
inc dword [ebp + 0x28]
or dword [ebp + 0xc], 0x200
cmp dword [edi + 0x1c], 0
je 0x4d04bc
add esp, 0xb0
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0xa0]
call fcn.004e33d8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
call fcn.004e33d8
jmp 0x4d02fe
mov eax, ecx
call fcn.004c69c4
mov eax, dword [ebx]
mov edx, dword [ebx + 0x3c]
mov ebp, dword [ebx + 0x38]
jmp 0x4d02f4
inc esi
cmp esi, ebp
jl 0x4d02ad
jmp 0x4d044f
test ecx, ecx
jne 0x4d0471
inc esi
cmp esi, ebp
jl 0x4d02ad
jmp 0x4d044f
mov ecx, ebp
jmp 0x4d018b
push dword [ecx + eax]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebx
call fcn.004f4e50
add esp, 0xc
jmp 0x4d038b
mov ebx, dword [ebx + 0x1e0]
mov eax, dword [esp + 0xac]
mov ecx, dword [eax]
test ecx, ecx
jne 0x4d04d8
mov eax, dword [esp + 0xa8]
mov ecx, dword [eax]
mov edx, ecx
sub edx, ebx
jns 0x4d04e3
mov ecx, 0xffffffff
xor edx, edx
movzx eax, byte [ebx]
test eax, eax
je 0x4d0528
cmp ebx, ecx
jae 0x4d0528
movzx ebp, byte [ebx]
inc ebx
movzx eax, byte [ebx]
cmp ebp, 0xc0
jl 0x4d0523
mov ebp, eax
and ebp, 0xc0
cmp ebp, 0x80
jne 0x4d0523
inc ebx
movzx eax, byte [ebx]
mov ebp, eax
and ebp, 0xc0
cmp ebp, 0x80
je 0x4d050f
inc edx
test eax, eax
jne 0x4d04ec
add edx, 0xd
mov dword [edi + 0x30], edx
add esp, 0xb0
pop ebx
pop ebp
pop esi
pop edi
ret
xor ecx, ecx
jmp 0x4d040b
mov dword [esp + 0xa4], 0xfff0bdc0
jmp 0x4cfe6a
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4d0444
jmp 0x4cfe04