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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xa8
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, ecx
mov dword [esp + 0x5c], edx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov esi, dword [edi]
mov dword [esp + 0x1c], esi
jne 0x4bcf6f
test ecx, ecx
je 0x4bdcc6
mov esi, dword [edi + 0xec]
mov dword [esp + 0x24], esi
test esi, esi
je 0x4bdcc6
test ecx, ecx
jne 0x4bcfe9
mov eax, dword [esi]
push 0x5f
push eax
mov dword [esp + 0x10], eax
call fcn.00548680
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4bcfe6
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x1c]
push 0
mov byte [eax], 0
call fcn.004b9610
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov byte [eax], 0x5f
test edx, edx
je 0x4bcfe6
cmp byte [edx + 0x2b], 1
jne 0x4bcfe6
push dword [esp + 8]
mov ecx, dword [esp + 0x20]
call fcn.004bce40
mov ecx, dword [ebp + 0x10]
add esp, 4
test eax, eax
je 0x4bcfe9
or dword [esi + 0x1c], 0x1000
jmp 0x4bcfe9
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xb1], 0
je 0x4bd01c
test ecx, ecx
jne 0x4bd0e2
cmp byte [esi + 0x2b], cl
je 0x4bd0c8
cmp dword [eax + 0xac], ecx
jne 0x4bd0e2
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp + 0xc]
test ecx, 0x10000
je 0x4bd0a1
or dword [esi + 0x1c], 0x10000
xor eax, eax
mov dword [esp + 8], 0
cmp ax, word [esi + 0x22]
jge 0x4bd0a1
mov dword [esp + 0x18], eax
mov edx, dword [esi + 4]
add edx, eax
mov ecx, dword [edx + 4]
test cl, 0xf0
je 0x4bd0f6
mov eax, ecx
and al, 0xf0
cmp al, 0x10
jne 0x4bd05f
mov byte [edx + 8], 0x41
test byte [edx + 0xe], 1
je 0x4bd084
movsx eax, word [esi + 0x20]
cmp eax, dword [esp + 8]
je 0x4bd084
test cl, 0xf
jne 0x4bd084
and ecx, 0xfffffff2
or ecx, 2
mov dword [edx + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 8]
movsx eax, word [esi + 0x22]
inc ecx
add dword [esp + 0x18], 0x10
cmp ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], ecx
jl 0x4bd042
mov ecx, dword [ebp + 0xc]
test cl, cl
jns 0x4bd173
mov eax, dword [esi + 0x1c]
test al, 8
je 0x4bd148
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push edi
call fcn.0046eb10
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x4bd01c
or dword [esi + 0x1c], eax
jmp 0x4bd01c
push 0x58ac88
push edi
call fcn.0046eb10
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test byte [edx + 0xe], 4
mov eax, dword [edx]
mov dword [esp + 0x10], eax
je 0x4bd131
mov ecx, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4bd107
sub ecx, edx
mov edx, dword [esp + 0x10]
lea eax, [edx + 1]
add eax, ecx
push eax
push edx
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push edi
call fcn.0046eb10
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push dword [esi]
push str.missing_datatype_for__s._s
push edi
call fcn.0046eb10
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x4bd162
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push edi
call fcn.0046eb10
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, edi
mov dword [esi + 0x1c], eax
call fcn.004bc930
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x28], 0xffff8000
test edx, edx
je 0x4bd1a2
mov eax, dword [esp + 0x1c]
xor ecx, ecx
mov dword [esp + 0x28], ecx
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x4bd1a2
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x4bd196
mov dword [esp + 0x28], ecx
mov eax, dword [esi + 0x10]
mov dword [esp + 8], eax
test eax, eax
je 0x4bd293
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x70], eax
mov eax, dword [edi]
movlpd qword [esp + 0x38], xmm0
movlpd qword [esp + 0x40], xmm0
mov dword [esp + 0x4c], 0
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
mov dword [esp + 0x60], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [eax + 0x10]
mov dword [esp + 0x10], 0x10004
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x60]
cmp edx, ecx
mov dword [esp + 0x34], eax
mov eax, 0x50004
mov dword [esp + 0x30], edi
cmove eax, dword [esp + 0x10]
lea ecx, [esp + 0x30]
xor edx, edx
mov dword [esp + 0x48], eax
call fcn.004a6620
test eax, eax
jne 0x4bd276
mov edx, dword [esp + 8]
lea ecx, [esp + 0x30]
call fcn.004a6700
cmp dword [edi + 0x24], 0
je 0x4bd293
mov edx, dword [esi + 0x10]
test edx, edx
je 0x4bd28c
mov ecx, dword [esp + 0x1c]
call fcn.004a94d0
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x4bd434
xor eax, eax
xor edx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], edx
cmp ax, word [esi + 0x22]
jge 0x4bd41a
xor ecx, ecx
mov dword [esp + 8], ecx
nop dword [eax]
mov eax, dword [esi + 4]
test byte [ecx + eax + 0xe], 0x60
je 0x4bd42e
movzx eax, word [ecx + eax + 0xc]
test ax, ax
jne 0x4bd2dc
xor edx, edx
jmp 0x4bd2fc
cmp byte [esi + 0x2b], 0
je 0x4bd2e6
xor edx, edx
jmp 0x4bd2fc
mov edx, dword [esi + 0x34]
test edx, edx
je 0x4bd2fc
cmp dword [edx], eax
jge 0x4bd2f5
xor edx, edx
jmp 0x4bd2fc
lea eax, [eax + eax*4]
mov edx, dword [edx + eax*4 - 0xc]
mov eax, dword [esi]
xorps xmm0, xmm0
mov dword [esp + 0x70], eax
mov eax, dword [edi]
movaps xmmword [esp + 0x30], xmm0
movaps xmmword [esp + 0x40], xmm0
movlpd qword [esp + 0x64], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
movlpd qword [esp + 0x7c], xmm0
movlpd qword [esp + 0x84], xmm0
movlpd qword [esp + 0x8c], xmm0
movlpd qword [esp + 0x98], xmm0
movlpd qword [esp + 0xa0], xmm0
movlpd qword [esp + 0xa8], xmm0
mov dword [esp + 0x60], 1
mov dword [esp + 0x78], esi
mov dword [esp + 0x94], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0x60]
cmp dword [esi + 0x3c], ecx
mov ecx, 0x10008
mov dword [esp + 0x34], eax
mov eax, 0x50008
cmove eax, ecx
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], eax
call fcn.004a6620
test eax, eax
je 0x4bd3f3
mov ecx, dword [esp + 0x1c]
push 0
push 0x34
call fcn.0046b920
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
je 0x4bd3de
push 0x34
push 0
push eax
call fcn.00548d40
mov eax, dword [esp + 0x1c]
add esp, 0xc
or ecx, 0xffffffff
mov byte [eax], 0x79
mov word [eax + 0x22], cx
mov dword [eax + 0x18], 1
push eax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0xc]
mov ecx, edi
push eax
call fcn.004b9e60
add esp, 8
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 8]
movsx eax, word [esi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x18], edx
mov dword [esp + 8], ecx
cmp edx, eax
jl 0x4bd2c0
cmp dword [esp + 0xc], 0
jne 0x4bd434
push str.must_have_at_least_one_non_generated_column
push edi
call fcn.0046eb10
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
inc dword [esp + 0xc]
jmp 0x4bd3fb
movsx edi, word [esi + 0x22]
xor eax, eax
mov ecx, dword [esi + 4]
xor edx, edx
mov dword [esp + 0xc], edi
cmp edi, 2
mov edi, dword [esp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 0x18], edx
jl 0x4bd491
movsx edx, word [esi + 0x22]
movsx edi, word [esi + 0x22]
lea edx, [edx - 2]
shr edx, 1
inc edx
mov eax, edx
neg eax
lea edi, [edi + eax*2]
mov dword [esp + 0xc], edi
mov edi, dword [esp + 0x14]
movzx eax, byte [ecx + 9]
add dword [esp + 8], eax
movzx eax, byte [ecx + 0x19]
add ecx, 0x20
add dword [esp + 0x18], eax
sub edx, 1
jne 0x4bd471
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
cmp dword [esp + 0xc], 0
jle 0x4bd49e
movzx ecx, byte [ecx + 9]
jmp 0x4bd4a0
xor ecx, ecx
add eax, edx
add eax, ecx
cmp word [esi + 0x20], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.0046ffd0
mov word [esi + 0x28], ax
add esp, 8
mov eax, dword [esi + 8]
test eax, eax
je 0x4bd4e2
mov edi, eax
nop word [eax + eax]
mov ecx, edi
call fcn.004bc7a0
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4bd4d0
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0xb1], 0
jne 0x4bdc2c
mov edi, dword [edi + 8]
test edi, edi
je 0x4bd500
mov dword [esp + 0xc], edi
jmp 0x4bd529
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x74], 0
jne 0x4bd516
mov eax, dword [ecx]
test byte [eax + 0x50], 8
jne 0x4bd516
mov byte [ecx + 0x17], 1
call fcn.0048fb60
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
je 0x4bdcc6
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bd548
push 0
push 0
push 0
mov edx, 0x79
mov ecx, edi
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd57b
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x70]
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [esi + 0x2b]
mov edx, str.TABLE
test al, al
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [esp + 0x20], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x2c], ecx
je 0x4bdab4
mov edx, dword [esp + 0x14]
cmp byte [edx + 0xd0], 0
je 0x4bd5c9
inc dword [edx + 0x24]
mov dword [edx + 0xc], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edx + 0x2c]
mov ecx, edx
inc eax
mov dword [esp + 8], eax
inc eax
mov dword [esp + 0x18], eax
inc eax
mov dword [edx + 0x2c], eax
mov eax, dword [edx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edi + 0x74]
mov eax, dword [edx + 0x5c]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x78], ecx
jg 0x4bd61b
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
push eax
push 1
mov edx, 0x70
call fcn.0048fdb0
mov eax, dword [esp + 0x18]
add esp, 0xc
add eax, 0x70
mov dword [esp + 0xc], eax
jmp 0x4bd657
mov edx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
lea eax, [edi + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0x70
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
lea eax, [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0x14]
test ecx, ecx
jle 0x4bd675
mov eax, dword [eax]
lea ecx, [ecx + ecx*4]
mov esi, 0x10
mov word [eax + ecx*4 - 0x12], si
mov esi, dword [esp + 0x24]
mov dword [edx + 0x28], 2
mov eax, dword [edi + 0x74]
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
mov dword [esp + 0x10], ecx
cmp dword [edi + 0x78], eax
jg 0x4bd6a7
push ecx
push 0
push dword [esp + 0x10]
mov edx, 0xd
mov ecx, edi
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd6da
mov edx, dword [esp + 8]
mov dword [edi + 0x74], ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov edx, dword [esp + 0x14]
cmp dword [edx + 0x24], 0
jne 0x4bdcc6
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push 0x41
call fcn.004df9c0
mov edx, eax
add esp, 4
test edx, edx
je 0x4bdcc6
movzx ecx, word [edx + 0x22]
xor eax, eax
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [edx + 4]
mov dword [esi + 4], ecx
mov word [edx + 0x22], ax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x210], 0
jne 0x4bd731
add dword [edx + 0x18], 0xffffffff
jne 0x4bd738
mov ecx, eax
call fcn.004ba0f0
mov eax, dword [esp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x34], 0xd
mov dword [esp + 0x3c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.004e6980
mov eax, dword [esp + 0x18]
add esp, 4
cmp dword [eax + 0x24], 0
jne 0x4bdcc6
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bd7a8
push 0
push 0
push dword [esp + 0x10]
mov edx, 0x44
mov ecx, edi
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd7de
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 8]
mov dword [eax + ecx*4], 0x44
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [edi + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [edi]
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x10], ecx
cmp byte [eax + 0x57], 0
je 0x4bd809
mov eax, 0x5c4868
jmp 0x4bd821
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x20]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0x74]
mov eax, dword [esp + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 8], edx
cmp dword [edi + 0x78], edx
jg 0x4bd852
push 0
push 0
push eax
mov edx, 0xe
mov ecx, edi
call fcn.0048fdb0
add esp, 0xc
mov dword [esp + 8], eax
jmp 0x4bd888
lea ecx, [edx + edx*4]
lea eax, [edx + 1]
mov edx, dword [esp + 0xc]
mov dword [edi + 0x74], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xe
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], ecx
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x20], eax
cmp dword [edi + 0x78], ecx
jg 0x4bd8bf
push dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, edi
push eax
push edx
mov edx, 0x60
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd8f1
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x10]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x60
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0
mov edx, esi
mov ecx, edi
call fcn.004cd150
mov ecx, dword [edi + 0x74]
add esp, 4
cmp dword [edi + 0x78], ecx
jg 0x4bd922
mov eax, dword [esp + 0x18]
mov edx, 0x7e
push 0
inc eax
mov ecx, edi
push eax
push 1
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd95d
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov esi, dword [esp + 0x24]
lea ecx, [ecx + ecx*4]
mov dword [edi + 0x74], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
inc edx
mov dword [eax + ecx*4], 0x7e
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0xc]
cmp dword [edi + 0x78], ecx
jg 0x4bd985
mov ecx, dword [esp + 0x18]
mov edx, 0x7f
lea eax, [ecx + 1]
push eax
push ecx
push 1
mov ecx, edi
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bd9b8
mov esi, dword [esp + 0x24]
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
inc edx
mov dword [eax + ecx*4], 0x7f
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x74]
mov edx, dword [esp + 0xc]
cmp dword [edi + 0x78], ecx
jg 0x4bd9e1
push 0
push dword [esp + 0xc]
mov edx, 0xb
mov ecx, edi
push 0
call fcn.0048fdb0
mov edx, dword [esp + 0x14]
add esp, 0xc
jmp 0x4bda13
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 8]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi]
mov ecx, dword [edi + 0x74]
mov dword [esp + 0x20], ecx
cmp byte [eax + 0x57], 0
je 0x4bda2d
mov edx, dword [esp + 0xc]
mov eax, 0x5c4868
jmp 0x4bda45
lea eax, [ecx - 1]
test edx, edx
cmovns eax, edx
mov edx, dword [esp + 0xc]
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x74]
cmp dword [edi + 0x78], ecx
jg 0x4bda75
push 0
push 0
push 1
mov edx, 0x79
mov ecx, edi
call fcn.0048fdb0
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov edx, esi
call fcn.004bc420
jmp 0x4bdafb
lea eax, [ecx + 1]
mov dword [edi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, esi
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x1c]
call fcn.004bc420
jmp 0x4bdafb
cmp dword [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
lea edx, [eax + 0xc4]
jne 0x4bdac7
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0xbc]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp byte [eax], 0x3b
je 0x4bdae1
add ecx, dword [edx + 4]
push dword [esp + 0x10]
push ecx
push dword [esp + 0x28]
push str.CREATE__s__.s
push dword [esp + 0x2c]
call fcn.0046de90
add esp, 0x14
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esi]
push dword [ecx + 0x58]
shl edx, 4
push dword [esp + 0x28]
mov dword [esp + 0x18], edx
push dword [ecx + 0x5c]
push eax
push eax
mov eax, dword [esp + 0x30]
push dword [esp + 0x40]
mov eax, dword [eax + 0x10]
push dword [edx + eax]
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ecx
call fcn.004b94e0
mov eax, dword [esp + 0x48]
add esp, 0x24
test eax, eax
je 0x4bdb4b
mov ecx, dword [esp + 0x1c]
mov edx, eax
call fcn.0046b530
mov edx, dword [esp + 0x14]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ecx + 0x74]
mov eax, dword [eax]
inc eax
mov dword [esp + 0x24], eax
cmp dword [ecx + 0x78], edx
jg 0x4bdb88
push eax
push 1
push dword [esp + 0x30]
mov edx, 0x63
call fcn.0048fdb0
add esp, 0xc
jmp 0x4bdbbf
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test byte [esi + 0x1c], 8
mov edx, dword [esp + 0x14]
je 0x4bdbf6
cmp byte [edx + 0xd0], 0
jne 0x4bdbf6
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x4bdbf6
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push edx
call fcn.004b94e0
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push dword [esp + 0x2c]
call fcn.0046de90
mov edx, dword [esp + 0x3c]
add esp, 0x10
mov ecx, edi
push eax
call fcn.004904b0
mov eax, dword [esp + 0x24]
add esp, 8
mov edi, dword [esp + 0x14]
cmp byte [eax + 0xb1], 0
je 0x4bdc9f
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.00470410
add esp, 4
test eax, eax
je 0x4bdc53
push dword [esp + 0x1c]
call fcn.0046bbf0
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
mov ecx, str.sqlite_sequence
mov dword [edi + 0xec], 0
or dword [eax + 0x18], 1
mov eax, dword [esi]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4bdc90
test dl, dl
je 0x4bdc8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4bdc90
add eax, 2
add ecx, 2
test dl, dl
jne 0x4bdc70
xor eax, eax
jmp 0x4bdc95
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4bdc9f
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
cmp dword [ebp + 0x10], 0
jne 0x4bdcc6
cmp byte [esi + 0x2b], 0
jne 0x4bdcc6
mov eax, dword [esp + 0x5c]
mov eax, dword [eax]
test eax, eax
jne 0x4bdcba
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, dword [edi + 0xbc]
add eax, 0xd
mov dword [esi + 0x2c], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret