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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ebp, dword [edi]
cmp byte [ebp + 0x57], bl
jne 0x10049b14
mov eax, dword [esp + 0x34]
add eax, 8
push eax
push ebx
push edi
call fcn.100656d0
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10049b14
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x1004981c
mov eax, dword [edi]
xor esi, esi
mov dword [esp + 0x1c], esi
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], ecx
je 0x1004981c
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x10049810
mov dword [esp + 0x1c], esi
mov eax, dword [ebp + 0x10]
mov ecx, esi
add ecx, ecx
mov eax, dword [eax + ecx*8]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x10049aff
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x1004987a
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
push ebp
call fcn.10053d40
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1004987c
push dword [esp + 0x14]
push dword [esp + 0x28]
push ebx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x1004987c
xor ebx, ebx
push ebx
call fcn.10054e80
add esp, 4
test ebx, ebx
je 0x10049b14
push dword [esp + 0x30]
push ebx
push ebp
call fcn.1005c250
add esp, 0xc
test eax, eax
jne 0x10049af4
push dword [esp + 0x30]
push ebx
push ebp
call fcn.1005c1a0
add esp, 0xc
test eax, eax
jne 0x10049af4
push ebx
push dword [esp + 0x14]
push ebp
call fcn.10064590
add esp, 0xc
test eax, eax
jne 0x10049af4
push dword [esp + 0x10]
push edi
call fcn.10032ec0
add esp, 8
test eax, eax
jne 0x10049b14
push ebx
push str.table
push ebx
push edi
call fcn.1004f650
add esp, 0x10
test eax, eax
jne 0x10049b14
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x2b], 2
mov eax, dword [ecx]
jne 0x10049933
push eax
push str.view__s_may_not_be_altered
push edi
call fcn.10055e80
push dword [esp + 0x40]
push ebp
call fcn.10074f30
add esp, 0x14
push ebx
push ebp
call fcn.10053c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push eax
push dword [esp + 0x38]
push 0x1a
push edi
call fcn.1004a610
add esp, 0x14
test eax, eax
jne 0x10049b14
push dword [esp + 0x10]
push edi
call fcn.100882f0
add esp, 8
test eax, eax
jne 0x10049b14
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x2b], 1
jne 0x10049987
push eax
push ebp
call fcn.10061900
xor edx, edx
add esp, 8
mov ecx, dword [eax + 8]
mov ecx, dword [ecx]
cmp dword [ecx + 0x4c], edx
cmove eax, edx
mov dword [esp + 0x18], eax
push edi
call fcn.10061b50
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x10049b14
mov ecx, dword [edi + 0x78]
mov edx, edi
mov eax, dword [esp + 0x10]
test ecx, ecx
cmovne edx, ecx
mov byte [edx + 0x15], 1
xor edx, edx
mov eax, dword [eax]
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
cmp byte [eax], dl
je 0x100499e8
cmp ecx, 0xffffffff
jae 0x100499e4
mov al, byte [ecx]
inc ecx
cmp al, 0xc0
jb 0x100499de
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x100499de
mov al, byte [ecx + 1]
inc ecx
and al, 0xc0
cmp al, 0x80
je 0x100499d4
inc edx
cmp byte [ecx], 0
jne 0x100499c0
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x14]
xor eax, eax
push ecx
cmp esi, 1
sete al
push eax
push ebx
push ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
push eax
push eax
push str.UPDATE___w_.sqlite_master_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q___d__WHERE__type_index_OR_tbl_name_Q_COLLATE_nocase_AND___name_NOT_LIKE_sqliteX____ESCAPE_X
push edi
call fcn.10066290
mov eax, dword [esp + 0x34]
push eax
push dword [esp + 0x44]
mov eax, ebx
push eax
push eax
push eax
push dword [esp + 0x64]
push str.UPDATE__Q.sqlite_master_SET_tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqliteX_autoindex___ESCAPE_X______AND_typeindex_THEN_sqlite_autoindex____Q__substr_name__d18__ELSE_name_END_WHERE_tbl_name_Q_COLLATE_nocase_AND__typetable_OR_typeindex_OR_typetrigger__
push edi
call fcn.10066290
add esp, 0x40
push dword [esp + 0x30]
push str.sqlite_sequence
push ebp
call fcn.1005c250
add esp, 0xc
test eax, eax
je 0x10049a5c
mov eax, dword [esp + 0x10]
push dword [eax]
push ebx
push dword [esp + 0x38]
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push edi
call fcn.10066290
add esp, 0x14
cmp esi, 1
je 0x10049a7f
mov eax, dword [esp + 0x30]
mov ecx, ebx
mov edx, dword [esp + 0x14]
push ecx
push eax
push edx
push ecx
push edx
push eax
push str.UPDATE_sqlite_temp_schema_SET_sql__sqlite_rename_table__Q__type__name__sql___Q___Q__1___tbl_name__CASE_WHEN_tbl_name_Q_COLLATE_nocase_AND___sqlite_rename_test__Q__sql__type__name__1__after_rename__0__THEN__Q_ELSE_tbl_name_END_WHERE_type_IN__view__trigger_
push edi
call fcn.10066290
add esp, 0x20
cmp dword [esp + 0x18], 0
je 0x10049ab7
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push ebx
push esi
push dword [esp + 0x2c]
call fcn.10084ff0
push 0xfffffffffffffff5
push dword [esp + 0x28]
push 0
push 0
push esi
push 0xb0
push dword [esp + 0x48]
call fcn.1007aa80
mov esi, dword [esp + 0x44]
add esp, 0x28
push 1
push esi
push edi
call fcn.10042150
push 0
push str.after_rename
push dword [esp + 0x3c]
push dword [esp + 0x48]
push edi
call fcn.10042ac0
push dword [esp + 0x54]
push ebp
call fcn.10074f30
add esp, 0x28
push ebx
push ebp
call fcn.10053c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push ebx
push str.there_is_already_another_table_or_index_with_this_name:__s
jmp 0x1004990e
push dword [esp + 0x34]
push ebp
call fcn.10074f30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push dword [esp + 0x34]
push ebp
call fcn.10074f30
add esp, 8
test ebx, ebx
je 0x10049b2f
push ebx
push ebp
call fcn.10053c30
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret