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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
add esp, 0xffffff80
mov dword [ebp - 0x44], 0
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x40], 0
mov eax, dword [eax]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x5c], eax
cmp dword [edx + 0x14], 0
jne 0x414a4e
call fcn.00406bc0
test eax, eax
jne 0x414a4e
cmp dword [ebp + 0x14], 0
je 0x414369
lea eax, [ebp - 0x40]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004128e5
add esp, 0x10
test eax, eax
mov dword [ebp - 0x64], eax
js 0x414a4e
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.00424230
pop ecx
test ebx, ebx
pop esi
mov dword [ebp - 0x50], eax
je 0x414320
mov eax, dword [ebx + 4]
shr eax, 1
test eax, eax
sete dl
xor eax, eax
cmp dword [ebp - 0x50], 0
setne al
test edx, eax
je 0x414320
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x50]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x2c]
cmp dword [edx + 0x3c], eax
jne 0x414320
mov dword [ebp - 0x64], 1
push dword [ebp - 0x40]
push 0x63d329
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x64]
push dword [ebp + 8]
push ebx
call fcn.0041d33a
add esp, 0x14
test eax, eax
je 0x414349
push dword [ebp + 0x14]
push ebx
call fcn.0041d472
pop eax
pop edx
mov ecx, dword [ebp + 0x14]
push dword [ecx + 4]
push dword [ecx + 8]
push dword [ebp + 8]
call fcn.00412348
add esp, 0xc
test eax, eax
mov dword [ebp - 0x50], eax
jne 0x41438d
jmp 0x414a4e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x414a4e
push dword [eax + 0x3c]
push dword [ebp - 0x5c]
call fcn.00415b58
pop esi
pop edi
mov dword [ebp - 0x64], eax
imul edx, dword [ebp - 0x64], 0x18
mov ecx, dword [ebp - 0x5c]
mov ecx, dword [ecx + 4]
add edx, ecx
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x50], 0
je 0x414a4e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0
jne 0x414a4e
mov edx, dword [ebp - 0x50]
cmp byte [edx + 0x1c], 0
je 0x4143c9
push dword [edx]
push str.table__s_may_not_be_indexed
push eax
jmp 0x414474
mov ecx, dword [ebp - 0x50]
cmp dword [ecx + 0x18], 0
je 0x4143e6
push str.views_may_not_be_indexed
push dword [ebp + 8]
call fcn.004061a4
pop ecx
pop ebx
jmp 0x414a4e
mov eax, dword [ebp - 0x40]
test eax, eax
je 0x41449f
push eax
call fcn.004127e2
push dword [ebp + 8]
mov dword [ebp - 0x44], eax
call fcn.00415b2c
pop edi
test eax, eax
pop edx
jne 0x414a4e
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x414a4e
push eax
push dword [ebp + 8]
call fcn.00412936
pop ebx
test eax, eax
pop esi
jne 0x414a4e
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 0x44], 0
jne 0x4144ed
push dword [ebp + 8]
call fcn.00415b2c
pop ecx
test eax, eax
jne 0x414a4e
mov edx, dword [ebp - 0x60]
push dword [edx]
push dword [ebp - 0x44]
push dword [ebp - 0x5c]
call fcn.004123ae
add esp, 0xc
test eax, eax
je 0x414481
cmp dword [ebp + 0x2c], 0
jne 0x414a4e
push dword [ebp - 0x44]
push str.index__s_already_exists
push dword [ebp + 8]
call fcn.004061a4
add esp, 0xc
jmp 0x414a4e
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x5c]
call fcn.004122cb
add esp, 0xc
test eax, eax
je 0x4144ed
push dword [ebp - 0x44]
push str.there_is_already_a_table_named__s
jmp 0x414471
mov ecx, dword [ebp - 0x50]
mov edx, 1
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4144b4
mov eax, dword [eax + 0x20]
inc edx
jmp 0x4144aa
lea ebx, [ebp - 0x3c]
push edx
push 0x63d39e
push ebx
call sub.msvcrt.dll_sprintf
mov eax, dword [ebp - 0x50]
push 0
push ebx
push dword [eax]
lea eax, [ebp - 0x44]
push str.sqlite_autoindex_
push eax
mov dword [ebp - 0x44], 0
call fcn.00406c82
add esp, 0x20
cmp dword [ebp - 0x44], 0
je 0x414a4e
mov edx, dword [ebp - 0x60]
mov eax, 0x63cf27
cmp dword [ebp - 0x64], 1
mov ebx, dword [edx]
push ebx
push 0
je 0x414505
mov eax, 0x63cf3a
push eax
push 0x12
push dword [ebp + 8]
call fcn.004296a6
add esp, 0x14
test eax, eax
jne 0x414a4e
mov ecx, dword [ebp - 0x50]
push ebx
cmp dword [ebp - 0x64], 1
push dword [ecx]
sete al
push dword [ebp - 0x44]
movzx esi, al
lea esi, [esi + esi + 1]
push esi
push dword [ebp + 8]
call fcn.004296a6
add esp, 0x14
test eax, eax
jne 0x414a4e
cmp dword [ebp + 0x18], 0
jne 0x414599
mov edx, dword [ebp - 0x50]
or ecx, 0xffffffff
cld
imul eax, dword [edx + 4], 0x14
add eax, dword [edx + 8]
mov edi, dword [eax - 0x14]
xor eax, eax
mov dword [ebp - 0x4c], edi
repne scasb al, byte es:[edi]
not ecx
mov eax, dword [ebp - 0x48]
lea ecx, [ecx + ecx - 2]
and eax, 1
or eax, ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
call fcn.004221fd
add esp, 0xc
test eax, eax
mov dword [ebp + 0x18], eax
je 0x414a4e
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0x28]
mov byte [edx + 8], al
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx]
test eax, eax
jle 0x4145cb
xor edx, edx
mov esi, eax
mov ecx, dword [ebp + 0x18]
mov eax, dword [ecx + 0xc]
mov eax, dword [edx + eax]
test eax, eax
je 0x4145c5
mov eax, dword [eax + 4]
or ecx, 0xffffffff
cld
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add dword [ebp - 0x6c], ecx
add edx, 0xc
dec esi
jne 0x4145a6
cld
mov edi, dword [ebp - 0x44]
xor eax, eax
or ecx, 0xffffffff
mov edx, dword [ebp - 0x6c]
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 0x18]
not ecx
mov ebx, dword [eax]
push 1
lea esi, [ecx - 1]
lea eax, [ebx + ebx*2]
lea eax, [ebx + eax*4]
add eax, esi
lea eax, [eax + edx + 0x35]
push eax
call fcn.00406d85
mov dword [ebp - 0x54], eax
call fcn.00406bc0
pop edi
test eax, eax
pop edx
jne 0x414a40
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
lea edx, [ebx*4]
add eax, 0x30
mov dword [ecx + 0x2c], eax
add eax, edx
mov dword [ecx + 8], eax
add eax, edx
mov dword [ecx + 0xc], eax
lea eax, [eax + edx + 4]
mov dword [ecx + 0x28], eax
add eax, ebx
mov dword [ecx], eax
push dword [ebp - 0x44]
push dword [ecx]
lea eax, [eax + esi + 1]
mov dword [ebp - 0x70], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov cl, byte [ebp + 0x1c]
mov byte [edx + 0x18], cl
mov dword [edx + 4], eax
pop ebx
pop esi
cmp dword [ebp - 0x40], 0
sete byte [edx + 0x19]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov edx, dword [eax + 4]
imul eax, dword [ebp - 0x64], 0x18
mov eax, dword [eax + edx + 0x14]
mov edx, dword [ebp - 0x54]
mov dword [edx + 0x24], eax
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp + 0x18]
mov edx, dword [edx + 0xc]
mov al, byte [eax + 0x78]
mov dword [ebp - 0x68], edx
cmp al, 4
sbb eax, eax
xor esi, esi
not eax
cmp esi, dword [ecx]
mov dword [ebp - 0x58], eax
jge 0x41477a
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x68]
xor edi, edi
mov eax, dword [eax + 4]
cmp edi, dword [edx + 4]
mov dword [ebp - 0x80], eax
mov ebx, dword [edx + 8]
jge 0x414a09
push dword [ebx]
push dword [ebp - 0x80]
call fcn.0040625a
pop edx
test eax, eax
pop ecx
je 0x4146d8
mov ecx, dword [ebp - 0x50]
inc edi
add ebx, 0x14
cmp edi, dword [ecx + 4]
jmp 0x4146b6
mov eax, dword [ebp - 0x50]
cmp edi, dword [eax + 4]
jge 0x414a09
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov dword [eax + esi*4], edi
mov eax, dword [ecx]
test eax, eax
je 0x41471a
mov eax, dword [eax + 4]
mov ebx, dword [ebp - 0x70]
mov edi, ebx
push dword [eax]
push ebx
call sub.msvcrt.dll_strcpy
cld
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
pop eax
lea ecx, [ebx + ecx]
mov dword [ebp - 0x70], ecx
jmp 0x414733
mov eax, dword [ebp - 0x50]
mov edx, dword [eax + 8]
imul eax, edi, 0x14
mov ebx, dword [eax + edx + 0xc]
test ebx, ebx
jne 0x414733
mov edx, dword [ebp - 0x5c]
mov eax, dword [edx + 0x18]
mov ebx, dword [eax]
mov ecx, dword [ebp - 0x5c]
cmp byte [ecx + 0x44], 0
jne 0x414752
push 0xffffffffffffffff
push ebx
push dword [ebp + 8]
call fcn.00412c34
add esp, 0xc
test eax, eax
je 0x414a40
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 0x2c]
mov edx, dword [edx + 0x28]
mov dword [eax + esi*4], ebx
movzx eax, byte [ecx + 8]
and eax, dword [ebp - 0x58]
mov byte [esi + edx], al
inc esi
mov eax, dword [ebp + 0x18]
add dword [ebp - 0x68], 0xc
cmp esi, dword [eax]
jmp 0x41469c
push dword [ebp - 0x54]
call fcn.00413af9
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x50]
pop ebx
cmp ecx, dword [edx + 0xa0]
jne 0x41484e
mov ebx, dword [ecx + 0x10]
test ebx, ebx
je 0x41484e
mov edx, dword [ebp - 0x54]
mov eax, dword [ebx + 4]
cmp eax, dword [edx + 4]
jne 0x414846
xor esi, esi
cmp esi, eax
jge 0x4147fd
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebx + 8]
mov edi, dword [eax + esi*4]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + esi*4]
mov eax, dword [ebp - 0x54]
mov eax, dword [eax + 8]
mov eax, dword [eax + esi*4]
cmp dword [edx + esi*4], eax
jne 0x4147fd
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x28]
mov eax, dword [ebx + 0x28]
mov dl, byte [esi + edx]
cmp byte [esi + eax], dl
jne 0x4147fd
cmp edi, ecx
je 0x4147f7
push ecx
push edi
call fcn.0040625a
pop edx
test eax, eax
pop ecx
jne 0x4147fd
inc esi
cmp esi, dword [ebx + 4]
jmp 0x4147b3
cmp esi, dword [ebx + 4]
jne 0x414846
mov ecx, dword [ebp - 0x54]
mov al, byte [ebx + 0x18]
mov dl, byte [ecx + 0x18]
cmp al, dl
je 0x414a40
cmp al, 0x63
je 0x41482e
cmp dl, 0x63
je 0x41482e
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push dword [ebp + 8]
call fcn.004061a4
add esp, 0xc
cmp byte [ebx + 0x18], 0x63
jne 0x414a40
mov edx, dword [ebp - 0x54]
mov al, byte [edx + 0x18]
mov byte [ebx + 0x18], al
jmp 0x414a40
mov ebx, dword [ebx + 0x20]
jmp 0x414798
mov ecx, dword [ebp - 0x5c]
cmp byte [ecx + 0x44], 0
je 0x4148a5
push dword [ebp - 0x54]
mov eax, dword [ebp - 0x54]
or ecx, 0xffffffff
cld
mov edi, dword [eax]
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [ebp - 0x54]
not ecx
push ecx
push dword [edx]
mov eax, dword [edx + 0x24]
add eax, 0x20
push eax
call fcn.0040b03a
add esp, 0x10
test eax, eax
jne 0x414a40
mov ecx, dword [ebp - 0x5c]
or dword [ecx + 8], 0x10
cmp dword [ebp + 0x14], 0
je 0x4149cb
mov edx, dword [ebp - 0x54]
mov eax, dword [ecx + 0x40]
mov dword [edx + 0x14], eax
jmp 0x4149cb
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
lea eax, [edi + 1]
mov dword [ecx + 0x1c], eax
push ecx
call fcn.00425a46
mov ebx, eax
pop eax
test ebx, ebx
je 0x414a40
push dword [ebp - 0x64]
push 1
push dword [ebp + 8]
call fcn.00414206
push 0
push dword [ebp - 0x64]
push 0x1c
push ebx
call fcn.00406f71
push 0
push edi
push 0x76
push ebx
call fcn.00406f71
add esp, 0x2c
cmp dword [ebp + 0x20], 0
setne dl
xor eax, eax
cmp dword [ebp + 0x24], 0
setne al
xor esi, esi
test edx, eax
je 0x41492e
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp + 0x24]
push dword [edx]
mov eax, dword [ecx]
sub eax, dword [edx]
inc eax
push eax
mov eax, 0x63d00c
cmp dword [ebp + 0x1c], 0
je 0x41491e
mov eax, str._UNIQUE
push eax
push str.CREATE_s_INDEX__.s
call fcn.00417207
add esp, 0x10
mov esi, eax
mov eax, dword [ebp - 0x50]
push esi
mov edx, dword [ebp - 0x54]
push dword [eax]
cmp dword [ebp - 0x64], 1
push dword [edx]
mov eax, 0x63cf27
je 0x414949
mov eax, 0x63cf3a
push eax
mov ecx, dword [ebp - 0x5c]
imul eax, dword [ebp - 0x64], 0x18
mov edx, dword [ecx + 4]
push dword [eax + edx]
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q_0__Q__
push dword [ebp + 8]
call fcn.00412260
push 0
push 1
push 0xa
push ebx
call fcn.00406f71
add esp, 0x2c
push esi
call fcn.00406120
pop esi
cmp dword [ebp + 0x14], 0
je 0x4149cb
push edi
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp + 8]
call fcn.00413958
push dword [ebp - 0x64]
push ebx
push dword [ebp - 0x5c]
call fcn.00412d32
mov eax, dword [ebp - 0x54]
push 0xffffffffffffffff
push dword [eax]
push str.name_q
call fcn.00417207
pop edx
pop ecx
push eax
push 0
push dword [ebp - 0x64]
push 0x1a
push ebx
call fcn.0040733c
add esp, 0x28
push 0
push 0
push 0xd
push ebx
call fcn.00406f71
add esp, 0x10
mov edx, dword [ebp - 0x5c]
cmp byte [edx + 0x44], 0
setne dl
cmp dword [ebp + 0x14], 0
sete al
or eax, edx
test al, 1
je 0x414a40
cmp dword [ebp + 0x1c], 5
jne 0x4149f8
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x10]
test eax, eax
je 0x4149f8
cmp byte [eax + 0x18], 5
jne 0x414a29
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x20], eax
mov dword [edx + 0x10], ecx
jmp 0x414a4e
push dword [ebp - 0x80]
mov eax, dword [ebp - 0x50]
push dword [eax]
push str.table__s_has_no_column_named__s
push dword [ebp + 8]
call fcn.004061a4
add esp, 0x10
jmp 0x414a40
cmp byte [eax + 0x18], 5
je 0x414a32
mov edx, eax
mov eax, dword [eax + 0x20]
test eax, eax
jne 0x414a23
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x20]
mov dword [ecx + 0x20], eax
mov dword [edx + 0x20], ecx
jmp 0x414a4e
cmp dword [ebp - 0x54], 0
je 0x414a4e
mov eax, dword [ebp - 0x54]
call fcn.00412426
push dword [ebp + 0x18]
call fcn.00421bcc
push dword [ebp + 0x14]
call fcn.00413c2e
push dword [ebp - 0x44]
call fcn.00406120
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret