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

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov ebx, dword [edi]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x1e], al
jne 0x4973c6
cmp byte [edi + 0x210], al
jne 0x4973c6
push edi
call fcn.004a3656
pop ecx
test eax, eax
jne 0x4973c6
mov esi, dword [esp + 0x74]
test esi, esi
je 0x4973cf
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x74]
push dword [esp + 0x74]
push edi
call fcn.004a6fbf
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x14], ebp
test ebp, ebp
js 0x4973c6
cmp byte [ebx + 0x7c], 0
jne 0x49737c
push esi
push edi
call fcn.004a6401
pop ecx
pop ecx
mov ecx, dword [esp + 0x70]
cmp dword [ecx + 4], 0
jne 0x49737c
test eax, eax
je 0x49737c
mov ecx, dword [ebx + 8]
mov eax, dword [eax + 0x44]
push 1
cmp eax, dword [ecx + 0x1c]
pop eax
cmove ebp, eax
mov dword [esp + 0x14], ebp
push dword [esp + 0x1c]
lea eax, [esp + 0x58]
push str.index
push ebp
push edi
push eax
call fcn.0049b84f
add esp, 0x14
test eax, eax
je 0x4973a5
lea eax, [esp + 0x54]
push esi
push eax
call fcn.0049b8e7
pop ecx
pop ecx
push dword [esi + 8]
push dword [esi + 0xc]
push 0
push edi
call fcn.0049efa5
mov esi, eax
mov dword [esp + 0x34], eax
add esp, 0x10
test esi, esi
je 0x4973c6
cmp byte [ebx + 0x1e], 0
je 0x4973ee
mov ebp, dword [esp + 0x78]
jmp 0x497abc
mov esi, dword [edi + 0x1fc]
mov dword [esp + 0x24], esi
test esi, esi
je 0x4973c6
push dword [esi + 0x44]
push ebx
call fcn.004a4a44
pop ecx
mov ebp, eax
pop ecx
mov dword [esp + 0x14], ebp
mov eax, dword [ebx + 8]
mov ecx, ebp
shl ecx, 4
add eax, ecx
mov dword [esp + 0x3c], ecx
push 7
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push str.sqlite_
push eax
mov dword [esp + 0x44], eax
call fcn.0047b363
add esp, 0xc
test eax, eax
jne 0x49744a
mov eax, dword [esi]
push 9
add eax, 7
push str.altertab_
push eax
call fcn.004bccbc
add esp, 0xc
test eax, eax
je 0x49744a
push dword [esp + 0x38]
push str.table__s_may_not_be_indexed
push edi
call fcn.00498e9a
add esp, 0xc
jmp 0x4973c6
cmp dword [esi + 0x1c], 0
je 0x497462
push str.views_may_not_be_indexed
push edi
call fcn.00498e9a
pop ecx
pop ecx
jmp 0x4973c6
test byte [esi + 0x22], 0x10
je 0x49746f
push str.virtual_tables_may_not_be_indexed
jmp 0x497455
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x497501
push eax
push ebx
call fcn.0049f78c
mov dword [esp + 0x18], eax
pop ecx
pop ecx
test eax, eax
je 0x4973c6
push eax
push edi
call fcn.00496334
pop ecx
pop ecx
test eax, eax
jne 0x4973c6
cmp byte [ebx + 0x7c], al
jne 0x4974c6
push eax
push dword [esp + 0x14]
push ebx
call fcn.0049b3cb
add esp, 0xc
test eax, eax
je 0x4974c6
push dword [esp + 0x10]
push str.there_is_already_a_table_named__s
jmp 0x49743c
mov eax, dword [esp + 0x28]
push dword [eax]
push dword [esp + 0x14]
push ebx
call fcn.0049b34a
add esp, 0xc
test eax, eax
je 0x49752f
cmp dword [esp + 0x8c], 0
jne 0x4974f5
push dword [esp + 0x10]
push str.index__s_already_exists
jmp 0x49743c
push ebp
push edi
call fcn.00496b6f
jmp 0x49745b
mov eax, dword [esi + 0x10]
xor ecx, ecx
inc ecx
jmp 0x49750d
mov eax, dword [eax + 0x20]
inc ecx
test eax, eax
jne 0x497509
mov eax, dword [esi]
push ecx
push eax
push str.sqlite_autoindex__s__d
push ebx
call fcn.0049f0cd
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
je 0x4973c6
mov eax, dword [esp + 0x28]
mov edx, str.sqlite_master
cmp ebp, 1
mov ecx, dword [eax]
mov eax, str.sqlite_temp_master
push ecx
push 0
cmovne eax, edx
mov dword [esp + 0x40], ecx
push eax
push 0x12
push edi
call fcn.004934d6
add esp, 0x14
test eax, eax
jne 0x4973c6
push 3
pop ecx
push dword [esp + 0x38]
xor edx, edx
push dword [esi]
inc edx
push dword [esp + 0x18]
cmp ebp, edx
mov eax, edx
cmove eax, ecx
push eax
push edi
call fcn.004934d6
add esp, 0x14
test eax, eax
jne 0x4973c6
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x20], ebp
test ebp, ebp
jne 0x4975e5
imul ecx, dword [esi + 8], 0x18
mov eax, dword [esi + 0xc]
mov eax, dword [ecx + eax - 0x18]
push eax
mov dword [esp + 0x50], eax
call fcn.004a6b98
push ebp
push ebp
push edi
mov dword [esp + 0x60], eax
call fcn.0049aad6
mov ebp, eax
mov dword [esp + 0x30], eax
add esp, 0x10
test ebp, ebp
je 0x497abc
push 0
lea eax, [esp + 0x50]
push eax
push ebp
push edi
call fcn.0049ad36
mov ecx, dword [ebp + 0xc]
add esp, 0x10
mov al, byte [esp + 0x88]
mov byte [ecx + 0xc], al
mov edx, dword [ebp]
mov dword [esp + 0x38], edx
test edx, edx
jle 0x49762c
mov ebp, dword [ebp + 0xc]
mov ecx, edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov eax, dword [ebp]
test eax, eax
je 0x49761a
mov eax, dword [eax + 0x14]
test eax, eax
je 0x49761a
push dword [eax]
call fcn.004a6b98
pop ecx
mov ecx, dword [esp + 0x30]
inc ebx
add ebx, eax
add ebp, 0x14
dec ecx
mov dword [esp + 0x30], ecx
jne 0x4975fd
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x34]
push dword [esp + 0x10]
call fcn.004a6b98
mov ecx, eax
imul eax, edx, 0xd
mov dword [esp + 0x34], ecx
add eax, ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x35
add eax, ecx
push eax
push ebx
call fcn.00497d5f
add esp, 0xc
mov ebp, eax
cmp byte [ebx + 0x1e], 0
mov dword [esp + 0x48], ebp
jne 0x497aa1
mov ecx, dword [esp + 0x38]
lea eax, [ebp + 0x30]
mov dword [ebp + 0xc], eax
lea eax, [eax + ecx*4]
add eax, 4
mov dword [ebp + 0x2c], eax
lea eax, [eax + ecx*4]
mov dword [ebp + 8], eax
lea eax, [eax + ecx*4]
add ecx, eax
mov dword [ebp + 0x28], eax
mov eax, dword [esp + 0x30]
mov dword [ebp], ecx
lea edx, [eax + 1]
add edx, ecx
inc eax
push eax
push dword [esp + 0x14]
mov dword [esp + 0x34], edx
push ecx
call fcn.004be440
mov ecx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov edx, dword [esp + 0x3c]
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x7c]
mov byte [ebp + 0x18], al
sete al
mov byte [ebp + 0x19], al
mov eax, dword [ebx + 8]
mov eax, dword [edx + eax + 0xc]
mov dword [ebp + 0x24], eax
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0xc]
cmp byte [eax + 0x4c], 4
sbb eax, eax
xor edx, edx
neg eax
mov dword [esp + 0x30], edx
dec eax
mov dword [esp + 0x4c], eax
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
cmp dword [ecx], edx
jle 0x497801
mov eax, dword [esi + 0xc]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x38], eax
test eax, eax
jle 0x497750
mov esi, dword [esp + 0x44]
mov edi, ecx
mov ebp, dword [esp + 0x18]
mov ebx, eax
push dword [esi]
push dword [ebp + 4]
call fcn.004a6b59
pop ecx
pop ecx
test eax, eax
je 0x497730
inc edi
add esi, 0x18
cmp edi, ebx
jl 0x497718
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, eax
jge 0x4978da
mov eax, dword [ebp + 8]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
test eax, eax
je 0x49779a
mov edx, dword [eax + 0x14]
test edx, edx
je 0x49779a
push dword [edx]
call fcn.004a6b98
lea esi, [eax + 1]
push esi
push dword [edx]
push dword [esp + 0x38]
call fcn.004be440
mov ecx, dword [esp + 0x3c]
add esp, 0x10
mov eax, ecx
add ecx, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
jmp 0x4977b1
mov eax, dword [esi + 0xc]
imul ecx, ecx, 0x18
mov eax, dword [ecx + eax + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x4977b5
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
cmp byte [ebx + 0x7c], 0
jne 0x4977cc
push eax
push edi
call fcn.0049ef33
pop ecx
pop ecx
test eax, eax
je 0x497aa1
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x18]
add dword [esp + 0x18], 0x14
mov cl, byte [eax + 0xc]
mov eax, dword [ebp + 0x28]
and cl, byte [esp + 0x4c]
mov byte [edx + eax], cl
inc edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], edx
cmp edx, dword [eax]
jl 0x4976f8
push ebp
call fcn.00497ec2
pop ecx
cmp esi, dword [edi + 0x1fc]
jne 0x4978a4
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], edx
test edx, edx
je 0x4978a4
mov eax, dword [ebp + 4]
cmp dword [edx + 4], eax
jne 0x497899
xor eax, eax
mov dword [esp + 0x30], eax
cmp eax, dword [edx + 4]
jge 0x497894
mov eax, dword [ebp + 8]
mov ebx, dword [edx + 8]
sub eax, ebx
mov edi, dword [esp + 0x30]
mov esi, eax
mov dword [esp + 0x4c], eax
lea ecx, [ebx + edi*4]
mov eax, dword [ecx]
cmp eax, dword [esi + ecx]
jne 0x49787d
mov eax, dword [edx + 0x2c]
mov ecx, dword [eax + edi*4]
mov eax, dword [ebp + 0x2c]
cmp ecx, dword [eax + edi*4]
je 0x497873
push dword [eax + edi*4]
push ecx
call fcn.004a6b59
pop ecx
pop ecx
test eax, eax
jne 0x49787d
mov edx, dword [esp + 0x18]
inc edi
mov dword [esp + 0x30], edi
cmp edi, dword [edx + 4]
jl 0x497848
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x68]
mov ebx, dword [esp + 0x34]
mov esi, dword [esp + 0x24]
cmp eax, dword [edx + 4]
je 0x4978fc
mov eax, dword [ebp + 4]
mov edx, dword [edx + 0x20]
mov dword [esp + 0x18], edx
test edx, edx
jne 0x497826
cmp byte [ebx + 0x7c], 0
je 0x49795a
push ebp
push dword [ebp]
call fcn.004a6b98
pop ecx
push eax
mov eax, dword [ebp + 0x24]
push dword [ebp]
add eax, 0x18
push eax
call fcn.0049d4d4
add esp, 0x10
test eax, eax
je 0x49793c
xor eax, eax
inc eax
mov byte [ebx + 0x1e], al
jmp 0x497aa1
mov eax, dword [esp + 0x18]
push dword [eax + 4]
push dword [esi]
push str.table__s_has_no_column_named__s
push edi
call fcn.00498e9a
xor eax, eax
add esp, 0x10
inc eax
mov byte [edi + 0x12], al
jmp 0x497aa1
mov al, byte [edx + 0x18]
mov cl, byte [ebp + 0x18]
cmp al, cl
je 0x497aa1
cmp al, 0x63
je 0x497927
cmp cl, 0x63
je 0x497927
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
push edi
call fcn.00498e9a
mov edx, dword [esp + 0x24]
add esp, 0xc
cmp byte [edx + 0x18], 0x63
jne 0x497aa1
mov al, byte [ebp + 0x18]
mov byte [edx + 0x18], al
jmp 0x497aa1
or dword [ebx + 0xc], 0x200
mov eax, dword [esp + 0x74]
test eax, eax
je 0x497a74
mov eax, dword [ebx + 0x78]
mov dword [ebp + 0x14], eax
jmp 0x497a70
inc dword [edi + 0x48]
mov eax, dword [edi + 0x48]
push edi
mov dword [esp + 0x6c], eax
call fcn.0049d3e9
mov dword [esp + 0x38], eax
pop ecx
test eax, eax
je 0x497aa1
push dword [esp + 0x14]
xor eax, eax
inc eax
push eax
push edi
call fcn.00493e37
push dword [esp + 0x74]
push dword [esp + 0x24]
push 0x68
push dword [esp + 0x4c]
call fcn.004a8e4a
add esp, 0x1c
cmp dword [esp + 0x80], 0
je 0x4979de
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x84]
push dword [ecx]
mov eax, dword [eax]
sub eax, dword [ecx]
mov ecx, str._UNIQUE
inc eax
cmp dword [esp + 0x80], 0
push eax
mov eax, 0x4d6930
cmovne eax, ecx
push eax
push str.CREATE_s_INDEX__.s
push ebx
call fcn.0049f0cd
add esp, 0x14
jmp 0x4979e0
xor eax, eax
cmp dword [esp + 0x14], 1
mov edx, str.sqlite_master
push eax
push dword [esp + 0x6c]
mov ecx, str.sqlite_temp_master
mov dword [esp + 0x40], eax
push dword [esi]
mov eax, dword [ebx + 8]
cmovne ecx, edx
push dword [ebp]
push ecx
mov ecx, dword [esp + 0x50]
push dword [ecx + eax]
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
push edi
call fcn.0049f7b6
push dword [esp + 0x58]
push ebx
call fcn.00497c57
mov eax, dword [esp + 0x9c]
add esp, 0x28
test eax, eax
je 0x497a74
push dword [esp + 0x68]
push ebp
push edi
call fcn.004a3797
push dword [esp + 0x20]
push edi
call fcn.004962e9
push dword [ebp]
push str.name_q_AND_typeindex
push ebx
call fcn.0049f0cd
mov edi, dword [esp + 0x54]
push eax
push dword [esp + 0x38]
push edi
call fcn.004a8fb0
push 0
push 0x81
push edi
call fcn.004a8e31
add esp, 0x38
mov eax, dword [esp + 0x74]
cmp byte [ebx + 0x7c], 0
jne 0x497a7e
test eax, eax
jne 0x497aa1
cmp dword [esp + 0x7c], 5
jne 0x497a92
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x497a92
cmp byte [ecx + 0x18], 5
jne 0x497af1
mov eax, dword [esi + 0x10]
mov dword [ebp + 0x20], eax
mov dword [esi + 0x10], ebp
mov dword [esp + 0x40], ebp
xor ebp, ebp
test ebp, ebp
je 0x497ab8
push dword [ebp + 0x1c]
push ebx
call fcn.00497c57
push ebp
push ebx
call fcn.00497c57
add esp, 0x10
mov ebp, dword [esp + 0x20]
push ebp
push ebx
call fcn.0049abee
push dword [esp + 0x7c]
push ebx
call fcn.004a60fd
push dword [esp + 0x20]
push ebx
call fcn.00497c57
mov eax, dword [esp + 0x58]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
mov eax, dword [ecx + 0x20]
cmp byte [eax + 0x18], 5
je 0x497af7
mov ecx, eax
cmp dword [ecx + 0x20], 0
jne 0x497ae6
mov eax, dword [ecx + 0x20]
mov dword [ebp + 0x20], eax
mov dword [ecx + 0x20], ebp
jmp 0x497a9b