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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
cmp dword [ebp + 0x10], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
push edi
mov dword [esp + 0x18], ebx
jne 0x4ae8c5
cmp dword [ebp + 0x18], 0
je 0x4aedb1
mov edi, dword [esi + 0x1b0]
mov dword [esp + 0x10], edi
test edi, edi
je 0x4aedb1
cmp byte [ebx + 0x99], 0
je 0x4ae8f1
mov eax, dword [ebx + 0x94]
mov dword [edi + 0x1c], eax
cmp eax, 1
jne 0x4ae8f1
or dword [edi + 0x24], eax
test byte [ebp + 0x14], 0x20
je 0x4ae93a
mov eax, dword [edi + 0x24]
test al, 8
je 0x4ae913
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push esi
call fcn.00472420
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x4ae92a
mov eax, dword [edi]
push eax
push str.PRIMARY_KEY_missing_on_table__s
push esi
call fcn.00472420
add esp, 0xc
jmp 0x4ae93a
or eax, 0x60
push edi
push esi
mov dword [edi + 0x24], eax
call fcn.004ae420
add esp, 8
mov edx, dword [edi + 0x48]
mov dword [esp + 0x14], 0xfff0bdc0
test edx, edx
je 0x4ae972
cmp dword [ebx + 0x14], 0
mov dword [esp + 0x14], 0
jle 0x4ae972
mov eax, dword [ebx + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x4ae972
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x10
mov dword [esp + 0x14], ecx
cmp ecx, dword [ebx + 0x14]
jl 0x4ae95d
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4ae994
push 4
mov ebx, eax
mov eax, dword [esp + 0x14]
push esi
xor edi, edi
call fcn.004a0c50
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
add esp, 8
push edi
call fcn.004ae210
mov eax, dword [edi + 8]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4ae9ce
jmp 0x4ae9b4
mov eax, dword [esp + 0x1c]
mov ebx, eax
call fcn.004ae310
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x14]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4ae9b0
mov ebx, dword [esp + 0x18]
cmp byte [ebx + 0x99], 0
jne 0x4aed2b
mov edi, dword [esi + 8]
test edi, edi
jne 0x4ae9f3
mov ebx, esi
call fcn.004c5e20
mov edi, eax
test edi, edi
je 0x4aedb1
push 0
push 0
push 0
push 0x70
push edi
call fcn.0048e3e0
mov edx, dword [esp + 0x24]
add esp, 0x14
cmp dword [edx + 0xc], 0
jne 0x4aea20
mov dword [esp + 0x24], str.table
mov dword [esp + 0x20], str.TABLE
jmp 0x4aea30
mov dword [esp + 0x24], str.view
mov dword [esp + 0x20], str.VIEW
cmp dword [ebp + 0x18], 0
je 0x4aec15
inc dword [esi + 0x2c]
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4aea56
mov eax, esi
mov byte [eax + 0x15], 1
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x64]
push eax
push ecx
push 1
push 0x69
push edi
call fcn.0048e3e0
mov eax, dword [edi + 0x88]
add esp, 0x14
test eax, eax
jle 0x4aea8a
lea edx, [eax + eax*4]
mov eax, dword [edi + 0x58]
mov ecx, 0x10
mov word [eax + edx*4 - 0x12], cx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x28], 2
mov ebx, dword [edi + 0x88]
inc ebx
push ebx
push 0
push edx
push 0xf
push edi
call fcn.0048e3e0
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x18]
add esp, 0x14
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x30], eax
xor eax, eax
push edx
push esi
mov byte [esp + 0x34], 0xd
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call fcn.004cb030
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0
push 0
push eax
push 0x35
push edi
call fcn.0048e3e0
mov ecx, dword [edi + 0xc]
mov byte [ecx + 0x13], 0
mov edx, dword [edi + 0xc]
add esp, 0x14
dec ebx
mov dword [edx + 0x1c], 0
mov eax, dword [edi + 0x88]
jns 0x4aeb09
lea ebx, [eax - 1]
mov ecx, dword [edi]
cmp byte [ecx + 0x45], 0
je 0x4aeb18
mov ecx, 0x573b6c
jmp 0x4aeb21
mov ecx, dword [edi + 0x58]
lea edx, [ebx + ebx*4]
lea ecx, [ecx + edx*4]
mov dword [ecx + 8], eax
cmp dword [esi + 0x24], 0
jne 0x4aedb1
mov eax, dword [ebp + 0x18]
push esi
call fcn.004c5d30
add esp, 4
test eax, eax
je 0x4aedb1
mov dx, word [eax + 0x2a]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
mov word [ecx + 0x2a], dx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
xor ecx, ecx
mov word [eax + 0x2a], cx
mov dword [eax + 4], ecx
mov ecx, eax
mov eax, ebx
call fcn.004acd30
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push 0x10
push edi
call fcn.0048e3e0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add esp, 0x14
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push edx
push 0x63
push edi
call fcn.0048e3e0
mov eax, dword [esp + 0x24]
add esp, 0x14
push 0
push edi
call fcn.004b9f50
mov eax, dword [esp + 0x24]
push 0
inc eax
push eax
push 1
push 0x73
push edi
call fcn.0048e3e0
mov eax, dword [esp + 0x38]
add esp, 0x1c
inc eax
push eax
mov eax, dword [esp + 0x20]
push eax
push 1
push 0x74
push edi
call fcn.0048e3e0
mov ecx, dword [esp + 0x34]
add esp, 0x14
push 0
push ecx
push 0
push 0xd
push edi
call fcn.0048e3e0
mov eax, dword [esp + 0x34]
add esp, 0x14
mov edx, edi
call fcn.0048eb50
push 0
push 0
push 1
push 0x70
push edi
call fcn.0048e3e0
mov edx, dword [esp + 0x24]
add esp, 0x14
push edx
push ebx
call fcn.004aded0
add esp, 8
jmp 0x4aec55
cmp byte [ebp + 0x14], 0
lea ebx, [esi + 0x184]
jne 0x4aec24
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx]
mov edx, dword [esi + 0x17c]
mov eax, ecx
sub eax, edx
cmp byte [ecx], 0x3b
je 0x4aec38
add eax, dword [ebx + 4]
mov ecx, dword [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x28]
push eax
push str.CREATE__s__.s
push ecx
call fcn.004715d0
mov ebx, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [edx]
mov edx, dword [esi + 0x60]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0x64]
push edx
mov edx, dword [ebx + 0x10]
push eax
push eax
mov eax, dword [esp + 0x38]
push eax
shl ecx, 4
mov eax, dword [ecx + edx]
push str.sqlite_master
push eax
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push esi
mov dword [esp + 0x44], ecx
call fcn.004ac1b0
mov eax, dword [esp + 0x48]
mov ecx, ebx
call fcn.0046f8d0
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [edx + eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 8]
inc edx
push edx
push 1
push eax
push 0x66
push ecx
call fcn.0048e3e0
mov edx, dword [esp + 0x4c]
add esp, 0x3c
test byte [edx + 0x24], 8
je 0x4aecf1
mov eax, dword [ebx + 0x10]
add eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0xc]
cmp dword [ecx + 0x48], 0
jne 0x4aecf1
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push esi
call fcn.004ac1b0
add esp, 0xc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push ecx
push str.tbl_name_q_AND_type_trigger
push ebx
call fcn.004715d0
mov ecx, eax
mov eax, dword [esp + 0x20]
add esp, 0xc
mov esi, edi
call fcn.0048e6b0
mov ebx, dword [esp + 0x18]
cmp byte [ebx + 0x99], 0
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
je 0x4aedb1
mov ecx, dword [edi + 0x48]
mov edx, dword [edi]
push edx
lea ecx, [ecx + 8]
mov eax, edi
call fcn.00473c50
add esp, 4
test eax, eax
je 0x4aed72
cmp byte [ebx + 0x45], 0
jne 0x4aedb1
cmp byte [ebx + 0x46], 0
jne 0x4aedb1
cmp dword [ebx + 0xa8], 0
mov byte [ebx + 0x45], 1
jle 0x4aed65
mov dword [ebx + 0xf8], 1
inc dword [ebx + 0x100]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x1b0], 0
or dword [ebx + 0x18], 0x800000
cmp dword [edi + 0xc], 0
jne 0x4aedb1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
mov esi, dword [esi + 0x17c]
jne 0x4aed9d
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub edx, esi
mov ecx, esi
call fcn.00472150
add eax, 0xd
mov dword [edi + 0x34], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret