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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
cmp dword [ebp + 8], 0
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov dword [esp + 0x2c], edx
push esi
push edi
mov edi, dword [ebx]
mov dword [esp + 0x18], edi
jne 0x100bfb69
test eax, eax
je 0x100c03f6
mov esi, dword [ebx + 0xe4]
test esi, esi
je 0x100c03f6
test eax, eax
jne 0x100bfb92
mov edx, dword [esi]
mov ecx, edi
call fcn.100c0400
test eax, eax
mov eax, dword [ebp + 0x10]
je 0x100bfb92
or dword [esi + 0x1c], 0x1000
cmp byte [edi + 0xb1], 0
je 0x100bfbc5
test eax, eax
jne 0x100bfc64
cmp byte [esi + 0x2b], al
je 0x100bfbb4
cmp dword [edi + 0xac], eax
jne 0x100bfc64
mov eax, dword [edi + 0xac]
mov dword [esi + 0x14], eax
cmp eax, 1
jne 0x100bfbc5
or dword [esi + 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, 0x10000
je 0x100bfc40
or dword [esi + 0x1c], 0x10000
xor ecx, ecx
xor edx, edx
cmp cx, word [esi + 0x22]
jge 0x100bfc40
mov dword [esp + 0x20], ecx
mov edi, dword [esi + 4]
add edi, ecx
mov ecx, dword [edi + 4]
mov eax, ecx
and eax, 0xf0
je 0x100bfc79
cmp eax, 0x10
jne 0x100bfc02
mov byte [edi + 8], 0x41
test byte [edi + 0xe], 1
je 0x100bfc25
movsx eax, word [esi + 0x20]
cmp eax, edx
je 0x100bfc25
test cl, 0xf
jne 0x100bfc25
and ecx, 0xfffffff2
or ecx, 2
mov dword [edi + 4], ecx
or dword [esi + 0x1c], 0x800
mov ecx, dword [esp + 0x20]
inc edx
movsx eax, word [esi + 0x22]
add ecx, 0x10
mov dword [esp + 0x20], ecx
cmp edx, eax
jl 0x100bfbe4
mov edi, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test al, al
jns 0x100bfcea
mov eax, dword [esi + 0x1c]
test al, 8
je 0x100bfcbe
push str.AUTOINCREMENT_not_allowed_on_WITHOUT_ROWID_tables
push ebx
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10127dbc
push ebx
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test byte [edi + 0xe], 4
je 0x100bfca5
mov edx, 0x10127dbc
mov ecx, edi
call fcn.1010e1f0
push eax
push dword [edi]
push dword [esi]
push str.unknown_datatype_for__s._s:___s_
push ebx
call fcn.1010dfc0
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
push dword [esi]
push str.missing_datatype_for__s._s
push ebx
call fcn.1010dfc0
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 4
jne 0x100bfcd9
push dword [esi]
push str.PRIMARY_KEY_missing_on_table__s
push ebx
call fcn.1010dfc0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or eax, 0x280
mov edx, esi
mov ecx, ebx
mov dword [esi + 0x1c], eax
call fcn.100c04f0
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x14], 0xffff8000
test edx, edx
je 0x100bfd1c
mov eax, dword [edi + 0x10]
xor ecx, ecx
add eax, 0xc
mov dword [esp + 0x14], ecx
cmp dword [eax], edx
je 0x100bfd1c
nop dword [eax]
lea eax, [eax + 0x10]
inc ecx
cmp dword [eax], edx
jne 0x100bfd10
mov dword [esp + 0x14], ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100bfd4f
push eax
push 0
push 4
mov edx, esi
mov ecx, ebx
call fcn.100d5c10
add esp, 0xc
cmp dword [ebx + 0x24], 0
je 0x100bfd4f
mov edx, dword [esi + 0x10]
test edx, edx
je 0x100bfd48
mov ecx, edi
call fcn.100d2ef0
mov dword [esi + 0x10], 0
test byte [esi + 0x1c], 0x60
je 0x100bfe6d
xor eax, eax
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], edx
cmp ax, word [esi + 0x22]
jge 0x100bfe52
xor ecx, ecx
mov dword [esp + 0x10], ecx
nop word [eax + eax]
mov eax, dword [esi + 4]
test byte [eax + ecx + 0xe], 0x60
je 0x100bfe67
movzx eax, word [eax + ecx + 0xc]
test ax, ax
jne 0x100bfd9c
xor eax, eax
jmp 0x100bfdc0
cmp byte [esi + 0x2b], 0
je 0x100bfda6
xor eax, eax
jmp 0x100bfdc0
mov ecx, dword [esi + 0x34]
test ecx, ecx
jne 0x100bfdb1
xor eax, eax
jmp 0x100bfdc0
cmp dword [ecx], eax
jge 0x100bfdb9
xor eax, eax
jmp 0x100bfdc0
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 - 0xc]
push 0
push eax
push 8
mov edx, esi
mov ecx, ebx
call fcn.100d5c10
add esp, 0xc
test eax, eax
je 0x100bfe2a
push 0
push 0x34
mov ecx, edi
mov dword [esp + 0x40], 0
call fcn.10111510
add esp, 8
mov dword [esp + 0x24], eax
test eax, eax
je 0x100bfe15
push 0x34
push 0
push eax
call fcn.10002790
mov eax, dword [esp + 0x30]
add esp, 0xc
or ecx, 0xffffffff
mov byte [eax], 0x78
mov word [eax + 0x22], cx
mov dword [eax + 0x18], 1
push eax
mov eax, dword [esi + 4]
mov edx, esi
add eax, dword [esp + 0x14]
mov ecx, ebx
push eax
call fcn.100c2ff0
add esp, 8
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
movsx eax, word [esi + 0x22]
inc edx
add ecx, 0x10
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ecx
cmp edx, eax
jl 0x100bfd80
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x100bfe6d
push str.must_have_at_least_one_non_generated_column
push ebx
call fcn.1010dfc0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc dword [esp + 0x20]
jmp 0x100bfe32
mov ecx, esi
call fcn.100c0c60
mov eax, dword [esi + 8]
test eax, eax
je 0x100bfe92
mov edi, eax
nop dword [eax]
mov ecx, edi
call fcn.100c0b70
mov edi, dword [edi + 0x14]
test edi, edi
jne 0x100bfe80
mov edi, dword [esp + 0x18]
cmp byte [edi + 0xb1], 0
jne 0x100c0320
mov edx, dword [ebx + 8]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x100bfed0
cmp dword [ebx + 0x74], edx
jne 0x100bfebb
mov eax, dword [ebx]
test byte [eax + 0x4c], 8
jne 0x100bfebb
mov byte [ebx + 0x17], 1
mov ecx, ebx
call fcn.100ec3b0
mov edx, eax
mov dword [esp + 0x10], eax
test edx, edx
je 0x100c03f6
mov ecx, dword [edx + 0x74]
cmp dword [edx + 0x78], ecx
jg 0x100bfef5
mov ecx, dword [esp + 0x10]
mov edx, 0x78
push 0
push 0
push 0
call fcn.100ec0c0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x100bff2c
mov edi, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4], 0x78
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 [esi + 0x2b]
mov ecx, str.VIEW
test al, al
mov dword [esp + 0x24], str.TABLE
cmove ecx, dword [esp + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, str.view
mov dword [esp + 0x24], str.table
cmove ecx, dword [esp + 0x24]
cmp dword [ebp + 0x10], 0
mov dword [esp + 0x30], ecx
je 0x100c01d3
inc dword [ebx + 0x2c]
mov ecx, ebx
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x20], eax
inc eax
mov dword [esp + 0x24], eax
inc eax
mov dword [ebx + 0x2c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x74]
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov ecx, dword [edx + 0x74]
mov eax, dword [ebx + 0x5c]
mov dword [esp + 0x28], eax
cmp dword [edx + 0x78], ecx
jg 0x100bffb9
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, 0x65
push eax
push 1
call fcn.100ec0c0
mov edx, dword [esp + 0x1c]
add esp, 0xc
jmp 0x100bfff0
mov edi, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [edx + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edx + 0x70]
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x14]
mov dword [eax + ecx*4 + 0xc], edi
mov edi, dword [esp + 0x18]
mov dword [eax + ecx*4], 0x65
mov dword [eax + ecx*4 + 4], 1
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edx + 0x74]
test eax, eax
jle 0x100c000b
lea ecx, [eax + eax*4]
mov edi, 0x10
mov eax, dword [edx + 0x70]
mov word [eax + ecx*4 - 0x12], di
mov edi, dword [esp + 0x18]
mov dword [ebx + 0x28], 2
mov eax, dword [edx + 0x74]
mov dword [esp + 0x2c], eax
lea ecx, [eax + 1]
mov dword [esp + 0x28], ecx
cmp dword [edx + 0x78], eax
jg 0x100c0040
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push edx
mov edx, 0xd
call fcn.100ec0c0
add esp, 0xc
jmp 0x100c0070
mov dword [edx + 0x74], ecx
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x70]
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x28]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [ebx + 0x24], 0
jne 0x100c03f6
mov edx, dword [ebp + 0x10]
mov ecx, ebx
push 0x41
call fcn.100a4220
add esp, 4
test eax, eax
je 0x100c03f6
movzx ecx, word [eax + 0x22]
mov word [esi + 0x24], cx
mov word [esi + 0x22], cx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
xor ecx, ecx
mov word [eax + 0x22], cx
mov dword [eax + 4], ecx
cmp dword [edi + 0x220], ecx
jne 0x100c00ba
add dword [eax + 0x18], 0xffffffff
jne 0x100c00c3
mov edx, eax
mov ecx, edi
call fcn.100c2a00
mov edi, dword [esp + 0x20]
lea eax, [esp + 0x3c]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
push eax
mov byte [esp + 0x40], 0xd
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.1009be50
add esp, 4
cmp dword [ebx + 0x24], 0
jne 0x100c03f6
mov edx, edi
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.100eb7c0
mov edx, dword [esp + 0x2c]
mov ecx, edi
call fcn.100eb370
push dword [esp + 0x40]
mov edx, 0xe
mov ecx, edi
call fcn.100ebf90
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x5f
mov edi, eax
push dword [esp + 0x24]
push dword [esp + 0x50]
push dword [esp + 0x50]
call fcn.100ec050
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, esi
push 0
call fcn.100b24c0
mov ecx, dword [esp + 0x14]
add esp, 4
mov edx, 0x7d
push dword [esp + 0x1c]
push 1
call fcn.100ebf20
push dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov edx, 0x7e
push dword [esp + 0x30]
push 1
call fcn.100ec050
mov ecx, dword [esp + 0x24]
add esp, 0x14
mov edx, edi
call fcn.100ebeb0
mov ecx, dword [esp + 0x10]
mov edx, edi
call fcn.100eb370
mov ecx, dword [esp + 0x10]
mov edx, 0x78
push 1
call fcn.100ebf90
mov edi, dword [esp + 0x1c]
add esp, 4
mov edx, esi
mov ecx, edi
call fcn.100c0e60
mov edx, eax
mov dword [esp + 0x24], edx
jmp 0x100c0213
cmp dword [ebp + 0xc], 0
lea edx, [ebx + 0xbc]
jne 0x100c01e2
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, eax
sub ecx, dword [ebx + 0xb4]
cmp byte [eax], 0x3b
je 0x100c01f4
add ecx, dword [edx + 4]
push dword [ebx + 0xb4]
push ecx
push dword [esp + 0x34]
push str.CREATE__s__.s
push edi
call fcn.1010f0b0
add esp, 0x14
mov dword [esp + 0x24], eax
mov edx, eax
push dword [ebx + 0x58]
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push edx
push dword [ebx + 0x5c]
shl ecx, 4
push eax
push eax
mov eax, dword [edi + 0x10]
push dword [esp + 0x44]
mov dword [esp + 0x38], ecx
push dword [eax + ecx]
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.100c3ab0
mov edx, dword [esp + 0x48]
add esp, 0x24
test edx, edx
je 0x100c0250
mov ecx, edi
call fcn.10111980
mov eax, dword [ebx]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 8]
mov dword [esp + 0x30], ecx
mov eax, dword [eax + 0x10]
mov eax, dword [eax + edx + 0xc]
mov edx, dword [ecx + 0x74]
mov eax, dword [eax]
inc eax
mov dword [esp + 0x2c], eax
cmp dword [ecx + 0x78], edx
jg 0x100c0289
push eax
push 1
push dword [esp + 0x1c]
mov edx, 0x62
call fcn.100ec0c0
add esp, 0xc
jmp 0x100c02c0
lea eax, [edx + 1]
mov dword [ecx + 0x74], eax
lea ecx, [edx + edx*4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
mov eax, dword [eax + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0x62
mov dword [eax + ecx*4 + 8], 1
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
test byte [esi + 0x1c], 8
je 0x100c02ef
cmp byte [ebx + 0xc8], 0
jne 0x100c02ef
mov ecx, dword [edi + 0x10]
add ecx, dword [esp + 0x20]
mov eax, dword [ecx + 0xc]
cmp dword [eax + 0x48], 0
jne 0x100c02ef
push dword [ecx]
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push ebx
call fcn.100c3ab0
add esp, 0xc
push 0
push ecx
push dword [esi]
push str.tbl_name_q_AND_type_trigger
push edi
call fcn.1010f0b0
mov edx, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esp + 0x14]
push eax
call fcn.100eb8c0
add esp, 8
cmp byte [edi + 0xb1], 0
je 0x100c03cf
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi]
push esi
lea ecx, [ecx + 8]
call fcn.1010c190
add esp, 4
test eax, eax
je 0x100c0387
cmp byte [edi + 0x53], 0
jne 0x100c03f6
cmp byte [edi + 0x54], 0
jne 0x100c03f6
cmp dword [edi + 0xc8], 0
mov byte [edi + 0x53], 1
jle 0x100c0360
mov dword [edi + 0x138], 1
inc dword [edi + 0x140]
xor eax, eax
mov word [edi + 0x144], ax
mov eax, dword [edi + 0x10c]
test eax, eax
je 0x100c03f6
mov dword [eax + 0xc], 7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebx + 0xe4], 0
mov ecx, str.sqlite_sequence
or dword [edi + 0x18], 1
mov eax, dword [esi]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x100c03c0
test dl, dl
je 0x100c03bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x100c03c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x100c03a0
xor eax, eax
jmp 0x100c03c5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100c03cf
mov eax, dword [esi + 0x3c]
mov dword [eax + 0x48], esi
cmp dword [ebp + 0x10], 0
jne 0x100c03f6
cmp byte [esi + 0x2b], 0
jne 0x100c03f6
mov ecx, dword [esp + 0x34]
mov eax, dword [ebp + 8]
cmp dword [ecx], 0
cmovne eax, ecx
mov eax, dword [eax]
sub eax, dword [ebx + 0xb4]
add eax, 0xd
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret