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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
push ebx
push esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
jne 0x4a79cf
call fcn.004a2ebf
test eax, eax
je 0x4a79d4
jmp 0x4a8581
cmp dword [ebp + 0x14], 0
je 0x4a7aa8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a56a0
add esp, 0x10
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jge 0x4a7a04
jmp 0x4a8581
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004cc810
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp + 0x10], 0
je 0x4a7a4d
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
shr ecx, 1
and ecx, 0x7fffffff
test ecx, ecx
jne 0x4a7a4d
cmp dword [ebp - 0x2c], 0
je 0x4a7a4d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x3c]
cmp edx, dword [eax + 0x2c]
jne 0x4a7a4d
mov dword [ebp - 0x24], 1
mov eax, dword [ebp - 0x10]
push eax
push str.index
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.004cb0ea
add esp, 0x14
test eax, eax
je 0x4a7a7e
mov ecx, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.004cb13e
add esp, 8
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a4deb
add esp, 0xc
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a7aa6
jmp 0x4a8581
jmp 0x4a7ad5
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa4]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4a7abf
jmp 0x4a8581
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004a141c
add esp, 8
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
imul ecx, ecx, 0x18
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
add eax, ecx
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x2c], 0
je 0x4a7af5
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x18], 0
je 0x4a7afa
jmp 0x4a8581
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov al, byte [edx + 0x1c]
test eax, eax
je 0x4a7b22
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
push str.table__s_may_not_be_indexed
mov eax, dword [ebp + 8]
push eax
call fcn.004a1d1a
add esp, 0xc
jmp 0x4a8581
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + 0x18], 0
je 0x4a7b41
push str.views_may_not_be_indexed
mov edx, dword [ebp + 8]
push edx
call fcn.004a1d1a
add esp, 8
jmp 0x4a8581
cmp dword [ebp - 0x10], 0
je 0x4a7c20
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a551e
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a13c0
add esp, 4
test eax, eax
je 0x4a7b6f
jmp 0x4a8581
cmp dword [ebp - 0x14], 0
jne 0x4a7b7a
jmp 0x4a8581
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a5729
add esp, 8
test eax, eax
je 0x4a7b93
jmp 0x4a8581
mov ecx, dword [ebp - 0x28]
xor edx, edx
mov dl, byte [ecx + 0x44]
test edx, edx
jne 0x4a7c1e
mov eax, dword [ebp + 8]
push eax
call fcn.004a13c0
add esp, 4
test eax, eax
je 0x4a7bb4
jmp 0x4a8581
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.004a4e66
add esp, 0xc
test eax, eax
je 0x4a7bee
cmp dword [ebp + 0x2c], 0
jne 0x4a7be9
mov edx, dword [ebp - 0x14]
push edx
push str.index__s_already_exists
mov eax, dword [ebp + 8]
push eax
call fcn.004a1d1a
add esp, 0xc
jmp 0x4a8581
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.004a4d32
add esp, 0xc
test eax, eax
je 0x4a7c1e
mov eax, dword [ebp - 0x14]
push eax
push str.there_is_already_a_table_named__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a1d1a
add esp, 0xc
jmp 0x4a8581
jmp 0x4a7c90
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x7c], 1
jmp 0x4a7c44
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x7c]
add eax, 1
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x58], 0
je 0x4a7c4c
jmp 0x4a7c32
mov ecx, dword [ebp - 0x7c]
push ecx
push 0x515214
lea edx, [ebp - 0x78]
push edx
call fcn.00463360
add esp, 0xc
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x78]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
push str.sqlite_autoindex_
lea eax, [ebp - 0x14]
push eax
call fcn.004a1b9f
add esp, 0x14
cmp dword [ebp - 0x14], 0
jne 0x4a7c90
jmp 0x4a8581
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx]
mov dword [ebp - 0x80], edx
mov eax, 1
test eax, eax
je 0x4a7cb3
cmp dword [ebp - 0x24], 1
jne 0x4a7cb3
mov dword [ebp - 0xbc], 0x51522c
jmp 0x4a7cbd
mov dword [ebp - 0xbc], 0x515240
mov ecx, dword [ebp - 0x80]
push ecx
push 0
mov edx, dword [ebp - 0xbc]
push edx
push 0x12
mov eax, dword [ebp + 8]
push eax
call fcn.004ca6e4
add esp, 0x14
test eax, eax
je 0x4a7ce1
jmp 0x4a8581
mov dword [ebp - 0x30], 1
mov ecx, 1
test ecx, ecx
je 0x4a7cfe
cmp dword [ebp - 0x24], 1
jne 0x4a7cfe
mov dword [ebp - 0x30], 3
mov edx, dword [ebp - 0x80]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ca6e4
add esp, 0x14
test eax, eax
je 0x4a7d25
jmp 0x4a8581
cmp dword [ebp + 0x18], 0
jne 0x4a7d98
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 4]
sub eax, 1
imul eax, eax, 0x14
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0046be50
add esp, 4
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
and edx, 0x7fffffff
shl edx, 1
mov eax, dword [ebp - 0x18]
and eax, 1
or eax, edx
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
call fcn.004c73d9
add esp, 0xc
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x18], 0
jne 0x4a7d8c
jmp 0x4a8581
mov edx, dword [ebp + 0x18]
mov eax, dword [edx + 0xc]
mov cl, byte [ebp + 0x28]
mov byte [eax + 8], cl
mov dword [ebp - 0x30], 0
jmp 0x4a7daa
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [eax]
jge 0x4a7df2
mov edx, dword [ebp - 0x30]
imul edx, edx, 0xc
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + edx]
mov dword [ebp - 0x84], edx
cmp dword [ebp - 0x84], 0
je 0x4a7df0
mov eax, dword [ebp - 0x84]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
call fcn.0046be50
add esp, 4
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x20], edx
jmp 0x4a7da1
mov eax, dword [ebp - 0x14]
push eax
call fcn.0046be50
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
push 1
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax*4 + 0x30]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*4 + 4]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx*4]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
lea edx, [eax + ecx + 1]
push edx
call fcn.004a1a9c
add esp, 8
mov dword [ebp - 0x3c], eax
call fcn.004a2ebf
test eax, eax
je 0x4a7e46
jmp 0x4a8581
mov eax, dword [ebp - 0x3c]
add eax, 0x30
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 8]
lea edx, [eax + ecx*4]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 8]
lea ecx, [edx + eax*4]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 8]
lea eax, [ecx + edx*4 + 4]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x28]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
lea edx, [eax + ecx + 1]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
call fcn.004dae80
add esp, 8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov dword [edx + 4], ecx
mov edx, dword [ebp - 0x3c]
mov al, byte [ebp + 0x1c]
mov byte [edx + 0x18], al
xor ecx, ecx
cmp dword [ebp - 0x10], 0
sete cl
mov edx, dword [ebp - 0x3c]
mov byte [edx + 0x19], cl
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [edx + eax + 0x14]
mov dword [ecx + 0x24], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x14]
xor edx, edx
mov dl, byte [ecx + 0x78]
cmp edx, 4
jl 0x4a7f13
mov dword [ebp - 0x54], 0xffffffff
jmp 0x4a7f1a
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x34], ecx
jmp 0x4a7f3e
mov edx, dword [ebp - 0x30]
add edx, 1
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x34]
add eax, 0xc
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x30]
cmp edx, dword [ecx]
jge 0x4a80c1
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x38], 0
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov dword [ebp - 0x94], eax
jmp 0x4a7f85
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x94]
add edx, 0x14
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [eax + 4]
jge 0x4a7fb0
mov edx, dword [ebp - 0x94]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x8c]
push ecx
call fcn.004a1ecd
add esp, 8
test eax, eax
jne 0x4a7fae
jmp 0x4a7fb0
jmp 0x4a7f6d
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
cmp eax, dword [edx + 4]
jl 0x4a7fde
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
push eax
push str.table__s_has_no_column_named__s
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a1d1a
add esp, 0x10
jmp 0x4a8581
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov dword [eax + ecx*4], edx
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x4a8030
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004dae80
add esp, 8
mov ecx, dword [ebp - 0x90]
push ecx
call fcn.0046be50
add esp, 4
mov edx, dword [ebp - 0xc]
lea eax, [edx + eax + 1]
mov dword [ebp - 0xc], eax
jmp 0x4a805d
mov ecx, dword [ebp - 0x38]
imul ecx, ecx, 0x14
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
mov ecx, dword [eax + ecx + 0xc]
mov dword [ebp - 0x90], ecx
cmp dword [ebp - 0x90], 0
jne 0x4a805d
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x18]
mov ecx, dword [eax]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x28]
xor eax, eax
mov al, byte [edx + 0x44]
test eax, eax
jne 0x4a8087
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004a62cd
add esp, 0xc
test eax, eax
jne 0x4a8087
jmp 0x4a8581
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x90]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov dl, byte [ecx + 8]
and edx, dword [ebp - 0x54]
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x30]
mov al, byte [ebp - 0x88]
mov byte [ecx + edx], al
jmp 0x4a7f2c
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004a88b7
add esp, 4
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [edx + 0xa4]
jne 0x4a8279
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x98], edx
jmp 0x4a80fc
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x98], ecx
cmp dword [ebp - 0x98], 0
je 0x4a8279
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [edx + 4]
cmp ecx, dword [eax + 4]
je 0x4a811c
jmp 0x4a80ed
mov dword [ebp - 0x9c], 0
jmp 0x4a8137
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [eax + 4]
jge 0x4a81f8
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0x2c]
mov ecx, dword [ebp - 0x9c]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x9c]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0x9c]
mov edx, dword [edx + eax*4]
cmp edx, dword [ecx + esi*4]
je 0x4a819e
jmp 0x4a81f8
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x9c]
xor eax, eax
mov al, byte [ecx + edx]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x28]
mov ecx, dword [ebp - 0x9c]
xor ebx, ebx
mov bl, byte [edx + ecx]
cmp eax, ebx
je 0x4a81c9
jmp 0x4a81f8
mov edx, dword [ebp - 0xa0]
cmp edx, dword [ebp - 0xa4]
je 0x4a81f3
mov eax, dword [ebp - 0xa4]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call fcn.004a1ecd
add esp, 8
test eax, eax
je 0x4a81f3
jmp 0x4a81f8
jmp 0x4a8128
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
cmp eax, dword [edx + 4]
jne 0x4a8274
mov ecx, dword [ebp - 0x98]
xor edx, edx
mov dl, byte [ecx + 0x18]
mov eax, dword [ebp - 0x3c]
xor ecx, ecx
mov cl, byte [eax + 0x18]
cmp edx, ecx
je 0x4a826f
mov edx, dword [ebp - 0x98]
xor eax, eax
mov al, byte [edx + 0x18]
cmp eax, 0x63
je 0x4a8250
mov ecx, dword [ebp - 0x3c]
xor edx, edx
mov dl, byte [ecx + 0x18]
cmp edx, 0x63
je 0x4a8250
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
mov eax, dword [ebp + 8]
push eax
call fcn.004a1d1a
add esp, 0xc
mov ecx, dword [ebp - 0x98]
xor edx, edx
mov dl, byte [ecx + 0x18]
cmp edx, 0x63
jne 0x4a826f
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx + 0x18]
mov byte [eax + 0x18], dl
jmp 0x4a8581
jmp 0x4a80ed
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax + 0x44]
test ecx, ecx
je 0x4a82ed
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
call fcn.0046be50
add esp, 4
add eax, 1
push eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 0x24]
add edx, 0x20
push edx
call fcn.004a4441
add esp, 0x10
mov dword [ebp - 0xa8], eax
cmp dword [ebp - 0xa8], 0
je 0x4a82c7
jmp 0x4a8581
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
or ecx, 0x10
mov edx, dword [ebp - 0x28]
mov dword [edx + 8], ecx
cmp dword [ebp + 0x14], 0
je 0x4a82e8
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x40]
mov dword [eax + 0x14], edx
jmp 0x4a84d7
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax + 0x44]
test ecx, ecx
jne 0x4a84d7
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.004c2505
add esp, 4
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x4a8338
jmp 0x4a8581
mov edx, dword [ebp - 0x24]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004a9330
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0x1c
mov edx, dword [ebp - 0xb0]
push edx
call fcn.004b317b
add esp, 0x10
push 0
mov eax, dword [ebp - 0xac]
push eax
push 0x76
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.004b317b
add esp, 0x10
cmp dword [ebp + 0x20], 0
je 0x4a83d3
cmp dword [ebp + 0x24], 0
je 0x4a83d3
cmp dword [ebp + 0x1c], 0
jne 0x4a8399
mov dword [ebp - 0xc4], 0x51c84c
jmp 0x4a83a3
mov dword [ebp - 0xc4], str._UNIQUE
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx]
sub eax, dword [edx]
add eax, 1
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
push str.CREATE_s_INDEX__.s
call fcn.004992c0
add esp, 0x10
mov dword [ebp - 0xb4], eax
jmp 0x4a83dd
mov dword [ebp - 0xb4], 0
mov edx, 1
test edx, edx
je 0x4a83f8
cmp dword [ebp - 0x24], 1
jne 0x4a83f8
mov dword [ebp - 0xc8], 0x5152b8
jmp 0x4a8402
mov dword [ebp - 0xc8], 0x5152cc
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0x24]
imul eax, eax, 0x18
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
mov eax, dword [edx + eax]
push eax
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q_0__Q__
mov ecx, dword [ebp + 8]
push ecx
call fcn.004a4c79
add esp, 0x1c
push 0
push 1
push 0xa
mov edx, dword [ebp - 0xb0]
push edx
call fcn.004b317b
add esp, 0x10
mov eax, dword [ebp - 0xb4]
push eax
call fcn.004a1a72
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x4a84d7
mov ecx, dword [ebp - 0xac]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004a85bd
add esp, 0xc
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0xb0]
push edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.004a6391
add esp, 0xc
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx]
push edx
push str.name_q
call fcn.004992c0
add esp, 8
push eax
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0x1a
mov ecx, dword [ebp - 0xb0]
push ecx
call fcn.004b32ba
add esp, 0x18
push 0
push 0
push 0xd
mov edx, dword [ebp - 0xb0]
push edx
call fcn.004b317b
add esp, 0x10
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov cl, byte [eax + 0x44]
test ecx, ecx
jne 0x4a84ed
cmp dword [ebp + 0x14], 0
jne 0x4a8581
cmp dword [ebp + 0x1c], 5
jne 0x4a850c
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x10], 0
je 0x4a850c
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x10]
xor edx, edx
mov dl, byte [ecx + 0x18]
cmp edx, 5
jne 0x4a8523
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x10]
mov dword [eax + 0x20], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x10], ecx
jmp 0x4a857a
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 0xb8]
cmp dword [ecx + 0x20], 0
je 0x4a855f
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x20]
xor ecx, ecx
mov cl, byte [eax + 0x18]
cmp ecx, 5
je 0x4a855f
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xb8], eax
jmp 0x4a852f
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0x3c]
mov dword [ecx + 0x20], edx
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x4a8593
mov eax, dword [ebp - 0x3c]
push eax
call fcn.004a4ffd
add esp, 4
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.004c74c5
add esp, 4
mov edx, dword [ebp + 0x14]
push edx
call fcn.004a8f0d
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.004a1a72
add esp, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret