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

Disassembly:
sub esp, 0x4c
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
xor ecx, ecx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
cmp byte [eax + 0x41], cl
jne 0x50e6ed
mov ecx, dword [esp + 0x58]
cmp byte [ecx + 0x1c2], 0
jne 0x50e6ed
mov edx, ecx
cmp dword [edx + 0x40], 0
jg 0x50e6ed
cmp byte [eax + 0x91], 0
mov esi, ecx
jne 0x50e08a
lea ecx, [esi + 4]
push ecx
push eax
call fcn.0052bfc0
add esp, 8
test eax, eax
je 0x50e08a
inc dword [esi + 0x40]
mov dword [esi + 0xc], eax
jmp 0x50e6ed
cmp dword [esp + 0x64], 0
push ebx
push edi
je 0x50e176
mov edx, dword [esp + 0x64]
push edx
push esi
lea ecx, [esp + 0x30]
mov eax, ebp
call fcn.004e41e0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
jl 0x50e6eb
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x91], 0
mov ebx, dword [esp + 0x60]
mov edi, dword [esp + 0x6c]
jne 0x50e0f4
push ebx
mov eax, edi
call fcn.004f1bc0
add esp, 4
cmp dword [ebp + 4], 0
jne 0x50e0f4
test eax, eax
je 0x50e0f4
mov ecx, dword [esi + 0x10]
mov edx, dword [eax + 0x40]
cmp edx, dword [ecx + 0x1c]
jne 0x50e0f4
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
push eax
push str.index
mov ecx, ebx
lea eax, [esp + 0x4c]
call fcn.004c7250
mov ecx, eax
push edi
push ecx
call fcn.004f9300
add edi, 8
push edi
push 0
mov eax, ebx
call fcn.004f1a10
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x50e6eb
mov ebx, dword [esp + 0x14]
mov edx, esi
mov edi, eax
cmp edx, 1
jne 0x50e163
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [edi + 0x40]
je 0x50e163
mov edx, dword [edi]
mov edi, dword [esp + 0x60]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.004e0360
add esp, 8
jmp 0x50e6eb
test byte [edi + 0x2a], 0x20
je 0x50e19e
mov eax, edi
call fcn.004c7600
mov dword [esp + 0x34], eax
jmp 0x50e19e
mov esi, dword [esi + 0x1e4]
mov dword [esp + 0x10], esi
test esi, esi
je 0x50e6eb
mov ebx, dword [esp + 0x14]
mov edi, esi
mov esi, dword [edi + 0x40]
mov ecx, ebx
call fcn.004c86c0
mov edx, eax
mov dword [esp + 0x18], edx
mov ebp, dword [ebx + 0x10]
mov esi, dword [edi]
mov eax, edx
shl eax, 4
push 7
add ebp, eax
push str.sqlite_
push esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], ebp
call fcn.004bfa00
add esp, 0xc
test eax, eax
jne 0x50e1fc
cmp byte [ebx + 0x91], al
jne 0x50e1fc
push 9
lea eax, [esi + 7]
push str.altertab_
push eax
call fcn.004bfa00
add esp, 0xc
test eax, eax
je 0x50e1fc
mov edi, dword [esp + 0x60]
push esi
push str.table__s_may_not_be_indexed
call fcn.004e0360
add esp, 8
jmp 0x50e6eb
cmp dword [edi + 0xc], 0
je 0x50e218
mov edi, dword [esp + 0x60]
push str.views_may_not_be_indexed
call fcn.004e0360
add esp, 4
jmp 0x50e6eb
test byte [edi + 0x2a], 0x10
je 0x50e234
mov edi, dword [esp + 0x60]
push str.virtual_tables_may_not_be_indexed
call fcn.004e0360
add esp, 4
jmp 0x50e6eb
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x50e2e0
push ebx
call fcn.004d2680
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50e6eb
mov esi, eax
mov eax, dword [esp + 0x60]
call fcn.004e4250
test eax, eax
jne 0x50e6eb
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x91], al
jne 0x50e29a
push eax
push esi
push edi
call fcn.004c72f0
add esp, 0xc
test eax, eax
je 0x50e29a
mov edi, dword [esp + 0x60]
push esi
push str.there_is_already_a_table_named__s
call fcn.004e0360
add esp, 8
jmp 0x50e6eb
mov ecx, dword [ebp]
push ecx
push esi
mov eax, edi
call fcn.004c7370
add esp, 8
test eax, eax
je 0x50e315
cmp dword [esp + 0x84], 0
jne 0x50e2ce
mov edi, dword [esp + 0x60]
push esi
push str.index__s_already_exists
call fcn.004e0360
add esp, 8
jmp 0x50e6eb
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x60]
call fcn.00508af0
jmp 0x50e6eb
mov eax, dword [edi + 8]
mov ecx, 1
test eax, eax
je 0x50e2f8
lea esp, [esp]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x50e2f0
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebx
call fcn.004e0090
add esp, 0xc
mov dword [esp + 0x1c], eax
test eax, eax
je 0x50e6eb
cmp dword [esp + 0x18], 1
mov esi, dword [ebp]
mov eax, str.sqlite_temp_master
je 0x50e329
mov eax, str.sqlite_master
push esi
push 0
push eax
mov eax, dword [esp + 0x6c]
push 0x12
call fcn.004e4090
add esp, 0x10
test eax, eax
jne 0x50e6eb
mov eax, 1
cmp dword [esp + 0x18], eax
jne 0x50e353
mov eax, 3
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
push eax
mov eax, dword [esp + 0x70]
call fcn.004e4090
add esp, 0x10
test eax, eax
jne 0x50e6eb
mov edi, dword [esp + 0x70]
test edi, edi
jne 0x50e3db
mov ecx, dword [esp + 0x10]
movsx eax, word [ecx + 0x22]
mov ecx, dword [ecx + 4]
lea eax, [eax + eax*2]
mov eax, dword [ecx + eax*8 - 0x18]
mov dword [esp + 0x3c], eax
call fcn.004bf8c0
push edi
lea edx, [esp + 0x40]
push edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
push 0x1b
push eax
call fcn.004d7780
push eax
mov eax, dword [esp + 0x74]
xor ecx, ecx
call fcn.004d7e90
add esp, 0x14
mov dword [esp + 0x70], eax
test eax, eax
je 0x50e6eb
mov edx, dword [esp + 0x80]
mov edi, eax
mov ecx, edi
call fcn.004c6a20
jmp 0x50e3ee
mov ecx, dword [esp + 0x60]
push str.index
mov eax, edi
call fcn.004e2ee0
add esp, 4
mov eax, dword [edi]
test eax, eax
jle 0x50e41f
mov esi, dword [edi + 4]
mov ebp, dword [esp + 0x2c]
mov ebx, eax
lea ecx, [ecx]
mov eax, dword [esi]
cmp byte [eax], 0x5f
jne 0x50e413
mov eax, dword [eax + 8]
call fcn.004bf8c0
lea ebp, [eax + ebp + 1]
add esi, 0x18
sub ebx, 1
jne 0x50e400
mov dword [esp + 0x2c], ebp
mov eax, dword [esp + 0x1c]
call fcn.004bf8c0
mov esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x50e438
movzx eax, word [eax + 0x32]
jmp 0x50e43d
mov eax, 1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esi + edx + 1]
mov dx, word [edi]
mov edi, dword [esp + 0x18]
add dx, ax
movzx eax, dx
push eax
push edi
call fcn.004d8350
add esp, 0xc
cmp byte [edi + 0x41], 0
mov ebp, eax
jne 0x50e6dc
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [eax + esi + 1]
inc esi
push esi
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call fcn.0040dc50
mov eax, dword [esp + 0x80]
xor edx, edx
add esp, 0xc
test eax, eax
setne dl
mov ecx, dword [esp + 0x10]
mov byte [ebp + 0x36], al
xor eax, eax
mov esi, dword [esp + 0x7c]
mov dword [ebp + 0xc], ecx
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x28], eax
sete al
and eax, 3
or edx, eax
mov eax, dword [ebp + 0x38]
and eax, 0xfffffff4
or edx, eax
mov dword [ebp + 0x38], edx
mov edx, edi
mov eax, dword [edx + 0x10]
mov edx, dword [esp + 0x38]
mov eax, dword [edx + eax + 0xc]
mov edx, dword [esp + 0x70]
mov dword [ebp + 0x18], eax
mov ax, word [edx]
mov word [ebp + 0x32], ax
test esi, esi
je 0x50e506
mov edx, dword [esp + 0x60]
push esi
push 0x10
push edx
xor eax, eax
call fcn.004f0e00
add esp, 0xc
mov dword [ebp + 0x24], esi
mov dword [esp + 0x7c], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
sbb eax, eax
neg eax
dec eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov edx, dword [eax + 4]
xor ebx, ebx
cmp dword [eax], ebx
mov dword [esp + 0x2c], edx
jle 0x50e67e
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi]
call fcn.004c7650
mov eax, dword [edi]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push eax
push 0x20
push esi
xor eax, eax
call fcn.004f0e00
add esp, 0xc
cmp dword [esi + 0x40], 0
jne 0x50e6dc
mov eax, dword [edi]
call fcn.004c6870
cmp byte [eax], 0x98
je 0x50e5be
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esi + 0x1e4]
je 0x50e6cd
cmp dword [ebp + 0x28], 0
jne 0x50e5aa
mov edx, dword [esp + 0x70]
mov esi, dword [esp + 0x14]
push 0
push edx
push esi
call fcn.004d1630
add esp, 0xc
mov dword [ebp + 0x28], eax
cmp byte [esi + 0x41], 0
jne 0x50e5aa
mov edi, dword [eax + 4]
add edi, dword [esp + 0x30]
mov dword [esp + 0x2c], edi
mov ecx, dword [ebp + 4]
mov eax, 0xfffffffe
mov edx, eax
mov word [ecx + ebx*2], dx
and dword [ebp + 0x38], 0xfffffff7
jmp 0x50e5ec
movsx eax, word [eax + 0x20]
test eax, eax
jge 0x50e5d0
mov eax, dword [esp + 0x10]
movsx eax, word [eax + 0x20]
jmp 0x50e5e5
mov edx, dword [esp + 0x10]
mov edx, dword [edx + 4]
lea ecx, [eax + eax*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x50e5e5
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 0x50e615
mov esi, dword [ecx + 8]
mov eax, esi
call fcn.004bf8c0
mov edi, eax
inc edi
push edi
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.0040dc50
add esp, 0xc
add dword [esp + 0x20], edi
jmp 0x50e627
test eax, eax
jl 0x50e62b
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
mov esi, dword [ecx + edx*8 + 0x10]
test esi, esi
jne 0x50e630
mov esi, 0x58aa84
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x91], 0
jne 0x50e64e
mov edi, dword [esp + 0x60]
call fcn.004f1a80
test eax, eax
je 0x50e6dc
mov eax, dword [ebp + 0x20]
add dword [esp + 0x30], 0x18
mov dword [eax + ebx*4], esi
mov eax, dword [esp + 0x2c]
mov cl, byte [eax + 0xc]
and cl, byte [esp + 0x3c]
mov edx, dword [ebp + 0x1c]
add eax, 0x18
mov byte [ebx + edx], cl
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x70]
inc ebx
cmp ebx, dword [eax]
jl 0x50e533
mov edi, dword [esp + 0x34]
test edi, edi
je 0x50e76f
xor ecx, ecx
xor esi, esi
cmp cx, word [edi + 0x32]
jae 0x50e783
jmp 0x50e6a0
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.004c7750
add esp, 4
test eax, eax
je 0x50e740
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x50e760
push str.expressions_prohibited_in_PRIMARY_KEY_and_UNIQUE_constraints
mov edi, esi
call fcn.004e0360
add esp, 4
test ebp, ebp
je 0x50e6eb
mov esi, dword [esp + 0x14]
mov edi, ebp
call fcn.004d2320
pop edi
pop ebx
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0xc]
push eax
push esi
call fcn.004d15b0
mov ecx, dword [esp + 0x70]
push ecx
push esi
call fcn.004d19a0
mov edx, dword [esp + 0x74]
push edx
mov eax, esi
call fcn.004c7a60
mov eax, dword [esp + 0x28]
add esp, 0x14
test eax, eax
je 0x50eaab
cmp dword [esi + 0x208], 0
je 0x50ea74
mov ecx, esi
call fcn.004bf640
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
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 0x50e6a0
jmp 0x50e783
mov edx, dword [ebp + 4]
or eax, 0xffffffff
mov word [edx + ebx*2], ax
mov ecx, dword [ebp + 0x20]
mov dword [ecx + ebx*4], 0x58aa84
mov esi, ebp
call fcn.004c77f0
mov esi, dword [esp + 0x60]
cmp dword [esi + 0x1e4], 0
jne 0x50e79e
mov edi, ebp
call fcn.004c76f0
mov eax, dword [esp + 0x10]
cmp eax, dword [esi + 0x1e4]
jne 0x50e81b
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x50e81b
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x50e814
movzx eax, ax
xor esi, esi
mov dword [esp + 0x34], eax
test eax, eax
jle 0x50e80e
mov edi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, edi
mov dword [esp + 0x3c], edx
mov ax, word [edx + edi]
cmp ax, word [edi]
jne 0x50e80e
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + esi*4]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + esi*4]
cmp eax, ecx
je 0x50e802
push ecx
push eax
call fcn.004bf990
add esp, 8
test eax, eax
jne 0x50e80e
mov edx, dword [esp + 0x3c]
movzx eax, word [ebx + 0x32]
inc esi
add edi, 2
cmp esi, eax
jl 0x50e7d7
cmp esi, dword [esp + 0x34]
je 0x50e849
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x50e7b1
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x91], 0
je 0x50e8a1
mov edx, dword [ebp]
mov ecx, dword [ebp + 0x18]
push edx
add ecx, 0x18
mov eax, ebp
call fcn.004cc540
add esp, 4
test eax, eax
je 0x50e884
mov byte [edi + 0x41], 1
jmp 0x50e6dc
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x50e87b
cmp al, 0xa
je 0x50e86f
cmp cl, 0xa
je 0x50e86f
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.004e0360
add esp, 8
cmp byte [ebx + 0x36], 0xa
jne 0x50e87b
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
mov dword [esp + 0x24], ebx
jmp 0x50e6dc
or dword [edi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x50ea08
mov eax, dword [edi + 0x8c]
mov dword [ebp + 0x2c], eax
jmp 0x50ea08
mov ecx, dword [esp + 0x10]
test byte [ecx + 0x2a], 0x20
je 0x50e8b6
cmp dword [esp + 0x6c], 0
je 0x50ea08
mov edi, dword [esp + 0x60]
inc dword [edi + 0x48]
mov edx, dword [edi + 0x48]
mov dword [esp + 0x34], edx
call fcn.004d8f30
mov edi, eax
mov dword [esp + 0x30], edi
test edi, edi
je 0x50e6dc
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x60]
push 1
mov ecx, esi
mov edx, ebx
call fcn.00508bd0
push 0
push 0
push 0
push 0xa1
push edi
call fcn.004cf760
push 0
mov dword [ebp + 0x2c], eax
mov eax, dword [esp + 0x50]
push eax
push esi
push 0x7a
push edi
call fcn.004cf760
add esp, 0x2c
cmp dword [esp + 0x78], 0
je 0x50e95f
mov eax, dword [ebx + 0x1fc]
add eax, dword [ebx + 0x1f8]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x50e934
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x59603e
je 0x50e945
mov edx, str._UNIQUE
mov edi, dword [esp + 0x14]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
mov esi, edi
call fcn.004e0090
add esp, 0x10
mov esi, eax
jmp 0x50e965
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x18], 1
mov eax, str.sqlite_temp_master
je 0x50e976
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
push esi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push ebx
call fcn.004e4120
add esp, 0x20
mov eax, esi
mov ecx, edi
call fcn.004bf680
cmp dword [esp + 0x6c], 0
je 0x50e9fc
mov eax, dword [esp + 0x34]
push eax
push ebp
mov eax, ebx
call fcn.004fe5d0
mov ecx, dword [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004d28d0
mov edx, dword [ebp]
push edx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.004e0090
mov esi, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x30]
call fcn.004d64d0
push 0
push 0
push 0
push 0x94
push esi
call fcn.004cf760
add esp, 0x2c
mov ecx, dword [ebp + 0x2c]
mov eax, dword [esp + 0x30]
call fcn.004cf9b0
cmp byte [edi + 0x91], 0
jne 0x50ea1c
cmp dword [esp + 0x6c], 0
jne 0x50e6dc
mov ecx, dword [esp + 0x10]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x50ea62
mov eax, dword [ecx + 8]
test eax, eax
je 0x50ea62
cmp byte [eax + 0x36], dl
je 0x50ea62
cmp dword [eax + 0x14], 0
je 0x50ea50
lea ecx, [ecx]
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x50ea50
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x50ea40
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x24], ebp
jmp 0x50e6eb
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x24], ebp
jmp 0x50e6eb
cmp eax, dword [esi + 0x114]
jb 0x50eaa2
cmp eax, dword [esi + 0x118]
jae 0x50eaa2
mov ecx, dword [esi + 0x110]
mov dword [eax], ecx
dec dword [esi + 0xfc]
mov dword [esi + 0x110], eax
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0x4c
ret
push eax
call fcn.004bf5d0
add esp, 4
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
add esp, 0x4c
ret