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

Disassembly:
sub esp, 0x38
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x4c]
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [ebx]
mov dword [esp + 0xc], ebp
jne 0x101146d2
test eax, eax
je 0x10114e7a
push edi
mov edi, dword [ebx + 0xf0]
test edi, edi
je 0x10114e79
test eax, eax
jne 0x101146ff
push dword [edi]
push ebp
call fcn.10133c20
add esp, 8
test eax, eax
mov eax, dword [esp + 0x58]
je 0x101146ff
or dword [edi + 0x1c], 0x1000
cmp byte [ebp + 0xb1], 0
je 0x1011472e
test eax, eax
jne 0x101147ea
cmp byte [edi + 0x2b], al
je 0x101147d0
cmp dword [ebp + 0xac], eax
jne 0x101147ea
mov eax, dword [ebp + 0xac]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x54]
push esi
test ecx, 0x10000
je 0x101147a5
or dword [edi + 0x1c], 0x10000
xor eax, eax
xor edx, edx
cmp ax, word [edi + 0x22]
jge 0x101147a5
xor ebp, ebp
nop
mov esi, dword [edi + 4]
add esi, ebp
mov ecx, dword [esi + 4]
mov eax, ecx
and eax, 0xf0
je 0x101147ff
cmp eax, 0x10
jne 0x1011476e
mov byte [esi + 8], 0x41
test byte [esi + 0xe], 1
je 0x10114791
movsx eax, word [edi + 0x20]
cmp eax, edx
je 0x10114791
test cl, 0xf
jne 0x10114791
and ecx, 0xfffffff2
or ecx, 2
mov dword [esi + 4], ecx
or dword [edi + 0x1c], 0x800
movsx eax, word [edi + 0x22]
inc edx
add ebp, 0x10
cmp edx, eax
jl 0x10114750
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
lea esi, [edi + 0x1c]
test cl, cl
jns 0x10114872
mov eax, dword [esi]
test al, 8
je 0x10114845
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push ebx
call fcn.10114f40
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [ebp + 0xac]
mov dword [edi + 0x14], eax
cmp eax, 1
jne 0x1011472e
or dword [edi + 0x1c], eax
jmp 0x1011472e
push 0x10183be2
push ebx
call fcn.10114f40
add esp, 8
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
test byte [esi + 0xe], 4
je 0x1011482b
push 0x10183be2
push esi
call fcn.10110370
push eax
push dword [esi]
push dword [edi]
push str.unknown_datatype_for__s._s:___s_
push ebx
call fcn.10114f40
add esp, 0x1c
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
push dword [esi]
push dword [edi]
push str.missing_datatype_for__s._s
push ebx
call fcn.10114f40
add esp, 0x10
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
test al, 4
jne 0x10114861
push dword [edi]
push str.PRIMARY_KEY_missing_on_table__s
push ebx
call fcn.10114f40
add esp, 0xc
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
or eax, 0x280
push edi
push ebx
mov dword [esi], eax
call fcn.100e4a20
add esp, 8
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x10], 0xffff8000
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x101148b3
mov eax, dword [ebp + 0x10]
xor edx, edx
add eax, 0xc
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
cmp dword [eax], ecx
je 0x101148b3
nop dword [eax]
lea eax, [eax + 0x10]
inc edx
cmp dword [eax], ecx
jne 0x101148a0
lea eax, [edi + 0x1c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
mov ecx, esi
mov dword [esp + 0x1c], ecx
test eax, eax
je 0x101148fb
push eax
push 0
push 4
push edi
push ebx
call fcn.1012ee80
mov ecx, dword [esp + 0x2c]
add esp, 0x14
cmp dword [ebx + 0x24], 0
mov dword [esp + 0x1c], ecx
je 0x101148fb
mov eax, dword [edi + 0x10]
test eax, eax
je 0x101148ee
push eax
push ebp
call fcn.100e9a10
add esp, 8
mov dword [edi + 0x10], 0
mov ecx, esi
mov dword [esp + 0x1c], esi
test byte [ecx], 0x60
je 0x101149f5
xor ecx, ecx
xor esi, esi
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], esi
cmp ax, word [edi + 0x22]
jge 0x101149d8
xor ebp, ebp
nop
mov eax, dword [edi + 4]
test byte [eax + ebp + 0xe], 0x60
je 0x101149ee
movzx eax, word [eax + ebp + 0xc]
test ax, ax
jne 0x1011493c
xor eax, eax
jmp 0x10114960
cmp byte [edi + 0x2b], 0
je 0x10114946
xor eax, eax
jmp 0x10114960
mov ecx, dword [edi + 0x34]
test ecx, ecx
jne 0x10114951
xor eax, eax
jmp 0x10114960
cmp dword [ecx], eax
jge 0x10114959
xor eax, eax
jmp 0x10114960
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push 0
push eax
push 8
push edi
push ebx
call fcn.1012ee80
add esp, 0x14
test eax, eax
je 0x101149bc
push 0
push 0x34
push dword [esp + 0x1c]
call fcn.10112e00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x101149a7
push 0x34
push 0
push esi
call fcn.1016bd70
add esp, 0xc
mov byte [esi], 0x79
or eax, 0xffffffff
mov dword [esi + 0x18], 1
mov word [esi + 0x22], ax
mov eax, dword [edi + 4]
push esi
add eax, ebp
push eax
push edi
push ebx
call fcn.101102a0
mov esi, dword [esp + 0x30]
add esp, 0x10
mov ecx, dword [esp + 0x18]
movsx eax, word [edi + 0x22]
inc esi
add ebp, 0x10
mov dword [esp + 0x20], esi
cmp esi, eax
jl 0x10114920
test ecx, ecx
jne 0x101149f5
push str.must_have_at_least_one_non_generated_column
push ebx
call fcn.10114f40
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
inc ecx
mov dword [esp + 0x18], ecx
jmp 0x101149c0
movsx eax, word [edi + 0x22]
xor esi, esi
mov ecx, dword [edi + 4]
xor ebp, ebp
xor edx, edx
cmp eax, 2
jl 0x10114a38
movsx ebx, word [edi + 0x22]
lea edx, [eax - 2]
shr edx, 1
inc edx
mov eax, edx
neg eax
lea ebx, [ebx + eax*2]
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x4c]
movzx eax, byte [ecx + 9]
add esi, eax
movzx eax, byte [ecx + 0x19]
add ebp, eax
add ecx, 0x20
sub edx, 1
jne 0x10114a20
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x10114a40
movzx edx, byte [ecx + 9]
lea eax, [esi + ebp]
add eax, edx
cmp word [edi + 0x20], 0
push 0
lea ecx, [eax + 1]
cmovge ecx, eax
shl ecx, 2
push ecx
call fcn.10124920
mov esi, dword [edi + 8]
add esp, 8
mov word [edi + 0x28], ax
test esi, esi
je 0x10114a80
nop dword [eax]
push esi
call fcn.100e6680
mov esi, dword [esi + 0x14]
add esp, 4
test esi, esi
jne 0x10114a70
mov esi, dword [esp + 0x14]
cmp byte [esi + 0xb1], 0
jne 0x10114ddd
mov ebp, dword [ebx + 8]
test ebp, ebp
jne 0x10114abc
cmp dword [ebx + 0x78], ebp
jne 0x10114aa9
mov eax, dword [ebx]
test byte [eax + 0x50], 8
jne 0x10114aa9
mov byte [ebx + 0x17], 1
push ebx
call fcn.1013a130
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10114e78
mov ecx, dword [ebp + 0x6c]
cmp dword [ebp + 0x70], ecx
jg 0x10114ad7
push 0
push 0
push 0
push 0x7a
push ebp
call fcn.100f0a80
add esp, 0x14
jmp 0x10114b0a
lea eax, [ecx + 1]
mov dword [ebp + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [ebp + 0x68]
mov dword [eax + ecx*4], 0x7a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov al, byte [edi + 0x2b]
mov edx, str.TABLE
test al, al
mov ecx, str.VIEW
cmove ecx, edx
mov edx, str.table
mov dword [esp + 0x4c], ecx
mov ecx, str.view
cmove ecx, edx
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x28], ecx
je 0x10114cf3
cmp byte [ebx + 0xd4], 0
je 0x10114b57
inc dword [ebx + 0x24]
pop esi
pop edi
pop ebp
mov dword [ebx + 0xc], 1
pop ebx
add esp, 0x38
ret
mov eax, dword [ebx + 0x2c]
mov ecx, ebx
push dword [esp + 0x10]
inc eax
mov dword [esp + 0x50], eax
inc eax
mov dword [esp + 0x1c], eax
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x78]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
push dword [ebx + 0x60]
push 1
push 0x71
push ebp
call fcn.10139b60
mov eax, dword [ebp + 0x6c]
add esp, 0x14
test eax, eax
jle 0x10114ba5
lea ecx, [eax + eax*4]
mov edx, 0x10
mov eax, dword [ebp + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov dword [ebx + 0x28], 2
mov eax, dword [ebp + 0x6c]
mov dword [esp + 0x24], eax
inc eax
push eax
push 0
push dword [esp + 0x54]
push 0xb
push ebp
call fcn.10139b60
add esp, 0x14
cmp dword [ebx + 0x24], 0
jne 0x10114e78
push 0x41
push dword [esp + 0x60]
push ebx
call fcn.1012ef60
add esp, 0xc
test eax, eax
je 0x10114e78
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
mov word [eax + 0x22], cx
mov dword [eax + 4], ecx
cmp dword [esi + 0x210], ecx
jne 0x10114c10
add dword [eax + 0x18], 0xffffffff
jne 0x10114c1a
push eax
push esi
call fcn.100e5df0
add esp, 8
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x60]
mov byte [esp + 0x34], 0xd
push ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
call fcn.10130400
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x10114e78
push esi
push ebp
call fcn.1013a6c0
push dword [esp + 0x2c]
push ebp
call fcn.10143e90
push dword [esp + 0x40]
push 0xc
push ebp
call fcn.10139aa0
push dword [esp + 0x34]
mov esi, eax
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push 0x61
push ebp
call fcn.10139b60
push 0
push edi
push ebp
call fcn.10135490
push dword [esp + 0x5c]
push 1
push 0x7f
push ebp
call fcn.10139b00
add esp, 0x4c
push dword [esp + 0x20]
push dword [esp + 0x1c]
push 1
push 0x80
push ebp
call fcn.10139b60
push esi
push ebp
call fcn.10143940
push esi
push ebp
call fcn.10143e90
push 1
push 0x7a
push ebp
call fcn.10139aa0
mov esi, dword [esp + 0x44]
push edi
push esi
call fcn.100e5460
mov ecx, eax
add esp, 0x38
mov dword [esp + 0x4c], ecx
jmp 0x10114d35
cmp dword [esp + 0x58], 0
lea edx, [ebx + 0xc8]
jne 0x10114d04
mov edx, dword [esp + 0x54]
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0xc0]
cmp byte [eax], 0x3b
je 0x10114d16
add ecx, dword [edx + 4]
push dword [ebx + 0xc0]
push ecx
push dword [esp + 0x54]
push str.CREATE__s__.s
push esi
call fcn.10124b40
add esp, 0x14
mov dword [esp + 0x4c], eax
mov ecx, eax
push dword [ebx + 0x5c]
mov eax, dword [edi]
mov edx, dword [esp + 0x14]
push ecx
push dword [ebx + 0x60]
shl edx, 4
push eax
push eax
mov eax, dword [esi + 0x10]
push dword [esp + 0x3c]
mov dword [esp + 0x3c], edx
push dword [eax + edx]
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.10125310
mov eax, dword [esp + 0x70]
add esp, 0x24
test eax, eax
je 0x10114d75
push eax
push esi
call fcn.10112cf0
add esp, 8
push dword [esp + 0x10]
push ebx
call fcn.1010e6a0
mov eax, dword [esp + 0x24]
add esp, 8
test byte [eax], 8
je 0x10114db4
cmp byte [ebx + 0xd4], 0
jne 0x10114db4
mov ecx, dword [esi + 0x10]
add ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x10114db4
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebx
call fcn.10125310
add esp, 0xc
push 0
push dword [edi]
push str.tbl_name_q_AND_type_trigger
push esi
call fcn.10124b40
add esp, 0xc
push eax
push dword [esp + 0x18]
push ebp
call fcn.10139d80
add esp, 0x10
cmp byte [esi + 0xb1], 0
je 0x10114e4f
mov eax, dword [edi + 0x3c]
push edi
push dword [edi]
add eax, 8
push eax
call fcn.10120df0
add esp, 0xc
test eax, eax
je 0x10114e04
push esi
call fcn.10125540
add esp, 4
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
mov dword [ebx + 0xf0], 0
mov ecx, str.sqlite_sequence
or dword [esi + 0x18], 1
mov eax, dword [edi]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10114e40
test dl, dl
je 0x10114e3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10114e40
add eax, 2
add ecx, 2
test dl, dl
jne 0x10114e20
xor eax, eax
jmp 0x10114e45
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10114e4f
mov eax, dword [edi + 0x3c]
mov dword [eax + 0x48], edi
cmp dword [esp + 0x5c], 0
jne 0x10114e78
cmp byte [edi + 0x2b], 0
jne 0x10114e78
mov eax, dword [esp + 0x50]
mov eax, dword [eax]
test eax, eax
jne 0x10114e6c
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
sub eax, dword [ebx + 0xc0]
add eax, 0xd
mov dword [edi + 0x2c], eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret