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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx]
mov eax, dword [esi + 0x18]
push edi
xor edi, edi
cmp byte [esi + 0x45], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
jne 0x4a927f
mov eax, dword [ebp + 0xc]
push edi
add eax, 8
push ebx
call fcn.004ac500
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a927f
mov edi, dword [eax + 0x48]
mov eax, dword [ebx]
mov dword [esp + 0x14], 0xfff0bdc0
test edi, edi
je 0x4a8f64
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x14], 0
test ecx, ecx
jle 0x4a8f64
mov eax, dword [eax + 0x10]
add eax, 0xc
mov edi, edi
cmp dword [eax], edi
je 0x4a8f64
mov edx, dword [esp + 0x14]
inc edx
add eax, 0x10
mov dword [esp + 0x14], edx
cmp edx, ecx
jl 0x4a8f50
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x10]
add ecx, ecx
mov edi, dword [edx + ecx*8]
mov ecx, dword [ebp + 0x10]
or dword [esi + 0x18], 0x2000000
push esi
mov dword [esp + 0x20], edi
call fcn.004acdd0
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
je 0x4a927b
push edi
push eax
push esi
call fcn.004ac250
add esp, 0xc
test eax, eax
jne 0x4a92b5
mov ecx, dword [esp + 0xc]
push ecx
push esi
call fcn.004ac560
add esp, 8
test eax, eax
jne 0x4a92b5
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
push ebx
call fcn.004a8ea0
add esp, 4
test eax, eax
jne 0x4a9277
mov edi, dword [esp + 0xc]
mov esi, ebx
call fcn.004ad020
test eax, eax
jne 0x4a9277
mov esi, dword [esp + 0x20]
cmp dword [esi + 0xc], eax
je 0x4a9009
mov eax, dword [esi]
push eax
push str.view__s_may_not_be_altered
push ebx
call fcn.00472420
mov esi, dword [esp + 0x1c]
add esp, 0xc
jmp 0x4a927f
mov ecx, dword [esi]
mov edx, dword [esp + 0x1c]
push 0
push ecx
push edx
push 0x1a
mov eax, ebx
call fcn.004abc10
add esp, 0x10
test eax, eax
jne 0x4a9277
mov eax, esi
mov edi, ebx
call fcn.004af1f0
test eax, eax
jne 0x4a9277
cmp dword [esi + 0x38], eax
je 0x4a906a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4a9053
mov ecx, dword [esp + 0x10]
cmp dword [eax], ecx
je 0x4a9053
mov eax, dword [eax + 0x18]
test eax, eax
jne 0x4a9044
mov edx, dword [eax + 8]
mov dword [esp + 0x18], eax
mov eax, dword [edx]
cmp dword [eax + 0x4c], 0
jne 0x4a906a
mov dword [esp + 0x18], 0
mov edi, dword [ebx + 8]
test edi, edi
jne 0x4a9080
call fcn.004c5e20
mov edi, eax
test edi, edi
je 0x4a9277
xor ecx, ecx
cmp dword [esp + 0x18], ecx
mov eax, ebx
setne cl
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004b2110
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, ebx
call fcn.004addf0
cmp dword [esp + 0x18], 0
je 0x4a9136
inc dword [ebx + 0x2c]
mov eax, dword [ebx + 0x2c]
mov ebx, dword [esp + 0xc]
mov esi, edi
mov dword [esp + 0x14], eax
call fcn.0048e450
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
push 0x9e
push edi
call fcn.0048e3e0
mov ecx, dword [edi]
add esp, 0x14
cmp byte [ecx + 0x45], 0
jne 0x4a9120
test eax, eax
jns 0x4a90ed
mov eax, dword [edi + 0x88]
dec eax
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
cmp byte [eax + edx*4 + 1], 0
lea ecx, [eax + edx*4]
je 0x4a9112
mov edx, dword [esp + 0x18]
push edx
push edi
mov eax, 0xfffffff4
call fcn.0048ee80
add esp, 8
jmp 0x4a9120
mov eax, dword [esp + 0x18]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xf4
inc dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x78]
test eax, eax
jne 0x4a912c
mov eax, ecx
mov esi, dword [esp + 0x20]
mov byte [eax + 0x15], 1
mov ebx, ecx
mov ecx, dword [esi]
or edx, 0xffffffff
mov dword [esp + 0x18], ecx
call fcn.00472150
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
test dword [eax + 0x18], 0x4000
je 0x4a919a
push ebx
mov eax, esi
call fcn.004a8b60
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a919a
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
push str.sqlite_master
push edx
push str.UPDATE___w_._s_SET_sql__sqlite_rename_parent_sql___Q___Q__WHERE__s_
push ebx
call fcn.004ac1b0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
add esp, 0x1c
call fcn.0046f8d0
jmp 0x4a919e
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push edi
push edi
push edi
push edi
push edi
push str.sqlite_master
push edx
push str.UPDATE__Q._s_SET_sql__CASE_WHEN_type__trigger_THEN_sqlite_rename_trigger_sql___Q_ELSE_sqlite_rename_table_sql___Q__END__tbl_name___Q__name__CASE_WHEN_typetable_THEN__Q_WHEN_name_LIKE_sqlite_autoindex___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 ebx
call fcn.004ac1b0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
push eax
push str.sqlite_sequence
push ecx
call fcn.004ac250
add esp, 0xc
test eax, eax
je 0x4a91f7
mov edx, dword [esi]
mov eax, dword [esp + 0x1c]
push edx
push edi
push eax
push str.UPDATE___w_.sqlite_sequence_set_name___Q_WHERE_name___Q
push ebx
call fcn.004ac1b0
add esp, 0x14
push ebx
mov eax, esi
call fcn.004a8ba0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a9228
push eax
push edi
push edi
push str.UPDATE_sqlite_temp_master_SET_sql__sqlite_rename_trigger_sql___Q___tbl_name___Q_WHERE__s_
push ebx
call fcn.004ac1b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
add esp, 0x14
call fcn.0046f8d0
mov ecx, dword [esp + 0x10]
test dword [ecx + 0x18], 0x4000
je 0x4a926c
mov eax, esi
call fcn.004b8790
mov dword [esp + 0x20], eax
test eax, eax
je 0x4a926c
jmp 0x4a924a
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
cmp ecx, esi
je 0x4a9261
mov edx, dword [ecx]
push edx
push ecx
push ebx
call fcn.004a8c80
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4a9246
push edi
push esi
push ebx
call fcn.004a8c80
add esp, 0xc
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, esi
call fcn.004b1930
add esp, 4
test edi, edi
je 0x4a9313
cmp dword [esi + 0x1c8], 0
je 0x4a92ca
mov eax, edi
mov ecx, esi
call fcn.0046f850
mov edx, dword [esp + 0x24]
mov dword [esi + 0x18], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
push eax
push str.there_is_already_another_table_or_index_with_this_name:__s
push ebx
call fcn.00472420
add esp, 0xc
jmp 0x4a927b
cmp edi, dword [esi + 0x120]
jb 0x4a92fc
cmp edi, dword [esi + 0x124]
jae 0x4a92fc
mov eax, dword [esi + 0x11c]
mov ecx, dword [esp + 0x24]
mov dword [edi], eax
dec dword [esi + 0x108]
mov dword [esi + 0x11c], edi
mov dword [esi + 0x18], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0046f7e0
mov edx, dword [esp + 0x28]
add esp, 4
mov dword [esi + 0x18], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x24]
pop edi
mov dword [esi + 0x18], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret