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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x5932e0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x30], ecx
cmp byte [eax + 0x49], cl
jne 0x49d16b
cmp dword [ebx + 0x24], ecx
jg 0x49d16b
cmp byte [ebx + 0x190], cl
je 0x49c576
cmp byte [ebp + 0x28], 2
jne 0x49d16b
cmp byte [eax + 0x9d], cl
jne 0x49c5a5
lea edx, [ebx + 4]
mov ecx, eax
call fcn.004aef60
test eax, eax
je 0x49c59d
inc dword [ebx + 0x24]
mov dword [ebx + 0xc], eax
mov esi, dword [esp + 0x10]
xor edi, edi
jmp 0x49c878
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
test edx, edx
je 0x49c682
lea eax, [esp + 0x44]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.00499460
mov edx, eax
add esp, 8
mov dword [esp + 0x28], edx
test edx, edx
js 0x49c592
mov edi, dword [esp + 0x10]
cmp byte [edi + 0x9d], 0
jne 0x49c604
mov edx, dword [esp + 0x34]
mov ecx, ebx
call fcn.0049f570
cmp dword [esi + 4], 0
mov edx, dword [esp + 0x28]
jne 0x49c604
test eax, eax
je 0x49c604
mov ecx, dword [edi + 0x10]
mov eax, dword [eax + 0x48]
cmp eax, dword [ecx + 0x1c]
mov eax, 1
cmove edx, eax
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x5c]
push eax
push str.index
push edx
mov edx, ebx
call fcn.00497a10
mov esi, dword [esp + 0x40]
add esp, 0xc
mov edx, esi
call fcn.00497a50
lea eax, [esi + 8]
xor edx, edx
push eax
mov ecx, ebx
call fcn.00498a10
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49c666
mov edx, dword [esp + 0x28]
cmp edx, 1
jne 0x49c66f
mov eax, dword [edi + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x48]
je 0x49c66f
push dword [esi]
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
push ebx
call fcn.0045c440
add esp, 0xc
mov esi, edi
xor edi, edi
jmp 0x49c878
test byte [esi + 0x24], 0x20
je 0x49c6a8
mov ecx, esi
call fcn.00499570
mov dword [esp + 0x30], eax
jmp 0x49c6a8
mov esi, dword [ebx + 0x1b0]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x49c592
mov edx, dword [esi + 0x48]
mov ecx, eax
call fcn.004af190
mov edi, dword [esp + 0x10]
mov edx, eax
mov dword [esp + 0x28], edx
mov edi, dword [edi + 0x10]
mov eax, edx
mov esi, dword [esi]
mov edx, 7
shl eax, 4
add edi, eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x18], esi
test esi, esi
je 0x49c796
mov edi, 0x598544
mov al, byte [esi]
dec edx
test al, al
je 0x49c6f4
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x5748c8]
cmp al, byte [ecx + 0x5748c8]
jne 0x49c6f4
inc esi
inc edi
test edx, edx
jg 0x49c6d2
dec edx
test edx, edx
js 0x49c710
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x5748c8]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x5748c8]
sub eax, ecx
jne 0x49c78e
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x9d], 0
jne 0x49c78e
mov eax, dword [esp + 0x18]
mov edx, 9
lea esi, [eax + 7]
test esi, esi
je 0x49c774
mov edi, str.altertab_
mov al, byte [esi]
dec edx
test al, al
je 0x49c754
movzx ecx, byte [edi]
movzx eax, al
mov al, byte [eax + 0x5748c8]
cmp al, byte [ecx + 0x5748c8]
jne 0x49c754
inc esi
inc edi
test edx, edx
jg 0x49c732
dec edx
test edx, edx
js 0x49c78e
movzx eax, byte [edi]
movzx ecx, byte [eax + 0x5748c8]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x5748c8]
sub eax, ecx
je 0x49c78e
mov eax, dword [esp + 0x18]
push eax
push str.table__s_may_not_be_indexed
push ebx
call fcn.0045c440
mov esi, dword [esp + 0x1c]
add esp, 0xc
xor edi, edi
jmp 0x49c878
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0xc], 0
je 0x49c7b9
push str.views_may_not_be_indexed
push ebx
call fcn.0045c440
mov esi, dword [esp + 0x18]
add esp, 8
xor edi, edi
jmp 0x49c878
cmp dword [eax + 0x38], 0
je 0x49c7d8
push str.virtual_tables_may_not_be_indexed
push ebx
call fcn.0045c440
mov esi, dword [esp + 0x18]
add esp, 8
xor edi, edi
jmp 0x49c878
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x49c8d5
mov esi, dword [esp + 0x10]
mov edx, ecx
mov ecx, esi
call fcn.00499330
mov dword [esp + 0x18], eax
test eax, eax
je 0x49c874
mov edx, eax
mov ecx, ebx
call fcn.004994d0
test eax, eax
jne 0x49c874
cmp byte [esi + 0x9d], al
jne 0x49c836
mov edx, dword [esp + 0x18]
mov ecx, esi
push eax
call fcn.00498610
add esp, 4
test eax, eax
je 0x49c836
mov edi, dword [esp + 0x18]
push edi
push str.there_is_already_a_table_named__s
push ebx
call fcn.0045c440
add esp, 0xc
jmp 0x49c878
push dword [edi]
mov edx, dword [esp + 0x1c]
mov ecx, esi
call fcn.00498a60
add esp, 4
test eax, eax
je 0x49c915
cmp dword [ebp + 0x24], 0
jne 0x49c869
mov edi, dword [esp + 0x18]
push edi
push str.index__s_already_exists
push ebx
call fcn.0045c440
add esp, 0xc
jmp 0x49c878
mov edx, dword [esp + 0x28]
mov ecx, ebx
call fcn.0049dfc0
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x49c88d
mov edx, eax
mov ecx, esi
call fcn.0048e120
test ebx, ebx
je 0x49c89a
mov edx, ebx
mov ecx, esi
call fcn.0048f0e0
mov edx, dword [esp + 0x34]
mov ecx, esi
call fcn.0049d960
test edi, edi
je 0x49d1ad
cmp dword [esi + 0x1d8], 0
je 0x49d174
mov edx, edi
mov ecx, esi
call fcn.00459240
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + 8]
mov ecx, 1
test eax, eax
je 0x49c8e9
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x49c8e1
push ecx
push esi
mov esi, dword [esp + 0x18]
push str.sqlite_autoindex__s__d
push esi
call fcn.0045b650
add esp, 0x10
mov dword [esp + 0x18], eax
test eax, eax
je 0x49c874
cmp byte [ebx + 0x190], 0
je 0x49c915
inc byte [eax + 7]
mov esi, dword [edi]
mov ecx, 0x598474
cmp dword [esp + 0x28], 1
mov eax, 0x598464
push esi
cmove eax, ecx
mov edx, 0x12
push 0
push eax
mov ecx, ebx
call fcn.00497ef0
mov edi, dword [esp + 0x24]
add esp, 0xc
test eax, eax
jne 0x49d162
xor edx, edx
mov ecx, ebx
cmp dword [esp + 0x28], 1
push esi
mov esi, dword [esp + 0x20]
sete dl
push dword [esi]
lea edx, [edx*2 + 1]
push edi
call fcn.00497ef0
add esp, 0xc
test eax, eax
jne 0x49d162
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x49ca32
movsx ecx, word [esi + 0x2a]
mov eax, dword [esi + 4]
add ecx, ecx
or byte [eax + ecx*8 - 1], 8
mov edx, dword [eax + ecx*8 - 0x10]
lea ecx, [esp + 0x54]
call fcn.0045c580
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
push 0
lea ebx, [edi + 1]
lea eax, [ebx + 0x30]
push eax
call fcn.004595f0
mov esi, eax
add esp, 8
test esi, esi
je 0x49ca03
push 0x30
push 0
push esi
call fcn.00517340
or eax, 0xffffffff
mov byte [esi], 0x3b
add esp, 0xc
mov word [esi + 0x22], ax
test ebx, ebx
jne 0x49c9dd
or dword [esi + 4], 0x800400
jmp 0x49c9fc
lea eax, [esi + 0x30]
mov dword [esi + 8], eax
test edi, edi
je 0x49c9f8
push edi
push dword [esp + 0x58]
push eax
call fcn.00516840
mov eax, dword [esi + 8]
add esp, 0xc
mov byte [eax + edi], 0
mov dword [esi + 0x18], 1
mov ecx, dword [esp + 0x24]
xor edx, edx
push esi
call fcn.0048ede0
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x49d155
mov edx, dword [ebp + 0x20]
test edx, edx
js 0x49ca47
mov ecx, dword [ebx]
lea ecx, [ecx + ecx*2]
mov byte [ebx + ecx*8 - 8], dl
jmp 0x49ca47
push 0x59845c
mov edx, eax
mov ecx, ebx
call fcn.0048f0b0
mov ebx, dword [esp + 0x18]
add esp, 4
mov edi, dword [ebx]
movzx esi, di
test edi, edi
jle 0x49ca78
lea esi, [ebx + 4]
mov ecx, dword [esi]
cmp byte [ecx], 0x5e
jne 0x49ca6d
mov ecx, dword [ecx + 8]
call fcn.0045c240
mov ecx, dword [esp + 0x38]
inc ecx
add ecx, eax
mov dword [esp + 0x38], ecx
add esi, 0x18
sub edi, 1
jne 0x49ca53
movzx esi, word [ebx]
mov ecx, dword [esp + 0x18]
call fcn.0045c240
mov edi, eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49ca91
movzx ecx, word [eax + 0x32]
jmp 0x49ca96
mov ecx, 1
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x3c]
lea edx, [ecx + esi]
mov esi, dword [esp + 0x14]
inc eax
add eax, edi
mov ecx, esi
push eax
call fcn.0049c450
add esp, 8
mov ebx, eax
cmp byte [esi + 0x49], 0
jne 0x49cd7e
mov ecx, dword [esp + 0x3c]
mov dword [ebx], ecx
lea eax, [ecx + 1]
lea ecx, [edi + 1]
add eax, edi
push ecx
push dword [esp + 0x1c]
mov dword [esp + 0x28], eax
push dword [ebx]
call fcn.00516840
mov eax, dword [esp + 0x58]
add esp, 0xc
mov edx, dword [esp + 0x1c]
mov byte [ebx + 0x36], al
neg eax
mov edi, dword [esp + 0x24]
sbb ecx, ecx
mov dword [ebx + 0xc], edx
mov eax, dword [ebx + 0x38]
and ecx, 8
and eax, 0xfffffff7
or ecx, eax
movzx eax, byte [ebp + 0x28]
and eax, 3
and ecx, 0xfffffffc
or ecx, eax
mov dword [ebx + 0x38], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + eax + 0xc]
mov ecx, dword [esp + 0x48]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x14]
mov ax, word [eax]
mov word [ebx + 0x32], ax
test ecx, ecx
je 0x49cb4e
push 0
push ecx
push 2
mov ecx, edi
call fcn.0048ce00
mov eax, dword [esp + 0x54]
add esp, 0xc
mov dword [ebx + 0x24], eax
xor eax, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
xor edx, edx
mov dword [esp + 0x2c], edx
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x43], al
mov eax, dword [esp + 0x14]
lea esi, [eax + 4]
mov dword [esp + 0x3c], esi
cmp dword [eax], edx
jle 0x49ccf7
mov dword [esp + 0x38], edx
nop dword [eax]
mov eax, dword [esi]
mov cl, byte [eax]
cmp cl, 0x61
je 0x49cb96
cmp cl, 0x5e
jne 0x49cb99
mov eax, dword [eax + 0xc]
cmp byte [eax], 0x61
jne 0x49cb99
mov byte [eax], 0x3b
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
push dword [esi]
push 0x20
call fcn.0048ce00
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x49cd7a
mov ecx, dword [esi]
call fcn.0048d000
cmp byte [eax], 0x92
je 0x49cc21
mov eax, dword [esp + 0x1c]
cmp eax, dword [edi + 0x1b0]
je 0x49cd6c
cmp dword [ebx + 0x28], 0
jne 0x49cc05
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 0
call fcn.0048e5c0
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 0x28], eax
cmp byte [ecx + 0x49], 0
jne 0x49cc05
mov esi, dword [esp + 0x38]
add esi, 4
add esi, eax
mov dword [esp + 0x3c], esi
mov eax, dword [ebx + 4]
mov edx, 0xfffffffe
mov ecx, dword [esp + 0x2c]
mov edi, edx
mov word [eax + ecx*2], di
and dword [ebx + 0x38], 0xfffffff7
mov edi, dword [esp + 0x24]
jmp 0x49cc50
movsx edx, word [eax + 0x20]
mov eax, dword [esp + 0x1c]
test edx, edx
jns 0x49cc33
movsx edx, word [eax + 0x28]
jmp 0x49cc45
mov eax, dword [eax + 4]
mov ecx, edx
add ecx, ecx
cmp byte [eax + ecx*8 + 0xc], 0
jne 0x49cc45
and dword [ebx + 0x38], 0xfffffff7
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x2c]
mov word [eax + ecx*2], dx
mov esi, dword [esi]
cmp byte [esi], 0x5e
jne 0x49cc80
mov esi, dword [esi + 8]
mov ecx, esi
call fcn.0045c240
lea edi, [eax + 1]
push edi
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.00516840
lea eax, [edi + esi]
add esp, 0xc
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jmp 0x49cc91
test edx, edx
js 0x49cc95
mov eax, dword [esp + 0x1c]
add edx, edx
mov eax, dword [eax + 4]
mov esi, dword [eax + edx*8 + 8]
test esi, esi
jne 0x49cc9a
mov esi, 0x574374
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x9d], 0
jne 0x49ccb8
mov edx, esi
mov ecx, edi
call fcn.0049a280
test eax, eax
je 0x49cd7a
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4], esi
xor eax, eax
mov esi, dword [esp + 0x3c]
cmp byte [esp + 0x43], 4
movzx ecx, byte [esi + 0xc]
cmovb ecx, eax
mov eax, dword [ebx + 0x1c]
add dword [esp + 0x38], 0x18
add esi, 0x18
mov dword [esp + 0x3c], esi
mov byte [edx + eax], cl
inc edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], edx
cmp edx, dword [eax]
jl 0x49cb80
mov esi, dword [esp + 0x30]
test esi, esi
je 0x49cda3
xor eax, eax
xor edi, edi
cmp ax, word [esi + 0x32]
jae 0x49cdb7
mov eax, dword [esi + 4]
movzx ecx, word [ebx + 0x32]
movzx esi, word [eax + edi*2]
mov eax, dword [ebx + 4]
mov edx, eax
test ecx, ecx
je 0x49cd38
movzx eax, word [edx]
lea edx, [edx + 2]
dec ecx
cmp si, ax
je 0x49cd94
test ecx, ecx
jg 0x49cd25
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
mov word [eax + edx*2], si
mov esi, dword [esp + 0x30]
mov ecx, dword [ebx + 0x20]
mov eax, dword [esi + 0x20]
mov eax, dword [eax + edi*4]
mov dword [ecx + edx*4], eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov al, byte [edi + eax]
mov byte [edx + ecx], al
inc edx
mov dword [esp + 0x2c], edx
movzx eax, word [esi + 0x32]
inc edi
cmp edi, eax
jl 0x49cd11
jmp 0x49cdb7
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
push edi
call fcn.0045c440
add esp, 8
mov esi, dword [esp + 0x10]
test ebx, ebx
je 0x49c874
mov edx, ebx
mov ecx, esi
call fcn.00498b20
jmp 0x49c874
mov esi, dword [esp + 0x30]
mov eax, 0xffff
add word [ebx + 0x34], ax
jmp 0x49cd61
mov eax, dword [ebx + 4]
or ecx, 0xffffffff
mov word [eax + edx*2], cx
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4], 0x574374
mov ecx, ebx
call fcn.0049d1c0
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x1b0], 0
jne 0x49cdd2
mov ecx, ebx
call fcn.0049a740
cmp dword [esp + 0x34], 0
mov eax, dword [esp + 0x1c]
je 0x49ce24
movsx eax, word [eax + 0x2a]
movzx ecx, word [ebx + 0x34]
cmp ecx, eax
mov eax, dword [esp + 0x1c]
jl 0x49ce24
or dword [ebx + 0x38], 0x20
xor ecx, ecx
movzx esi, word [eax + 0x2a]
xor edx, edx
cmp cx, si
jge 0x49ce24
movsx edi, word [eax + 0x28]
cmp edx, edi
je 0x49ce12
mov ecx, ebx
call fcn.00499590
test ax, ax
js 0x49ce1c
inc edx
movsx eax, si
cmp edx, eax
jl 0x49ce02
jmp 0x49ce20
and dword [ebx + 0x38], 0xffffffdf
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
cmp eax, dword [ecx + 0x1b0]
jne 0x49ced7
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], ecx
test ecx, ecx
je 0x49ced3
movzx esi, word [ebx + 0x32]
nop word [eax + eax]
movzx eax, word [ecx + 0x32]
movzx edx, ax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
cmp ax, si
jne 0x49cec4
xor edi, edi
mov dword [esp + 0x20], edi
cmp di, ax
jae 0x49cebd
mov eax, dword [ecx + 4]
mov esi, dword [ebx + 4]
sub eax, esi
mov dword [esp + 0x20], eax
nop dword [eax + eax]
mov ax, word [eax + esi]
cmp ax, word [esi]
jne 0x49ceb5
mov ecx, dword [ecx + 0x20]
mov edx, dword [ebx + 0x20]
mov ecx, dword [ecx + edi*4]
mov edx, dword [edx + edi*4]
call fcn.0045c5e0
mov ecx, dword [esp + 0x30]
test eax, eax
jne 0x49ceb5
mov eax, dword [esp + 0x3c]
inc edi
movzx eax, ax
add esi, 2
cmp edi, eax
mov eax, dword [esp + 0x20]
jl 0x49ce80
mov edx, dword [esp + 0x38]
movzx esi, word [ebx + 0x32]
movzx eax, dx
cmp edi, eax
je 0x49cf09
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x30], ecx
test ecx, ecx
jne 0x49ce50
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x9d], 0
je 0x49cf7e
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
add ecx, 0x18
push ebx
call fcn.0045da80
add esp, 4
test eax, eax
je 0x49cf60
mov ecx, esi
call fcn.00459a10
jmp 0x49cd7e
mov al, byte [ecx + 0x36]
mov dl, byte [ebx + 0x36]
cmp al, dl
je 0x49cf41
cmp al, 0xa
je 0x49cf3b
cmp dl, 0xa
je 0x49cf37
mov eax, dword [esp + 0x24]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push eax
call fcn.0045c440
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov al, byte [ecx + 0x36]
cmp al, 0xa
jne 0x49cf41
mov al, byte [ebx + 0x36]
mov byte [ecx + 0x36], al
cmp byte [ebp + 0x28], 2
mov esi, dword [esp + 0x10]
jne 0x49cd7e
mov eax, dword [ecx + 0x38]
and eax, 0xfffffffe
or eax, 2
mov dword [ecx + 0x38], eax
jmp 0x49cd7e
or dword [esi + 0x18], 1
mov edx, dword [esp + 0x34]
test edx, edx
je 0x49d0f6
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x2c], eax
jmp 0x49d0f6
test byte [eax + 0x24], 0x20
je 0x49cf90
mov edx, dword [esp + 0x34]
test edx, edx
je 0x49d0fa
inc dword [ecx + 0x2c]
mov esi, dword [ecx + 8]
mov edi, dword [ecx + 0x2c]
mov dword [esp + 0x20], edi
test esi, esi
jne 0x49cfc5
cmp dword [ecx + 0x78], esi
jne 0x49cfb2
mov eax, dword [ecx]
test byte [eax + 0x44], 8
jne 0x49cfb2
mov byte [ecx + 0x17], 1
call fcn.00478320
mov ecx, dword [esp + 0x24]
mov esi, eax
test esi, esi
je 0x49cd7a
push dword [esp + 0x28]
mov edx, 1
call fcn.0049e080
add esp, 4
mov edx, 0xa9
mov ecx, esi
call fcn.004785a0
push 2
push edi
push dword [esp + 0x30]
mov edx, 0x89
mov dword [ebx + 0x2c], eax
mov ecx, esi
call fcn.00478530
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x49d051
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x188]
mov eax, dword [eax + 0x184]
add edx, eax
mov eax, dword [esp + 0x44]
mov ecx, edx
mov eax, dword [eax]
sub ecx, eax
cmp byte [edx - 1], 0x3b
push eax
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x50], 0
push eax
mov ecx, str._UNIQUE
mov eax, 0x59f675
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push dword [esp + 0x20]
call fcn.0045b650
add esp, 0x14
mov edi, eax
jmp 0x49d053
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x50]
push edi
push dword [esp + 0x24]
push dword [eax]
mov eax, dword [esp + 0x1c]
push dword [ebx]
push 0x5983c4
mov eax, dword [eax + 0x10]
push dword [ecx + eax]
mov eax, dword [esp + 0x3c]
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push eax
call fcn.004984f0
mov ecx, dword [esp + 0x30]
add esp, 0x20
mov edx, edi
call fcn.004592d0
cmp dword [esp + 0x34], 0
je 0x49d0e4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, ebx
call fcn.0049c0c0
mov edx, dword [esp + 0x2c]
add esp, 4
mov ecx, dword [esp + 0x24]
call fcn.0049a2d0
push dword [ebx]
push str.name_q_AND_typeindex
push dword [esp + 0x18]
call fcn.0045b650
mov edx, dword [esp + 0x34]
add esp, 0xc
mov ecx, esi
push eax
call fcn.004789c0
add esp, 4
mov edx, 0x99
mov ecx, esi
call fcn.004785a0
mov edx, dword [ebx + 0x2c]
mov ecx, esi
call fcn.00478e60
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
cmp byte [esi + 0x9d], 0
jne 0x49d10b
test edx, edx
jne 0x49cd7e
cmp dword [esp + 0x4c], 5
jne 0x49d143
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x49d143
cmp byte [ecx + 0x36], 5
je 0x49d143
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x49d135
cmp byte [eax + 0x36], 5
je 0x49d135
mov ecx, eax
mov eax, dword [ecx + 0x14]
test eax, eax
jne 0x49d126
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x14], eax
mov dword [ecx + 0x14], ebx
jmp 0x49c874
mov eax, dword [eax + 8]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 8], ebx
jmp 0x49c874
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
jmp 0x49c87c
mov esi, dword [esp + 0x10]
jmp 0x49c878
mov esi, eax
xor edi, edi
jmp 0x49c878
cmp edi, dword [esi + 0x128]
jb 0x49d1a4
cmp edi, dword [esi + 0x12c]
jae 0x49d1a4
mov eax, dword [esi + 0x124]
mov dword [edi], eax
mov dword [esi + 0x124], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret
push edi
call fcn.00459190
add esp, 4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00514e1d
mov esp, ebp
pop ebp
ret