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

Disassembly:
sub esp, 0x4c
xor ecx, ecx
push esi
mov esi, eax
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], ecx
cmp byte [eax + 0x49], cl
jne 0x47468e
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0x24], 0
jg 0x47468e
mov edx, ecx
cmp byte [edx + 0x190], 0
je 0x474003
cmp byte [esp + 0x78], 2
jne 0x47468e
push edi
mov edi, ecx
call fcn.004272e0
test eax, eax
jne 0x47468d
push ebx
push ebp
cmp dword [esp + 0x68], eax
je 0x4740f6
mov eax, dword [esp + 0x64]
push eax
mov ecx, edi
push ecx
lea ecx, [esp + 0x34]
mov eax, esi
call fcn.00442d70
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x47468b
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x9d], 0
mov ebp, dword [esp + 0x68]
jne 0x474078
mov ecx, ebp
mov eax, edi
call fcn.004542c0
cmp dword [esi + 4], 0
jne 0x474078
test eax, eax
je 0x474078
mov edx, dword [ebx + 0x10]
mov eax, dword [eax + 0x48]
cmp eax, dword [edx + 0x1c]
jne 0x474078
mov dword [esp + 0x1c], 1
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
push ecx
push str.index
mov ecx, edi
lea eax, [esp + 0x4c]
call fcn.00425e40
mov edx, eax
push ebp
push edx
call fcn.0045ba80
add ebp, 8
push ebp
push 0
call fcn.00454110
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x47468b
mov edx, esi
mov edi, ebx
mov esi, eax
cmp edx, 1
jne 0x4740e3
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x48]
je 0x4740e3
mov edx, dword [esi]
mov esi, dword [esp + 0x60]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.0043e2f0
add esp, 8
jmp 0x47468b
test byte [esi + 0x24], 0x20
je 0x474120
mov eax, esi
call fcn.00426100
mov dword [esp + 0x34], eax
jmp 0x474120
mov eax, edi
mov eax, dword [eax + 0x1ac]
mov dword [esp + 0x14], eax
test eax, eax
je 0x47468b
mov edi, dword [esp + 0x10]
mov esi, eax
mov edx, dword [esi + 0x48]
mov ecx, edi
call fcn.00427320
mov edx, eax
mov dword [esp + 0x1c], edx
mov ebx, dword [edi + 0x10]
mov ebp, dword [esi]
mov eax, edx
shl eax, 4
push 7
add ebx, eax
push str.sqlite_
push ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ebx
call fcn.0041d610
add esp, 0xc
test eax, eax
jne 0x47417e
cmp byte [edi + 0x9d], al
jne 0x47417e
push 9
lea ecx, [ebp + 7]
push str.altertab_
push ecx
call fcn.0041d610
add esp, 0xc
test eax, eax
je 0x47417e
mov esi, dword [esp + 0x60]
push ebp
push str.table__s_may_not_be_indexed
call fcn.0043e2f0
add esp, 8
jmp 0x47468b
cmp dword [esi + 0xc], 0
je 0x47419a
mov esi, dword [esp + 0x60]
push str.views_may_not_be_indexed
call fcn.0043e2f0
add esp, 4
jmp 0x47468b
cmp dword [esi + 0x38], 0
je 0x4741b6
mov esi, dword [esp + 0x60]
push str.virtual_tables_may_not_be_indexed
call fcn.0043e2f0
add esp, 4
jmp 0x47468b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x474264
push edi
call fcn.0042fdb0
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x47468b
mov edi, eax
mov eax, dword [esp + 0x60]
call fcn.00442dd0
test eax, eax
jne 0x47468b
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
cmp byte [edi + 0x9d], al
jne 0x474220
push eax
push esi
push edi
call fcn.0042f9b0
add esp, 0xc
test eax, eax
je 0x474220
push esi
mov esi, dword [esp + 0x64]
push str.there_is_already_a_table_named__s
call fcn.0043e2f0
add esp, 8
jmp 0x47468b
mov edx, dword [ebx]
push edx
push esi
push edi
call fcn.00425f30
add esp, 0xc
test eax, eax
je 0x4742a7
cmp dword [esp + 0x80], 0
jne 0x474252
push esi
mov esi, dword [esp + 0x64]
push str.index__s_already_exists
call fcn.0043e2f0
add esp, 8
jmp 0x47468b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x60]
call fcn.0046e8b0
jmp 0x47468b
mov eax, dword [esi + 8]
mov ecx, 1
test eax, eax
je 0x474278
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x474270
push ecx
push ebp
push str.sqlite_autoindex__s__d
call fcn.0043dfc0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x47468b
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x190], 0
je 0x4742a7
mov eax, dword [esp + 0x18]
inc byte [eax + 7]
cmp dword [esp + 0x1c], 1
mov esi, dword [ebx]
mov eax, str.sqlite_temp_master
je 0x4742ba
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x6c]
push 0x12
call fcn.00442c20
add esp, 0x10
test eax, eax
jne 0x47468b
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x4742e4
mov eax, 3
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
mov eax, dword [esp + 0x70]
call fcn.00442c20
add esp, 0x10
test eax, eax
jne 0x47468b
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x47436f
mov eax, dword [esp + 0x14]
movsx edx, word [eax + 0x2a]
mov eax, dword [eax + 4]
shl edx, 4
or byte [edx + eax - 1], 8
lea eax, [edx + eax - 0x10]
mov eax, dword [eax]
lea edx, [esp + 0x3c]
call fcn.0041d590
mov ecx, dword [esp + 0x10]
push edi
push 0x3b
push ecx
mov eax, edx
call fcn.0042f1a0
push eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
call fcn.004345b0
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
je 0x47468b
mov ecx, dword [esp + 0x7c]
mov edi, eax
test ecx, ecx
jl 0x474382
mov eax, dword [edi]
lea edx, [eax + eax*2]
mov byte [edi + edx*8 - 8], cl
jmp 0x474382
mov ecx, dword [esp + 0x60]
push str.index
mov eax, edi
call fcn.004413b0
add esp, 4
mov eax, dword [edi]
mov ebx, dword [esp + 0x30]
test eax, eax
jle 0x4743ac
lea esi, [edi + 4]
mov ebp, eax
mov eax, dword [esi]
cmp byte [eax], 0x5f
jne 0x4743a4
mov eax, dword [eax + 8]
call fcn.0041d4f0
lea ebx, [ebx + eax + 1]
add esi, 0x18
sub ebp, 1
jne 0x474391
mov eax, dword [esp + 0x18]
call fcn.0041d4f0
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4743c5
movzx eax, word [eax + 0x32]
jmp 0x4743ca
mov eax, 1
lea ecx, [esp + 0x20]
push ecx
mov cx, word [edi]
mov edi, dword [esp + 0x14]
add cx, ax
movzx eax, cx
lea edx, [esi + ebx + 1]
push eax
mov ecx, edi
call fcn.00438fc0
add esp, 8
cmp byte [edi + 0x49], 0
mov ebp, eax
jne 0x47467c
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call fcn.00495ae0
mov eax, dword [esp + 0x7c]
movzx edx, byte [esp + 0x90]
xor ecx, ecx
mov esi, dword [esp + 0x20]
add esp, 0xc
test eax, eax
setne cl
mov byte [ebp + 0x36], al
mov eax, dword [ebp + 0x38]
and edx, 3
and eax, 0xfffffff4
mov dword [ebp + 0xc], esi
and ecx, 1
add ecx, ecx
add ecx, ecx
add ecx, ecx
or ecx, edx
or ecx, eax
mov eax, dword [esp + 0x38]
mov dword [ebp + 0x38], ecx
mov ecx, edi
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + eax + 0xc]
mov edx, dword [esp + 0x6c]
mov edi, dword [esp + 0x78]
mov dword [ebp + 0x18], ecx
mov ax, word [edx]
mov word [ebp + 0x32], ax
test edi, edi
je 0x47448c
mov ecx, dword [esp + 0x60]
push 0
push edi
push 2
push ecx
call fcn.00452e50
add esp, 0x10
mov dword [ebp + 0x24], edi
mov dword [esp + 0x78], 0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0xc]
cmp byte [eax + 0x4c], 4
sbb eax, eax
neg eax
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x6c]
xor ebx, ebx
cmp dword [eax], ebx
lea edi, [eax + 4]
mov dword [esp + 0x28], edi
jle 0x474622
mov dword [esp + 0x30], ebx
lea esp, [esp]
mov ecx, dword [edi]
call fcn.004261b0
mov ecx, dword [edi]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
push 0
push ecx
push 0x20
push edx
call fcn.00452e50
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp dword [eax + 0x24], 0
jne 0x47467c
mov eax, dword [edi]
call fcn.00425250
cmp byte [eax], 0x94
je 0x474550
mov ecx, dword [esp + 0x60]
cmp esi, dword [ecx + 0x1ac]
je 0x47466d
cmp dword [ebp + 0x28], 0
jne 0x47453c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call fcn.00434330
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebp + 0x28], eax
cmp byte [ecx + 0x49], 0
jne 0x47453c
mov edx, dword [esp + 0x30]
lea edi, [edx + eax + 4]
mov dword [esp + 0x28], edi
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
mov edx, eax
mov word [ecx + ebx*2], dx
and dword [ebp + 0x38], 0xfffffff7
jmp 0x474578
movsx eax, word [eax + 0x20]
test eax, eax
jge 0x47455e
movsx eax, word [esi + 0x28]
jmp 0x474571
mov edx, dword [esi + 4]
mov ecx, eax
shl ecx, 4
cmp byte [ecx + edx + 0xc], 0
jne 0x474571
and dword [ebp + 0x38], 0xfffffff7
mov ecx, dword [ebp + 4]
mov word [ecx + ebx*2], ax
mov ecx, dword [edi]
cmp byte [ecx], 0x5f
jne 0x4745ab
mov edi, dword [ecx + 8]
mov eax, edi
call fcn.0041d4f0
mov esi, eax
inc esi
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00495ae0
mov dword [esp + 0x30], edi
add esp, 0xc
add edi, esi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
jmp 0x4745bd
test eax, eax
jl 0x4745c4
mov edx, dword [esi + 4]
shl eax, 4
mov eax, dword [eax + edx + 8]
mov dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0
jne 0x4745cc
mov dword [esp + 0x24], 0x4b7a1c
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x9d], 0
jne 0x4745f2
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
call fcn.00454170
test eax, eax
je 0x47467c
mov edi, dword [esp + 0x28]
mov edx, dword [ebp + 0x20]
mov eax, dword [esp + 0x24]
add dword [esp + 0x30], 0x18
mov dword [edx + ebx*4], eax
mov cl, byte [edi + 0xc]
and cl, byte [esp + 0x3c]
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x6c]
mov byte [ebx + edx], cl
inc ebx
add edi, 0x18
cmp ebx, dword [eax]
mov dword [esp + 0x28], edi
jl 0x4744c0
mov edi, dword [esp + 0x34]
test edi, edi
je 0x474719
xor ecx, ecx
xor esi, esi
cmp cx, word [edi + 0x32]
jae 0x47472d
lea esp, [esp]
mov edx, dword [edi + 4]
mov ecx, dword [ebp + 4]
movsx edx, word [edx + esi*2]
movzx eax, word [ebp + 0x32]
push ecx
call fcn.004262b0
add esp, 4
test eax, eax
je 0x4746ea
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x47470a
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
mov esi, ecx
call fcn.0043e2f0
add esp, 4
test ebp, ebp
je 0x47468b
mov esi, dword [esp + 0x10]
mov edi, ebp
call fcn.0042faf0
pop ebp
pop ebx
pop edi
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 4]
test eax, eax
je 0x4746a4
push eax
push esi
call fcn.0042f330
add esp, 8
mov eax, dword [esp + 0x60]
test eax, eax
je 0x4746b6
push eax
push esi
call fcn.0042f4d0
add esp, 8
mov eax, dword [esp + 0x5c]
push eax
mov eax, esi
call fcn.004265c0
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x474abd
cmp dword [esi + 0x1d8], 0
je 0x474a91
mov ecx, esi
call fcn.0041d150
pop esi
add esp, 0x4c
ret
mov eax, dword [ebp + 4]
mov word [eax + ebx*2], dx
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + esi*4]
mov edx, dword [ebp + 0x20]
mov dword [edx + ebx*4], eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [ebp + 0x1c]
mov al, byte [esi + ecx]
mov byte [ebx + edx], al
inc ebx
movzx ecx, word [edi + 0x32]
inc esi
cmp esi, ecx
jl 0x474640
jmp 0x47472d
mov edx, dword [ebp + 4]
or eax, 0xffffffff
mov word [edx + ebx*2], ax
mov ecx, dword [ebp + 0x20]
mov dword [ecx + ebx*4], 0x4b7a1c
mov esi, ebp
call fcn.00426350
mov edx, dword [esp + 0x60]
cmp dword [edx + 0x1ac], 0
jne 0x474748
mov edi, ebp
call fcn.00426250
cmp dword [esp + 0x68], 0
mov ebx, dword [esp + 0x14]
je 0x474795
movzx eax, word [ebp + 0x34]
movsx ecx, word [ebx + 0x2a]
cmp eax, ecx
jl 0x474795
or dword [ebp + 0x38], 0x20
mov edi, dword [ebp + 0x38]
xor edx, edx
xor esi, esi
cmp dx, word [ebx + 0x2a]
jge 0x474795
movsx eax, word [ebx + 0x28]
cmp esi, eax
je 0x474784
mov edx, ebp
call fcn.00426120
test ax, ax
jl 0x47478f
movsx eax, word [ebx + 0x2a]
inc esi
cmp esi, eax
jl 0x474770
jmp 0x474795
and edi, 0xffffffdf
mov dword [ebp + 0x38], edi
mov ecx, dword [esp + 0x60]
cmp ebx, dword [ecx + 0x1ac]
jne 0x47481b
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x47481b
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x474814
movzx eax, ax
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x47480e
mov edi, dword [ebp + 4]
mov eax, dword [ebx + 4]
sub eax, edi
mov dword [esp + 0x3c], eax
jmp 0x4747e4
mov eax, dword [esp + 0x3c]
mov ax, word [eax + edi]
cmp ax, word [edi]
jne 0x47480e
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + esi*4]
call fcn.0041d5c0
test eax, eax
jne 0x47480e
movzx eax, word [ebx + 0x32]
inc esi
add edi, 2
cmp esi, eax
jl 0x4747e0
cmp esi, dword [esp + 0x34]
je 0x47484f
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x4747b0
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x9d], 0
je 0x4748bd
mov eax, dword [ebp]
push ebp
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x18
call fcn.0042ae50
add esp, 8
test eax, eax
je 0x4748a0
mov eax, esi
call fcn.0041d210
jmp 0x47467c
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x474881
cmp al, 0xb
je 0x474875
cmp cl, 0xb
je 0x474875
mov esi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0043e2f0
add esp, 8
cmp byte [ebx + 0x36], 0xb
jne 0x474881
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
cmp byte [esp + 0x84], 2
jne 0x47467c
mov edx, dword [ebx + 0x38]
and edx, 0xfffffffe
or edx, 2
mov dword [ebx + 0x38], edx
jmp 0x47467c
or dword [esi + 0x18], 1
cmp dword [esp + 0x68], 0
je 0x474a30
mov ecx, dword [esi + 0x98]
mov dword [ebp + 0x2c], ecx
jmp 0x474a30
mov edx, dword [esp + 0x14]
test byte [edx + 0x24], 0x20
je 0x4748d2
cmp dword [esp + 0x68], 0
je 0x474a30
mov edi, dword [esp + 0x60]
inc dword [edi + 0x2c]
mov esi, dword [edi + 8]
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x34], eax
test esi, esi
jne 0x47490b
cmp dword [edi + 0x78], esi
jne 0x4748f8
mov ecx, dword [edi]
test byte [ecx + 0x44], 8
jne 0x4748f8
mov byte [edi + 0x17], 1
push edi
call fcn.00438450
mov esi, eax
add esp, 4
test esi, esi
je 0x47467c
mov ebx, dword [esp + 0x1c]
push 1
mov ecx, ebx
mov edx, edi
call fcn.0046e950
push 0
push 0
push 0
push 0xa9
push esi
call fcn.00432e70
mov edx, dword [esp + 0x4c]
push 2
push edx
push ebx
push 0x89
push esi
mov dword [ebp + 0x2c], eax
call fcn.00432e70
add esp, 0x2c
cmp dword [esp + 0x74], 0
je 0x474990
mov eax, dword [edi + 0x188]
add eax, dword [edi + 0x184]
mov ecx, dword [esp + 0x2c]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x474967
dec eax
cmp dword [esp + 0x70], 0
mov edx, 0x4b4b39
je 0x474978
mov edx, str._UNIQUE
mov edi, dword [esp + 0x10]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.0043dfc0
add esp, 0x10
mov ebx, eax
jmp 0x474996
mov edi, dword [esp + 0x10]
xor ebx, ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [edi + 0x10]
push ebx
push eax
mov eax, dword [ebp]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [ecx + edx]
mov ecx, dword [esp + 0x70]
push str.sqlite_master
push eax
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push ecx
call fcn.00442cb0
add esp, 0x20
mov eax, ebx
mov ecx, edi
call fcn.0041d1d0
cmp dword [esp + 0x68], 0
je 0x474a22
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
push edx
push ebp
call fcn.0045f5b0
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov eax, ebx
call fcn.00434e70
mov eax, dword [ebp]
push eax
push str.name_q_AND_typeindex
call fcn.0043dfc0
mov ecx, eax
mov eax, ebx
call fcn.00432f90
push 0
push 0
push 0
push 0x99
push esi
call fcn.00432e70
add esp, 0x24
mov eax, dword [ebp + 0x2c]
mov edx, esi
call fcn.0042db20
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x9d], 0
jne 0x474a44
cmp dword [esp + 0x68], 0
jne 0x47467c
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x70], edx
jne 0x474a83
mov eax, dword [ecx + 8]
test eax, eax
je 0x474a83
cmp byte [eax + 0x36], dl
je 0x474a83
cmp dword [eax + 0x14], 0
je 0x474a75
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x474a75
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x474a65
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
jmp 0x47468b
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
jmp 0x47468b
cmp eax, dword [esi + 0x128]
jb 0x474ab4
cmp eax, dword [esi + 0x12c]
jae 0x474ab4
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov dword [esi + 0x124], eax
pop esi
add esp, 0x4c
ret
push eax
call fcn.0041d0e0
add esp, 4
pop esi
add esp, 0x4c
ret