Function at 0x10108780
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 0x10108ae4
mov eax, dword [esp + 0x34]
add eax, 8
push eax
push ebx
push edi
call fcn.10124770
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x10108ae4
mov ecx, dword [eax + 0x3c]
mov esi, 0xffff8000
mov dword [esp + 0x1c], esi
test ecx, ecx
je 0x101087ec
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 0x101087ec
nop dword [eax]
lea eax, [eax + 0x10]
inc esi
cmp dword [eax], ecx
jne 0x101087e0
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 0x10108acf
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], eax
test eax, eax
je 0x1010884a
xor eax, eax
add ecx, 1
adc eax, eax
push eax
push ecx
push ebp
call fcn.10112e00
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x1010884c
push dword [esp + 0x14]
push dword [esp + 0x28]
push ebx
call fcn.1016b7f0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [eax + ebx], 0
jmp 0x1010884c
xor ebx, ebx
push ebx
call fcn.10113f40
add esp, 4
test ebx, ebx
je 0x10108ae4
push dword [esp + 0x30]
push ebx
push ebp
call fcn.1011b310
add esp, 0xc
test eax, eax
jne 0x10108ac4
push dword [esp + 0x30]
push ebx
push ebp
call fcn.1011b260
add esp, 0xc
test eax, eax
jne 0x10108ac4
push ebx
push dword [esp + 0x14]
push ebp
call fcn.10123630
add esp, 0xc
test eax, eax
jne 0x10108ac4
push dword [esp + 0x10]
push edi
call fcn.100f1d00
add esp, 8
test eax, eax
jne 0x10108ae4
push ebx
push str.table
push ebx
push edi
call fcn.1010e710
add esp, 0x10
test eax, eax
jne 0x10108ae4
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x2b], 2
mov eax, dword [ecx]
jne 0x10108903
push eax
push str.view__s_may_not_be_altered
push edi
call fcn.10114f40
push dword [esp + 0x40]
push ebp
call fcn.10134080
add esp, 0x14
push ebx
push ebp
call fcn.10112cf0
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.101095e0
add esp, 0x14
test eax, eax
jne 0x10108ae4
push dword [esp + 0x10]
push edi
call fcn.10147420
add esp, 8
test eax, eax
jne 0x10108ae4
mov eax, dword [esp + 0x10]
cmp byte [eax + 0x2b], 1
jne 0x10108957
push eax
push ebp
call fcn.101209a0
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.10120bf0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x10108ae4
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 0x101089b8
cmp ecx, 0xffffffff
jae 0x101089b4
mov al, byte [ecx]
inc ecx
cmp al, 0xc0
jb 0x101089ae
mov al, byte [ecx]
and al, 0xc0
cmp al, 0x80
jne 0x101089ae
mov al, byte [ecx + 1]
inc ecx
and al, 0xc0
cmp al, 0x80
je 0x101089a4
inc edx
cmp byte [ecx], 0
jne 0x10108990
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.10125310
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.10125310
add esp, 0x40
push dword [esp + 0x30]
push str.sqlite_sequence
push ebp
call fcn.1011b310
add esp, 0xc
test eax, eax
je 0x10108a2c
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.10125310
add esp, 0x14
cmp esi, 1
je 0x10108a4f
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.10125310
add esp, 0x20
cmp dword [esp + 0x18], 0
je 0x10108a87
inc dword [edi + 0x2c]
mov esi, dword [edi + 0x2c]
push ebx
push esi
push dword [esp + 0x2c]
call fcn.10144130
push 0xfffffffffffffff5
push dword [esp + 0x28]
push 0
push 0
push esi
push 0xb0
push dword [esp + 0x48]
call fcn.10139bc0
mov esi, dword [esp + 0x44]
add esp, 0x28
push 1
push esi
push edi
call fcn.10101120
push 0
push str.after_rename
push dword [esp + 0x3c]
push dword [esp + 0x48]
push edi
call fcn.10101a90
push dword [esp + 0x54]
push ebp
call fcn.10134080
add esp, 0x28
push ebx
push ebp
call fcn.10112cf0
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 0x101088de
push dword [esp + 0x34]
push ebp
call fcn.10134080
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push dword [esp + 0x34]
push ebp
call fcn.10134080
add esp, 8
test ebx, ebx
je 0x10108aff
push ebx
push ebp
call fcn.10112cf0
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret