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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [esp + 0xc], ecx
jne 0x4631d6
test edi, edi
je 0x4638fe
mov esi, dword [ebx + 0xf4]
test esi, esi
mov dword [esp + 0x10], esi
je 0x4638fe
test edi, edi
jne 0x463202
mov eax, dword [esi]
call fcn.00463160
test eax, eax
mov ecx, dword [esp + 0xc]
je 0x463202
or dword [esi + 0x1c], 0x1000
cmp byte [ecx + 0xb1], 0
je 0x463236
test edi, edi
jne 0x4632c6
cmp byte [esi + 0x2b], 0
je 0x463225
cmp dword [ecx + 0xac], edi
jne 0x4632c6
mov eax, dword [ecx + 0xac]
cmp eax, 1
mov dword [esi + 0x14], eax
jne 0x463236
or dword [esi + 0x1c], eax
mov eax, 0x10000
test dword [ebp + 0x14], eax
je 0x46329f
or dword [esi + 0x1c], eax
xor edx, edx
cmp word [esi + 0x22], dx
jle 0x46329f
mov dword [esp + 0x18], edx
nop
mov edi, dword [esi + 4]
add edi, dword [esp + 0x18]
mov eax, dword [edi + 4]
mov ecx, eax
shr ecx, 4
and ecx, 0xf
je 0x4632dc
cmp ecx, 1
jne 0x46326d
mov byte [edi + 8], 0x41
test byte [edi + 0xe], 1
je 0x46328f
movsx ecx, word [esi + 0x20]
cmp ecx, edx
je 0x46328f
test al, 0xf
jne 0x46328f
and eax, 0xfffffff2
or eax, 2
mov dword [edi + 4], eax
or dword [esi + 0x1c], 0x800
movsx eax, word [esi + 0x22]
add dword [esp + 0x18], 0x10
add edx, 1
cmp edx, eax
jl 0x463250
test byte [ebp + 0x14], 0x80
je 0x463359
mov eax, dword [esi + 0x1c]
test al, 8
je 0x46332a
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
mov esi, ebx
call fcn.0041cbf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x4be549
mov esi, ebx
call fcn.0041cbf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [edi + 0xe], 4
je 0x46330e
push 0x4be549
mov eax, edi
call fcn.0041c9f0
mov ecx, dword [edi]
mov edx, dword [esi]
add esp, 4
push eax
push ecx
push edx
push str.unknown_datatype_for__s._s:___s_
mov esi, ebx
call fcn.0041cbf0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [esi]
push eax
push ecx
push str.missing_datatype_for__s._s
mov esi, ebx
call fcn.0041cbf0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x463347
mov edx, dword [esi]
push edx
push str.PRIMARY_KEY_missing_on_table__s
mov esi, ebx
call fcn.0041cbf0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0x280
push esi
push ebx
mov dword [esi + 0x1c], eax
call fcn.00462bb0
add esp, 8
mov ecx, dword [esi + 0x3c]
test ecx, ecx
mov edi, dword [esp + 0xc]
mov dword [esp + 0x14], 0xffff8000
je 0x46338c
mov eax, dword [edi + 0x10]
cmp dword [eax + 0xc], ecx
mov dword [esp + 0x14], 0
je 0x46338c
add eax, 0xc
nop
add dword [esp + 0x14], 1
add eax, 0x10
cmp dword [eax], ecx
jne 0x463380
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4633c5
push eax
push 0
mov eax, 4
mov ecx, esi
mov edx, ebx
call fcn.00451490
add esp, 8
cmp dword [ebx + 0x24], 0
je 0x4633c5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4633be
push eax
push edi
call fcn.00453b70
add esp, 8
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x4634d7
xor eax, eax
cmp word [esi + 0x22], ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
jle 0x4634c1
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 4]
mov edx, dword [esp + 0x18]
test byte [ecx + edx + 0xe], 0x60
lea eax, [ecx + edx]
je 0x463499
movzx eax, word [eax + 0xc]
test ax, ax
jne 0x463409
xor eax, eax
jmp 0x463430
cmp byte [esi + 0x2b], 0
je 0x463413
xor eax, eax
jmp 0x463430
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x46341e
xor eax, eax
jmp 0x463430
movzx eax, ax
cmp dword [ecx], eax
jge 0x463429
xor eax, eax
jmp 0x463430
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push 0
push eax
mov eax, 8
mov ecx, esi
mov edx, ebx
call fcn.00451490
add esp, 8
test eax, eax
je 0x46349e
mov ecx, dword [esp + 0xc]
push 0
push 0x34
call fcn.00419650
mov edi, eax
add esp, 8
test edi, edi
je 0x46347b
push 0x34
push 0
push edi
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [edi], 0x79
mov word [edi + 0x22], 0xffff
mov dword [edi + 0x18], 1
mov edx, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
add edi, dword [esp + 0x1c]
mov ebx, esi
call fcn.004609b0
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x14]
add esp, 4
jmp 0x46349e
add dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
movsx ecx, word [esi + 0x22]
add dword [esp + 0x18], 0x10
add eax, 1
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4633e7
cmp dword [esp + 0x1c], 0
jne 0x4634d7
push str.must_have_at_least_one_non_generated_column
mov esi, ebx
call fcn.0041cbf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004629f0
mov edi, dword [esi + 8]
test edi, edi
je 0x4634ef
call fcn.00462a40
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x4634e3
mov edx, dword [esp + 0xc]
cmp byte [edx + 0xb1], 0
jne 0x46385b
mov edi, dword [ebx + 8]
test edi, edi
je 0x46350d
mov dword [esp + 0x18], edi
jmp 0x463531
cmp dword [ebx + 0x78], 0
jne 0x46351f
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x46351f
mov byte [ebx + 0x17], 1
call fcn.0043c140
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov edi, eax
test edi, edi
je 0x4638fe
push 0
push 0
push 0
push 0x7a
push edi
call fcn.0043c3f0
add esp, 0x14
cmp byte [esi + 0x2b], 0
jne 0x463562
mov dword [esp + 0x1c], str.table
mov dword [esp + 0x20], str.TABLE
jmp 0x463572
mov dword [esp + 0x1c], str.view
mov dword [esp + 0x20], str.VIEW
cmp dword [ebp + 0x18], 0
je 0x463750
cmp byte [ebx + 0xd8], 0
je 0x463597
mov eax, 1
add dword [ebx + 0x24], eax
mov dword [ebx + 0xc], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 0x2c]
add esi, 1
lea eax, [esi + 1]
mov dword [esp + 0x20], eax
add eax, 1
mov dword [esp + 0x24], eax
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x4635b7
mov eax, ebx
mov ecx, dword [esp + 0x14]
push ecx
mov byte [eax + 0x15], 1
mov edx, dword [ebx + 0x60]
push edx
push 1
push 0x71
push edi
call fcn.0043c3f0
mov eax, dword [edi + 0x6c]
add esp, 0x14
test eax, eax
jle 0x4635e5
mov ecx, dword [edi + 0x68]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], 0x10
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x28], 2
mov edi, dword [eax + 0x6c]
add edi, 1
push edi
push 0
push esi
push 0xb
push eax
call fcn.0043c3f0
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x4638fe
mov edx, dword [ebp + 0x18]
push 0x41
push edx
call fcn.0047d560
xor edx, edx
add esp, 8
cmp eax, edx
je 0x4638fe
movzx ecx, word [eax + 0x22]
mov ebx, dword [esp + 0x10]
mov word [ebx + 0x24], cx
mov word [ebx + 0x22], cx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov word [eax + 0x22], dx
mov dword [eax + 4], edx
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.00460f90
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 8]
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
lea eax, [esp + 0x34]
push eax
push ecx
push edx
mov byte [esp + 0x40], 0xd
mov dword [esp + 0x44], esi
call fcn.004832b0
mov eax, dword [ebp + 8]
add esp, 0x14
cmp dword [eax + 0x24], 0
jne 0x4638fe
mov eax, esi
mov esi, dword [esp + 0x18]
call fcn.0043c9d0
lea edx, [edi - 1]
mov eax, esi
call fcn.0043cd40
mov ecx, dword [esp + 0x30]
push 0
push 0
push ecx
push 0xc
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push edx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x40]
push eax
push ecx
push 0x61
push esi
call fcn.0043c3f0
add esp, 0x14
push 0
mov eax, ebx
mov edi, esi
call fcn.0046f310
mov edi, dword [esp + 0x28]
add esp, 4
push 0
push edi
push 1
push 0x7f
push esi
call fcn.0043c3f0
mov edx, dword [esp + 0x34]
add esp, 0x14
push edi
push edx
push 1
push 0x80
push esi
call fcn.0043c3f0
mov edi, dword [esp + 0x3c]
add esp, 0x14
push 0
push edi
push 0
push 9
push esi
call fcn.0043c3f0
add esp, 0x14
mov edx, edi
mov eax, esi
call fcn.0043cd40
push 0
push 0
push 1
push 0x7a
push esi
call fcn.0043c3f0
mov eax, dword [esp + 0x20]
add esp, 0x14
push ebx
push eax
call fcn.00462730
mov ebx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
add esp, 8
jmp 0x46378b
cmp dword [ebp + 0x14], 0
lea edx, [ebx + 0xcc]
jne 0x46375f
mov edx, dword [ebp + 0x10]
mov ecx, dword [edx]
mov edi, dword [ebx + 0xc4]
mov eax, ecx
sub eax, edi
cmp byte [ecx], 0x3b
je 0x463773
add eax, dword [edx + 4]
mov ecx, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x10]
push eax
push ecx
push str.CREATE__s__.s
call fcn.0041ba60
add esp, 0x10
mov edx, dword [ebx + 0x5c]
mov ecx, dword [ebx + 0x60]
push edx
mov edx, dword [esp + 0x20]
mov edi, eax
mov eax, dword [esi]
mov esi, dword [esp + 0x18]
push edi
push ecx
push eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
push edx
shl esi, 4
mov edx, dword [esi + ecx]
push edx
push str.UPDATE__Q.sqlite_master_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
call fcn.00460090
add esp, 0x20
test edi, edi
je 0x4637d1
mov eax, edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.00419270
jmp 0x4637d5
mov edi, dword [esp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebx + 8]
add eax, 1
push eax
push 1
push ecx
push 0x64
push edx
call fcn.0043c3f0
mov eax, dword [esp + 0x24]
add esp, 0x14
test byte [eax + 0x1c], 8
je 0x46382e
cmp byte [ebx + 0xd8], 0
jne 0x46382e
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + esi + 0xc]
add eax, esi
cmp dword [ecx + 0x48], 0
jne 0x46382e
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
call fcn.00460090
add esp, 8
mov eax, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [eax]
push ecx
push str.tbl_name_q_AND_type_trigger
call fcn.0041ba60
mov edx, dword [esp + 0x28]
mov ecx, eax
mov eax, dword [esp + 0x24]
add esp, 0xc
call fcn.0043c8b0
mov esi, dword [esp + 0x14]
add esp, 4
mov edx, dword [esp + 0xc]
cmp byte [edx + 0xb1], 0
je 0x4638d3
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi]
push ecx
add eax, 8
mov ebx, esi
call fcn.0041e600
add esp, 4
test eax, eax
je 0x463893
mov edx, dword [esp + 0xc]
push edx
call fcn.00419a00
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [eax + 0xf4], 0
mov eax, dword [esp + 0xc]
or dword [eax + 0x18], 1
mov esi, dword [ecx]
mov edi, str.sqlite_sequence
mov ecx, 0x10
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4638cf
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x3c]
mov dword [ecx + 0x48], eax
mov esi, eax
jmp 0x4638d3
mov esi, dword [esp + 0x10]
cmp dword [ebp + 0x18], 0
jne 0x4638fe
cmp byte [esi + 0x2b], 0
jne 0x4638fe
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x4638ed
mov eax, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
sub edx, dword [ebx + 0xc4]
add edx, 0xd
mov dword [esi + 0x2c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret