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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x148
mov eax, dword [0x609e44]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ecx]
mov dword [esp + 0x38], edx
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], esi
push edi
test edx, edx
jne 0x4a5de4
test eax, eax
je 0x4a6af6
mov edi, dword [ecx + 0xe8]
mov dword [esp + 0x30], edi
test edi, edi
je 0x4a6af6
test eax, eax
jne 0x4a5e65
mov eax, dword [edi]
push 0x5f
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a5e5d
mov edx, dword [esp + 0x14]
mov ecx, esi
push 0
mov byte [eax], 0
call fcn.004a24e0
mov edx, eax
add esp, 4
mov eax, dword [esp + 0xc]
mov byte [eax], 0x5f
test edx, edx
je 0x4a5e5d
cmp dword [edx + 0x38], 0
je 0x4a5e5d
push dword [esp + 0x14]
mov ecx, esi
call fcn.004a5d10
mov ecx, dword [esp + 0x14]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x28]
je 0x4a5e65
or dword [edi + 0x24], 0x1000
jmp 0x4a5e65
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
cmp byte [esi + 0xa5], 0
je 0x4a5ea5
test eax, eax
je 0x4a5e94
push 0x5f8cb8
push ecx
call fcn.0045b840
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x1c], eax
cmp eax, 1
jne 0x4a5ea5
or dword [edi + 0x24], eax
cmp byte [ebp + 0xc], 0
jge 0x4a5f0b
mov eax, dword [edi + 0x24]
test al, 8
je 0x4a5ed4
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push ecx
call fcn.0045b840
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x4a5efc
push dword [edi]
push str.PRIMARY_KEY_missing_on_table__s
push ecx
call fcn.0045b840
add esp, 0xc
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, edi
mov dword [edi + 0x24], eax
call fcn.004a57c0
mov ecx, dword [edi + 0x48]
mov dword [esp + 0x2c], 0xffff8000
test ecx, ecx
je 0x4a5f3c
mov eax, dword [esi + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x2c], edx
cmp dword [eax], ecx
je 0x4a5f3c
nop word [eax + eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x4a5f30
mov dword [esp + 0x2c], edx
mov eax, dword [edi + 0x18]
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a6047
mov edx, dword [esp + 0x10]
xorps xmm0, xmm0
mov eax, dword [edi]
mov dword [esp + 0xb8], eax
movlpd qword [esp + 0x48], xmm0
mov eax, dword [edx]
movlpd qword [esp + 0x50], xmm0
mov dword [esp + 0x5c], 0
movlpd qword [esp + 0xac], xmm0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xbc], 0
movlpd qword [esp + 0xc4], xmm0
movlpd qword [esp + 0xcc], xmm0
movlpd qword [esp + 0xd4], xmm0
movlpd qword [esp + 0xe0], xmm0
movlpd qword [esp + 0xe8], xmm0
movlpd qword [esp + 0xf0], xmm0
mov dword [esp + 0xa8], 1
mov dword [esp + 0xc0], edi
mov dword [esp + 0xdc], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0xa8]
cmp dword [edi + 0x48], ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], edx
mov edx, 0x10004
mov dword [esp + 0x44], eax
mov eax, 0x50004
cmove eax, edx
xor edx, edx
mov dword [esp + 0x58], eax
call fcn.004911c0
test eax, eax
jne 0x4a6028
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.004912a0
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x24], 0
je 0x4a6047
mov edx, dword [edi + 0x18]
test edx, edx
je 0x4a6040
mov ecx, esi
call fcn.004936e0
mov dword [edi + 0x18], 0
test byte [edi + 0x24], 0x60
je 0x4a61f6
xor eax, eax
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
cmp ax, word [edi + 0x2a]
jge 0x4a61cb
xor ecx, ecx
mov dword [esp + 0x14], ecx
nop dword [eax]
mov eax, dword [edi + 4]
test byte [eax + ecx + 0x10], 0x60
je 0x4a61f0
mov eax, dword [eax + ecx + 4]
xorps xmm0, xmm0
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [edi]
mov dword [esp + 0x108], eax
mov eax, dword [edx]
movaps xmmword [esp + 0x60], xmm0
movaps xmmword [esp + 0x70], xmm0
movlpd qword [esp + 0xfc], xmm0
mov dword [esp + 0x104], 0
mov dword [esp + 0x10c], 0
movlpd qword [esp + 0x114], xmm0
movlpd qword [esp + 0x11c], xmm0
movlpd qword [esp + 0x124], xmm0
movlpd qword [esp + 0x130], xmm0
movlpd qword [esp + 0x138], xmm0
movlpd qword [esp + 0x140], xmm0
mov dword [esp + 0xf8], 1
mov dword [esp + 0x110], edi
mov dword [esp + 0x12c], 0xffffffff
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 0x1c]
lea eax, [esp + 0xf8]
cmp dword [edi + 0x48], ecx
mov ecx, 0x10008
mov dword [esp + 0x64], eax
mov eax, 0x50008
cmove eax, ecx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x60]
mov dword [esp + 0x78], eax
call fcn.004911c0
test eax, eax
je 0x4a61a4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4a615f
mov edx, eax
mov ecx, esi
call fcn.00492560
push 0
push 0x34
mov ecx, esi
call fcn.004581b0
mov ecx, eax
add esp, 8
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x4a6199
push 0x34
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x18]
add esp, 0xc
or eax, 0xffffffff
mov byte [ecx], 0x77
mov word [ecx + 0x22], ax
mov dword [ecx + 0x18], 1
mov eax, dword [edi + 4]
mov edx, dword [esp + 0x14]
mov dword [edx + eax + 4], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
movsx eax, word [edi + 0x2a]
inc edx
add ecx, 0x14
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ecx
cmp edx, eax
jl 0x4a6070
cmp dword [esp + 0x18], 0
jne 0x4a61f6
push str.must_have_at_least_one_non_generated_column
push dword [esp + 0x14]
call fcn.0045b840
add esp, 8
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
inc dword [esp + 0x18]
jmp 0x4a61ac
movsx esi, word [edi + 0x2a]
xor eax, eax
mov ecx, dword [edi + 4]
xor edx, edx
mov dword [esp + 0xc], esi
cmp esi, 2
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jl 0x4a6253
movsx edx, word [edi + 0x2a]
movsx esi, word [edi + 0x2a]
lea edx, [edx - 2]
shr edx, 1
inc edx
mov eax, edx
neg eax
lea esi, [esi + eax*2]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x20]
movzx eax, byte [ecx + 0xe]
add dword [esp + 0x14], eax
movzx eax, byte [ecx + 0x22]
add ecx, 0x28
add dword [esp + 0x1c], eax
sub edx, 1
jne 0x4a6233
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0xc], 0
jle 0x4a6260
movzx ecx, byte [ecx + 0xe]
jmp 0x4a6262
xor ecx, ecx
add eax, edx
add eax, ecx
cmp word [edi + 0x28], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.0045cda0
mov word [edi + 0x30], ax
add esp, 8
mov eax, dword [edi + 8]
test eax, eax
je 0x4a62a2
mov esi, eax
nop dword [eax]
mov ecx, esi
call fcn.004a55f0
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x4a6290
mov esi, dword [esp + 0x20]
cmp byte [esi + 0xa5], 0
jne 0x4a6a47
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 8]
test esi, esi
je 0x4a62c3
lea edx, [ecx + 0x74]
mov dword [esp + 0xc], edx
jmp 0x4a62f3
cmp dword [ecx + 0x74], 0
lea eax, [ecx + 0x74]
mov dword [esp + 0xc], eax
jne 0x4a62dc
mov eax, dword [ecx]
test byte [eax + 0x4c], 8
jne 0x4a62dc
mov byte [ecx + 0x17], 1
call fcn.0047a090
mov esi, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], eax
test esi, esi
je 0x4a6af6
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4a6319
push 0
push 0
push 0
mov edx, 0x74
mov ecx, esi
call fcn.0047a300
lea eax, [esi + 0x68]
add esp, 0xc
mov dword [esp + 0x18], eax
jmp 0x4a6352
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea edx, [esi + 0x68]
mov eax, dword [edx]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x18], edx
mov dword [eax + ecx*4], 0x74
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 eax, dword [edi + 0xc]
mov edx, str.TABLE
test eax, eax
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [esp + 0x24], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [esp + 0x28], 0
mov dword [esp + 0x34], ecx
je 0x4a688d
mov edx, dword [esp + 0x10]
mov ecx, edx
mov eax, dword [edx + 0x2c]
inc eax
mov dword [esp + 0x14], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [edx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [esi + 0x6c]
mov eax, dword [edx + 0x5c]
mov dword [esp + 0xc], eax
cmp dword [esi + 0x70], ecx
jg 0x4a63d2
mov edx, dword [esp + 0x2c]
mov ecx, esi
push edx
push eax
push 1
mov edx, 0x61
call fcn.0047a300
add esp, 0xc
jmp 0x4a6408
mov edx, dword [esp + 0xc]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x61
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 0x6c]
mov edx, dword [esp + 0x10]
test eax, eax
jle 0x4a642a
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x30]
mov dword [edx + 0x28], 2
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
lea ecx, [eax + 1]
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x70], eax
jg 0x4a645c
push ecx
push 0
push dword [esp + 0x1c]
mov edx, 0xd
mov ecx, esi
call fcn.0047a300
add esp, 0xc
jmp 0x4a648f
mov edx, dword [esp + 0x14]
mov dword [esi + 0x6c], ecx
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
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 + 0x10]
cmp dword [edx + 0x24], 0
jne 0x4a6af6
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push 0x41
call fcn.004c75e0
mov edx, eax
add esp, 4
test edx, edx
je 0x4a6af6
movzx ecx, word [edx + 0x2a]
xor eax, eax
mov word [edi + 0x2c], cx
mov word [edi + 0x2a], cx
mov ecx, dword [edx + 4]
mov dword [edi + 4], ecx
mov word [edx + 0x2a], ax
mov dword [edx + 4], eax
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x1f8], 0
jne 0x4a64e7
add dword [edx + 0x20], 0xffffffff
jne 0x4a64ee
mov ecx, eax
call fcn.004a3120
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0x90], 0xd
mov dword [esp + 0x98], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
call fcn.004cdba0
mov eax, dword [esp + 0x14]
add esp, 4
cmp dword [eax + 0x24], 0
jne 0x4a6af6
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4a6574
push 0
push 0
push dword [esp + 0x1c]
mov edx, 0x42
mov ecx, esi
call fcn.0047a300
add esp, 0xc
jmp 0x4a65aa
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x42
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 [esi + 0xc]
mov edx, dword [esp + 0x18]
mov byte [eax + 0x13], 0
mov eax, dword [esi + 0xc]
mov dword [eax + 0x1c], 0
mov eax, dword [esi]
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0xc], ecx
cmp byte [eax + 0x51], 0
je 0x4a65d5
mov eax, 0x60d7e0
jmp 0x4a65ed
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x24]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esp + 0x90]
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], ecx
cmp dword [esi + 0x70], ecx
jg 0x4a6621
push 0
push 0
push eax
mov edx, 0xe
mov ecx, esi
call fcn.0047a300
add esp, 0xc
mov dword [esp + 0x14], eax
jmp 0x4a6653
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x24]
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 + 0x98]
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 0x24], eax
cmp dword [esi + 0x70], ecx
jg 0x4a6690
push dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov ecx, esi
push eax
push edx
mov edx, 0x5b
call fcn.0047a300
add esp, 0xc
jmp 0x4a66c2
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4], 0x5b
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
push 0
mov edx, edi
mov ecx, esi
call fcn.004b58c0
mov ecx, dword [esi + 0x6c]
add esp, 4
cmp dword [esi + 0x70], ecx
jg 0x4a66f3
mov eax, dword [esp + 0x1c]
mov edx, 0x78
push 0
inc eax
mov ecx, esi
push eax
push 1
call fcn.0047a300
add esp, 0xc
jmp 0x4a672e
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x30]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x6c], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
inc edx
mov dword [eax + ecx*4], 0x78
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 [esi + 0x6c]
mov edx, dword [esp + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x4a6756
mov ecx, dword [esp + 0x1c]
mov edx, 0x79
lea eax, [ecx + 1]
push eax
push ecx
push 1
mov ecx, esi
call fcn.0047a300
add esp, 0xc
jmp 0x4a6789
mov edi, dword [esp + 0x30]
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx*4 + 8], edx
inc edx
mov dword [eax + ecx*4], 0x79
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x18]
cmp dword [esi + 0x70], ecx
jg 0x4a67ae
push 0
push dword [esp + 0x18]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.0047a300
add esp, 0xc
jmp 0x4a67e0
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, dword [esp + 0x14]
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 [esi]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x18]
mov dword [esp + 0x24], ecx
cmp byte [eax + 0x51], 0
je 0x4a67fa
mov eax, 0x60d7e0
jmp 0x4a6812
lea eax, [ecx - 1]
mov ecx, dword [esp + 0x14]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [esi + 0x6c]
cmp dword [esi + 0x70], ecx
jg 0x4a6848
push 0
push 0
push 1
mov edx, 0x74
mov ecx, esi
call fcn.0047a300
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov edx, edi
call fcn.004a52c0
mov edx, eax
mov dword [esp + 0xc], edx
jmp 0x4a68db
lea eax, [ecx + 1]
mov dword [esi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx]
mov edx, edi
mov dword [eax + ecx*4], 0x74
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 + 0x20]
call fcn.004a52c0
mov edx, eax
mov dword [esp + 0xc], edx
jmp 0x4a68db
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x10]
lea edx, [eax + 0xc0]
jne 0x4a68a1
mov edx, dword [esp + 0x38]
mov eax, dword [eax + 0xb8]
mov dword [esp + 0xc], eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [esp + 0xc]
cmp byte [eax], 0x3b
je 0x4a68bb
add ecx, dword [edx + 4]
push dword [esp + 0xc]
push ecx
push dword [esp + 0x2c]
push str.CREATE__s__.s
push dword [esp + 0x30]
call fcn.0045aa50
add esp, 0x14
mov dword [esp + 0xc], eax
mov edx, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [edi]
shl ecx, 4
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
push dword [ecx + 0x58]
push edx
push dword [ecx + 0x5c]
mov edx, dword [esp + 0x3c]
push eax
push eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x48]
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.004a22f0
mov edx, dword [esp + 0x30]
add esp, 0x24
test edx, edx
je 0x4a6972
mov ecx, dword [esp + 0x20]
cmp dword [ecx + 0x1f8], 0
je 0x4a6931
call fcn.00457e30
jmp 0x4a6972
cmp edx, dword [ecx + 0x14c]
jae 0x4a6969
cmp edx, dword [ecx + 0x144]
jb 0x4a6951
mov eax, dword [ecx + 0x140]
mov dword [edx], eax
mov dword [ecx + 0x140], edx
jmp 0x4a6972
cmp edx, dword [ecx + 0x148]
jb 0x4a6969
mov eax, dword [ecx + 0x138]
mov dword [edx], eax
mov dword [ecx + 0x138], edx
jmp 0x4a6972
push edx
call fcn.00457dc0
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov ecx, dword [edx + 8]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ecx + 0x6c]
mov eax, dword [eax]
inc eax
mov dword [esp + 0xc], eax
cmp dword [ecx + 0x70], edx
jg 0x4a69af
push eax
push 1
push dword [esp + 0x34]
mov edx, 0x5e
call fcn.0047a300
add esp, 0xc
jmp 0x4a69e6
lea eax, [edx + 1]
mov dword [ecx + 0x6c], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov eax, dword [eax + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0xc]
mov dword [eax + ecx*4], 0x5e
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test byte [edi + 0x24], 8
mov edx, dword [esp + 0x10]
je 0x4a6a14
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
add ecx, dword [esp + 0x30]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x4a6a14
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push edx
call fcn.004a22f0
add esp, 0xc
push dword [edi]
push str.tbl_name_q_AND_type_trigger
push dword [esp + 0x28]
call fcn.0045aa50
mov edx, dword [esp + 0x38]
add esp, 0xc
mov ecx, esi
push eax
call fcn.0047a9e0
mov esi, dword [esp + 0x24]
add esp, 4
cmp byte [esi + 0xa5], 0
je 0x4a6af6
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
push edi
lea ecx, [ecx + 8]
call fcn.0045d010
add esp, 4
test eax, eax
je 0x4a6abb
cmp byte [esi + 0x51], 0
jne 0x4a6af6
cmp byte [esi + 0x52], 0
jne 0x4a6af6
cmp dword [esi + 0xbc], 0
mov byte [esi + 0x51], 1
jle 0x4a6a87
mov dword [esi + 0x110], 1
inc dword [esi + 0x118]
xor eax, eax
mov word [esi + 0x11c], ax
mov eax, dword [esi + 0xf4]
test eax, eax
je 0x4a6af6
mov dword [eax + 0xc], 7
pop edi
pop esi
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0
or dword [esi + 0x18], 1
cmp dword [edi + 0xc], 0
jne 0x4a6af6
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xb8]
mov edx, dword [edx]
test edx, edx
jne 0x4a6ae9
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
sub edx, ecx
call fcn.0045b590
add eax, 0xd
mov dword [edi + 0x34], eax
mov ecx, dword [esp + 0x14c]
pop edi
pop esi
xor ecx, esp
call fcn.005a6fed
mov esp, ebp
pop ebp
ret