Function at 0x473870
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 0x473f4e
mov ecx, dword [esp + 0x54]
cmp dword [ecx + 0x24], 0
jg 0x473f4e
mov edx, ecx
cmp byte [edx + 0x190], 0
je 0x4738c3
cmp byte [esp + 0x78], 2
jne 0x473f4e
push edi
mov edi, ecx
call fcn.00426b90
test eax, eax
jne 0x473f4d
push ebx
push ebp
cmp dword [esp + 0x68], eax
je 0x4739b6
mov eax, dword [esp + 0x64]
push eax
mov ecx, edi
push ecx
lea ecx, [esp + 0x34]
mov eax, esi
call fcn.00442630
add esp, 8
mov dword [esp + 0x1c], eax
test eax, eax
jl 0x473f4b
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x9d], 0
mov ebp, dword [esp + 0x68]
jne 0x473938
mov ecx, ebp
mov eax, edi
call fcn.00453b80
cmp dword [esi + 4], 0
jne 0x473938
test eax, eax
je 0x473938
mov edx, dword [ebx + 0x10]
mov eax, dword [eax + 0x48]
cmp eax, dword [edx + 0x1c]
jne 0x473938
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.004256f0
mov edx, eax
push ebp
push edx
call fcn.0045b340
add ebp, 8
push ebp
push 0
call fcn.004539d0
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x473f4b
mov edx, esi
mov edi, ebx
mov esi, eax
cmp edx, 1
jne 0x4739a3
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [esi + 0x48]
je 0x4739a3
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.0043dbb0
add esp, 8
jmp 0x473f4b
test byte [esi + 0x24], 0x20
je 0x4739e0
mov eax, esi
call fcn.004259b0
mov dword [esp + 0x34], eax
jmp 0x4739e0
mov eax, edi
mov eax, dword [eax + 0x1ac]
mov dword [esp + 0x14], eax
test eax, eax
je 0x473f4b
mov edi, dword [esp + 0x10]
mov esi, eax
mov edx, dword [esi + 0x48]
mov ecx, edi
call fcn.00426bd0
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.0041cea0
add esp, 0xc
test eax, eax
jne 0x473a3e
cmp byte [edi + 0x9d], al
jne 0x473a3e
push 9
lea ecx, [ebp + 7]
push str.altertab_
push ecx
call fcn.0041cea0
add esp, 0xc
test eax, eax
je 0x473a3e
mov esi, dword [esp + 0x60]
push ebp
push str.table__s_may_not_be_indexed
call fcn.0043dbb0
add esp, 8
jmp 0x473f4b
cmp dword [esi + 0xc], 0
je 0x473a5a
mov esi, dword [esp + 0x60]
push str.views_may_not_be_indexed
call fcn.0043dbb0
add esp, 4
jmp 0x473f4b
cmp dword [esi + 0x38], 0
je 0x473a76
mov esi, dword [esp + 0x60]
push str.virtual_tables_may_not_be_indexed
call fcn.0043dbb0
add esp, 4
jmp 0x473f4b
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x473b24
push edi
call fcn.0042f670
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x473f4b
mov edi, eax
mov eax, dword [esp + 0x60]
call fcn.00442690
test eax, eax
jne 0x473f4b
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
cmp byte [edi + 0x9d], al
jne 0x473ae0
push eax
push esi
push edi
call fcn.0042f270
add esp, 0xc
test eax, eax
je 0x473ae0
push esi
mov esi, dword [esp + 0x64]
push str.there_is_already_a_table_named__s
call fcn.0043dbb0
add esp, 8
jmp 0x473f4b
mov edx, dword [ebx]
push edx
push esi
push edi
call fcn.004257e0
add esp, 0xc
test eax, eax
je 0x473b67
cmp dword [esp + 0x80], 0
jne 0x473b12
push esi
mov esi, dword [esp + 0x64]
push str.index__s_already_exists
call fcn.0043dbb0
add esp, 8
jmp 0x473f4b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x60]
call fcn.0046e180
jmp 0x473f4b
mov eax, dword [esi + 8]
mov ecx, 1
test eax, eax
je 0x473b38
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x473b30
push ecx
push ebp
push str.sqlite_autoindex__s__d
call fcn.0043d880
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x473f4b
mov eax, dword [esp + 0x60]
cmp byte [eax + 0x190], 0
je 0x473b67
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 0x473b7a
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x6c]
push 0x12
call fcn.004424e0
add esp, 0x10
test eax, eax
jne 0x473f4b
mov eax, 1
cmp dword [esp + 0x1c], eax
jne 0x473ba4
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.004424e0
add esp, 0x10
test eax, eax
jne 0x473f4b
mov edi, dword [esp + 0x6c]
test edi, edi
jne 0x473c2f
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.0041ce20
mov ecx, dword [esp + 0x10]
push edi
push 0x3b
push ecx
mov eax, edx
call fcn.0042ea50
push eax
mov eax, dword [esp + 0x70]
xor ecx, ecx
call fcn.00433e70
add esp, 0x10
mov dword [esp + 0x6c], eax
test eax, eax
je 0x473f4b
mov ecx, dword [esp + 0x7c]
mov edi, eax
test ecx, ecx
jl 0x473c42
mov eax, dword [edi]
lea edx, [eax + eax*2]
mov byte [edi + edx*8 - 8], cl
jmp 0x473c42
mov ecx, dword [esp + 0x60]
push str.index
mov eax, edi
call fcn.00440c70
add esp, 4
mov eax, dword [edi]
mov ebx, dword [esp + 0x30]
test eax, eax
jle 0x473c6c
lea esi, [edi + 4]
mov ebp, eax
mov eax, dword [esi]
cmp byte [eax], 0x5f
jne 0x473c64
mov eax, dword [eax + 8]
call fcn.0041cd80
lea ebx, [ebx + eax + 1]
add esi, 0x18
sub ebp, 1
jne 0x473c51
mov eax, dword [esp + 0x18]
call fcn.0041cd80
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x473c85
movzx eax, word [eax + 0x32]
jmp 0x473c8a
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.00438880
add esp, 8
cmp byte [edi + 0x49], 0
mov ebp, eax
jne 0x473f3c
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.00495400
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 0x473d4c
mov ecx, dword [esp + 0x60]
push 0
push edi
push 2
push ecx
call fcn.00452710
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 0x473ee2
mov dword [esp + 0x30], ebx
lea esp, [esp]
mov ecx, dword [edi]
call fcn.00425a60
mov ecx, dword [edi]
mov edx, dword [esp + 0x60]
mov esi, dword [esp + 0x14]
push 0
push ecx
push 0x20
push edx
call fcn.00452710
mov eax, dword [esp + 0x70]
add esp, 0x10
cmp dword [eax + 0x24], 0
jne 0x473f3c
mov eax, dword [edi]
call fcn.00424b00
cmp byte [eax], 0x94
je 0x473e10
mov ecx, dword [esp + 0x60]
cmp esi, dword [ecx + 0x1ac]
je 0x473f2d
cmp dword [ebp + 0x28], 0
jne 0x473dfc
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
call fcn.00433bf0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ebp + 0x28], eax
cmp byte [ecx + 0x49], 0
jne 0x473dfc
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 0x473e38
movsx eax, word [eax + 0x20]
test eax, eax
jge 0x473e1e
movsx eax, word [esi + 0x28]
jmp 0x473e31
mov edx, dword [esi + 4]
mov ecx, eax
shl ecx, 4
cmp byte [ecx + edx + 0xc], 0
jne 0x473e31
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 0x473e6b
mov edi, dword [ecx + 8]
mov eax, edi
call fcn.0041cd80
mov esi, eax
inc esi
push esi
push edi
mov edi, dword [esp + 0x28]
push edi
call fcn.00495400
mov dword [esp + 0x30], edi
add esp, 0xc
add edi, esi
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
jmp 0x473e7d
test eax, eax
jl 0x473e84
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 0x473e8c
mov dword [esp + 0x24], 0x4b7934
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x9d], 0
jne 0x473eb2
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x60]
call fcn.00453a30
test eax, eax
je 0x473f3c
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 0x473d80
mov edi, dword [esp + 0x34]
test edi, edi
je 0x473fd9
xor ecx, ecx
xor esi, esi
cmp cx, word [edi + 0x32]
jae 0x473fed
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.00425b60
add esp, 4
test eax, eax
je 0x473faa
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x473fca
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
mov esi, ecx
call fcn.0043dbb0
add esp, 4
test ebp, ebp
je 0x473f4b
mov esi, dword [esp + 0x10]
mov edi, ebp
call fcn.0042f3b0
pop ebp
pop ebx
pop edi
mov eax, dword [esp + 0x6c]
mov esi, dword [esp + 4]
test eax, eax
je 0x473f64
push eax
push esi
call fcn.0042ebe0
add esp, 8
mov eax, dword [esp + 0x60]
test eax, eax
je 0x473f76
push eax
push esi
call fcn.0042ed80
add esp, 8
mov eax, dword [esp + 0x5c]
push eax
mov eax, esi
call fcn.00425e70
mov eax, dword [esp + 0x10]
add esp, 4
test eax, eax
je 0x47437d
cmp dword [esi + 0x1d8], 0
je 0x474351
mov ecx, esi
call fcn.0041c9e0
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 0x473f00
jmp 0x473fed
mov edx, dword [ebp + 4]
or eax, 0xffffffff
mov word [edx + ebx*2], ax
mov ecx, dword [ebp + 0x20]
mov dword [ecx + ebx*4], 0x4b7934
mov esi, ebp
call fcn.00425c00
mov edx, dword [esp + 0x60]
cmp dword [edx + 0x1ac], 0
jne 0x474008
mov edi, ebp
call fcn.00425b00
cmp dword [esp + 0x68], 0
mov ebx, dword [esp + 0x14]
je 0x474055
movzx eax, word [ebp + 0x34]
movsx ecx, word [ebx + 0x2a]
cmp eax, ecx
jl 0x474055
or dword [ebp + 0x38], 0x20
mov edi, dword [ebp + 0x38]
xor edx, edx
xor esi, esi
cmp dx, word [ebx + 0x2a]
jge 0x474055
movsx eax, word [ebx + 0x28]
cmp esi, eax
je 0x474044
mov edx, ebp
call fcn.004259d0
test ax, ax
jl 0x47404f
movsx eax, word [ebx + 0x2a]
inc esi
cmp esi, eax
jl 0x474030
jmp 0x474055
and edi, 0xffffffdf
mov dword [ebp + 0x38], edi
mov ecx, dword [esp + 0x60]
cmp ebx, dword [ecx + 0x1ac]
jne 0x4740db
mov edx, dword [esp + 0x14]
mov ebx, dword [edx + 8]
test ebx, ebx
je 0x4740db
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x4740d4
movzx eax, ax
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x4740ce
mov edi, dword [ebp + 4]
mov eax, dword [ebx + 4]
sub eax, edi
mov dword [esp + 0x3c], eax
jmp 0x4740a4
mov eax, dword [esp + 0x3c]
mov ax, word [eax + edi]
cmp ax, word [edi]
jne 0x4740ce
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [edx + esi*4]
call fcn.0041ce50
test eax, eax
jne 0x4740ce
movzx eax, word [ebx + 0x32]
inc esi
add edi, 2
cmp esi, eax
jl 0x4740a0
cmp esi, dword [esp + 0x34]
je 0x47410f
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x474070
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x9d], 0
je 0x47417d
mov eax, dword [ebp]
push ebp
push eax
mov eax, dword [ebp + 0x18]
add eax, 0x18
call fcn.0042a700
add esp, 8
test eax, eax
je 0x474160
mov eax, esi
call fcn.0041caa0
jmp 0x473f3c
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x474141
cmp al, 0xb
je 0x474135
cmp cl, 0xb
je 0x474135
mov esi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.0043dbb0
add esp, 8
cmp byte [ebx + 0x36], 0xb
jne 0x474141
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
cmp byte [esp + 0x84], 2
jne 0x473f3c
mov edx, dword [ebx + 0x38]
and edx, 0xfffffffe
or edx, 2
mov dword [ebx + 0x38], edx
jmp 0x473f3c
or dword [esi + 0x18], 1
cmp dword [esp + 0x68], 0
je 0x4742f0
mov ecx, dword [esi + 0x98]
mov dword [ebp + 0x2c], ecx
jmp 0x4742f0
mov edx, dword [esp + 0x14]
test byte [edx + 0x24], 0x20
je 0x474192
cmp dword [esp + 0x68], 0
je 0x4742f0
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 0x4741cb
cmp dword [edi + 0x78], esi
jne 0x4741b8
mov ecx, dword [edi]
test byte [ecx + 0x44], 8
jne 0x4741b8
mov byte [edi + 0x17], 1
push edi
call fcn.00437d10
mov esi, eax
add esp, 4
test esi, esi
je 0x473f3c
mov ebx, dword [esp + 0x1c]
push 1
mov ecx, ebx
mov edx, edi
call fcn.0046e220
push 0
push 0
push 0
push 0xa9
push esi
call fcn.00432730
mov edx, dword [esp + 0x4c]
push 2
push edx
push ebx
push 0x89
push esi
mov dword [ebp + 0x2c], eax
call fcn.00432730
add esp, 0x2c
cmp dword [esp + 0x74], 0
je 0x474250
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 0x474227
dec eax
cmp dword [esp + 0x70], 0
mov edx, 0x4b4a4d
je 0x474238
mov edx, str._UNIQUE
mov edi, dword [esp + 0x10]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
call fcn.0043d880
add esp, 0x10
mov ebx, eax
jmp 0x474256
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.00442570
add esp, 0x20
mov eax, ebx
mov ecx, edi
call fcn.0041ca60
cmp dword [esp + 0x68], 0
je 0x4742e2
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x60]
push edx
push ebp
call fcn.0045ee70
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x68]
mov eax, ebx
call fcn.00434730
mov eax, dword [ebp]
push eax
push str.name_q_AND_typeindex
call fcn.0043d880
mov ecx, eax
mov eax, ebx
call fcn.00432850
push 0
push 0
push 0
push 0x99
push esi
call fcn.00432730
add esp, 0x24
mov eax, dword [ebp + 0x2c]
mov edx, esi
call fcn.0042d3d0
mov esi, dword [esp + 0x10]
cmp byte [esi + 0x9d], 0
jne 0x474304
cmp dword [esp + 0x68], 0
jne 0x473f3c
mov ecx, dword [esp + 0x14]
mov edx, 5
cmp dword [esp + 0x70], edx
jne 0x474343
mov eax, dword [ecx + 8]
test eax, eax
je 0x474343
cmp byte [eax + 0x36], dl
je 0x474343
cmp dword [eax + 0x14], 0
je 0x474335
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x474335
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x474325
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
jmp 0x473f4b
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
jmp 0x473f4b
cmp eax, dword [esi + 0x128]
jb 0x474374
cmp eax, dword [esi + 0x12c]
jae 0x474374
mov ecx, dword [esi + 0x124]
mov dword [eax], ecx
mov dword [esi + 0x124], eax
pop esi
add esp, 0x4c
ret
push eax
call fcn.0041c970
add esp, 4
pop esi
add esp, 0x4c
ret