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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
push ebx
mov ebx, ecx
mov dword [ebp - 0x24], edx
push esi
push edi
mov eax, dword [ebx]
mov dword [ebp - 4], eax
jne 0x4891ad
cmp dword [ebp + 0x10], 0
je 0x489767
mov edi, dword [ebx + 0xf0]
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x489767
cmp dword [ebp + 0x10], 0
jne 0x4891db
mov edx, dword [edi]
mov ecx, eax
call fcn.00489144
test eax, eax
mov eax, dword [ebp - 4]
je 0x4891db
or dword [edi + 0x1c], 0x1000
xor esi, esi
cmp byte [eax + 0xb1], 0
je 0x489212
cmp dword [ebp + 0x10], esi
jne 0x4892a0
cmp byte [edi + 0x2b], 0
je 0x489201
cmp dword [eax + 0xac], esi
jne 0x4892a0
mov eax, dword [eax + 0xac]
mov dword [edi + 0x14], eax
cmp eax, 1
jne 0x489212
or dword [edi + 0x1c], eax
mov eax, 0x10000
test dword [ebp + 0xc], eax
je 0x489288
or dword [edi + 0x1c], eax
xor eax, eax
mov dword [ebp - 0xc], esi
cmp ax, word [edi + 0x22]
jge 0x489288
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [edi + 4]
add ecx, edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ecx + 4]
mov eax, edx
and eax, 0xf0
je 0x4892b2
cmp eax, 0x10
jne 0x48924c
mov byte [ecx + 8], 0x41
test byte [ecx + 0xe], 1
je 0x489270
movsx eax, word [edi + 0x20]
cmp eax, dword [ebp - 0xc]
je 0x489270
test dl, 0xf
jne 0x489270
and edx, 0xfffffff2
or edx, 2
mov dword [ecx + 4], edx
or dword [edi + 0x1c], 0x800
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
inc ecx
movsx eax, word [edi + 0x22]
add edx, 0x10
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
cmp ecx, eax
jl 0x48922f
test byte [ebp + 0xc], 0x80
je 0x48931e
mov eax, dword [edi + 0x1c]
test al, 8
je 0x4892f4
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
jmp 0x4892a5
push 0x858903
push ebx
call fcn.00453b99
pop ecx
pop ecx
jmp 0x489767
test byte [ecx + 0xe], 4
je 0x4892dd
mov edx, 0x858903
call fcn.00453a6d
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push dword [edi]
push str.unknown_datatype_for__s._s:___s_
push ebx
call fcn.00453b99
add esp, 0x14
jmp 0x489767
push dword [ecx]
push dword [edi]
push str.missing_datatype_for__s._s
push ebx
call fcn.00453b99
add esp, 0x10
jmp 0x489767
test al, 4
jne 0x48930d
push dword [edi]
push str.PRIMARY_KEY_missing_on_table__s
push ebx
call fcn.00453b99
add esp, 0xc
jmp 0x489767
or eax, 0x280
mov edx, edi
mov ecx, ebx
mov dword [edi + 0x1c], eax
call fcn.00488bcd
mov edx, dword [edi + 0x3c]
mov ecx, dword [ebp - 4]
call fcn.00499367
mov dword [ebp - 0xc], eax
cmp dword [edi + 0x10], esi
je 0x48935a
push dword [edi + 0x10]
mov edx, edi
mov ecx, ebx
push esi
push 4
call fcn.0047bc67
add esp, 0xc
cmp dword [ebx + 0x24], esi
je 0x48935a
mov edx, dword [edi + 0x10]
test edx, edx
je 0x489357
mov ecx, dword [ebp - 4]
call fcn.0047d8c7
mov dword [edi + 0x10], esi
test byte [edi + 0x1c], 0x60
je 0x4893ee
xor eax, eax
mov dword [ebp - 0x14], esi
mov edx, esi
mov dword [ebp - 0x10], edx
cmp ax, word [edi + 0x22]
jge 0x4893de
mov ecx, esi
mov dword [ebp - 8], esi
mov eax, dword [edi + 4]
add eax, ecx
test byte [eax + 0xe], 0x60
je 0x4893e8
mov edx, eax
mov ecx, edi
call fcn.004872d4
push esi
push eax
push 8
mov edx, edi
mov ecx, ebx
call fcn.0047bc67
add esp, 0xc
test eax, eax
je 0x4893c2
mov ecx, dword [ebp - 4]
push esi
push esi
push 0x79
pop edx
call fcn.0047c5f3
push eax
mov eax, dword [edi + 4]
mov edx, edi
add eax, dword [ebp - 8]
mov ecx, ebx
push eax
call fcn.0048725b
add esp, 0x10
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
inc dword [ebp - 0x14]
add ecx, 0x10
movsx eax, word [edi + 0x22]
mov dword [ebp - 8], ecx
cmp dword [ebp - 0x14], eax
jl 0x489379
test edx, edx
jne 0x4893ee
push str.must_have_at_least_one_non_generated_column
jmp 0x4892a5
inc edx
mov dword [ebp - 0x10], edx
jmp 0x4893c8
mov ecx, edi
call fcn.00488a47
mov eax, dword [edi + 8]
test eax, eax
je 0x48940f
mov edi, eax
mov ecx, edi
call fcn.00488a89
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4893fe
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xb1]
test al, al
jne 0x4896fb
mov ecx, ebx
call fcn.0049bbde
mov dword [ebp - 8], eax
test eax, eax
je 0x489767
push esi
push esi
push esi
push 0x7a
pop edx
mov ecx, eax
call fcn.0046b9a1
mov al, byte [edi + 0x2b]
add esp, 0xc
test al, al
mov edx, str.TABLE
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [ebp - 0x1c], ecx
mov ecx, str.view
cmove ecx, edx
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 0x10], esi
je 0x489617
cmp byte [ebx + 0xd4], 0
je 0x489488
inc dword [ebx + 0x24]
mov dword [ebx + 0xc], 1
jmp 0x489767
mov eax, dword [ebx + 0x2c]
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 0x14], eax
inc eax
mov dword [ebp - 0x18], eax
inc eax
cmp dword [ebx + 0x78], esi
mov dword [ebx + 0x2c], eax
mov dword [ebp - 0x10], eax
mov eax, ebx
cmovne eax, dword [ebx + 0x78]
mov byte [eax + 0x15], 1
push dword [ebx + 0x60]
push 1
push 0x71
pop edx
call fcn.0046b9a1
mov ecx, dword [ebp - 8]
add esp, 0xc
push 0x10
pop edx
call fcn.0046bf17
mov dword [ebx + 0x28], 2
mov eax, dword [ecx + 0x6c]
inc eax
push eax
push esi
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push 0xb
pop edx
call fcn.0046b9a1
add esp, 0xc
cmp dword [ebx + 0x24], esi
jne 0x489767
mov edx, dword [ebp + 0x10]
mov ecx, ebx
push 0x41
call fcn.0049bb25
pop ecx
test eax, eax
je 0x489767
movzx ecx, word [eax + 0x22]
mov word [edi + 0x24], cx
mov word [edi + 0x22], cx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
xor ecx, ecx
push eax
push dword [ebp - 4]
mov word [eax + 0x22], cx
mov dword [eax + 4], esi
call fcn.00487530
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 0x40], 0xd
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call fcn.0049fa1a
add esp, 0xc
cmp dword [ebx + 0x24], esi
jne 0x489767
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
call fcn.0046bcdd
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
lea edx, [edx - 1]
call fcn.0046c1e8
mov ecx, dword [ecx + 0x6c]
push esi
push esi
mov dword [eax + 8], ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
push 0xc
pop edx
call fcn.0046b9a1
mov ecx, dword [ebp - 8]
add esp, 0xc
mov esi, eax
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push 0x61
pop edx
call fcn.0046b9a1
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, edi
push 0
call fcn.00491a80
pop ecx
mov ecx, dword [ebp - 8]
push 0
push dword [ebp - 0x10]
push 1
push 0x7f
pop edx
call fcn.0046b9a1
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, 0x80
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push 1
call fcn.0046b9a1
mov ecx, dword [ebp - 8]
add esp, 0xc
mov edx, esi
call fcn.0046b9fa
mov ecx, dword [ebp - 8]
mov edx, esi
call fcn.0046c1e8
mov ecx, dword [ecx + 0x6c]
xor esi, esi
push esi
push esi
push 1
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 8]
push 0x7a
pop edx
call fcn.0046b9a1
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, edi
call fcn.0048881a
jmp 0x489652
cmp dword [ebp + 0xc], esi
lea eax, [ebx + 0xc8]
mov edx, dword [ebp + 8]
cmovne edx, eax
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0xc0]
cmp byte [eax], 0x3b
je 0x489638
add ecx, dword [edx + 4]
push dword [ebx + 0xc0]
push ecx
push dword [ebp - 0x1c]
push str.CREATE__s__.s
push dword [ebp - 4]
call fcn.00452d1e
add esp, 0x14
push dword [ebx + 0x5c]
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebx + 0x60]
mov dword [ebp - 0x18], eax
push dword [edi]
mov eax, dword [ebp - 4]
push dword [edi]
shl ecx, 4
push dword [ebp - 0x20]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], ecx
push dword [ecx + eax]
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push ebx
call fcn.00486b59
mov edx, dword [ebp - 0x18]
add esp, 0x24
test edx, edx
je 0x489692
mov ecx, dword [ebp - 4]
call fcn.00450d17
mov edx, dword [ebp - 0xc]
mov ecx, ebx
call fcn.00488722
test byte [edi + 0x1c], 8
je 0x4896cc
cmp byte [ebx + 0xd4], 0
jne 0x4896cc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
add ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], esi
jne 0x4896cc
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebx
call fcn.00486b59
add esp, 0xc
push esi
push ecx
push dword [edi]
push str.tbl_name_q_AND_type_trigger
push dword [ebp - 4]
call fcn.00452d1e
mov edx, dword [ebp - 0xc]
add esp, 0x10
mov ecx, dword [ebp - 8]
push eax
call fcn.0046bc4d
mov eax, dword [ebp - 4]
pop ecx
pop ecx
mov al, byte [eax + 0xb1]
test al, al
je 0x489741
mov ecx, dword [edi + 0x3c]
mov edx, dword [edi]
push edi
lea ecx, [ecx + 8]
call fcn.004552eb
pop ecx
test eax, eax
je 0x489718
mov ecx, dword [ebp - 4]
call fcn.004512ff
jmp 0x489767
mov eax, dword [ebp - 4]
mov edx, str.sqlite_sequence
mov dword [ebx + 0xf0], esi
or dword [eax + 0x18], 1
mov ecx, dword [edi]
movzx eax, byte [ecx + esi]
cmp al, byte [edx + esi]
jne 0x489741
inc esi
cmp esi, 0x10
jne 0x48972c
mov eax, dword [edi + 0x3c]
mov dword [eax + 0x48], edi
cmp dword [ebp + 0x10], 0
jne 0x489767
cmp byte [edi + 0x2b], 0
jne 0x489767
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
test eax, eax
jne 0x48975b
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub eax, dword [ebx + 0xc0]
add eax, 0xd
mov dword [edi + 0x2c], eax
pop edi
pop esi
pop ebx
leave
ret