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

Disassembly:
sub esp, 0x90
push ebx
push esi
mov esi, dword [esp + 0x9c]
cmp dword [esi + 0x14c], 0
mov ebx, dword [esi]
jle 0x1013885e
push str.parameters_are_not_allowed_in_views
push esi
call fcn.10128e10
mov eax, dword [esp + 0xb4]
push eax
call fcn.1014a260
add esp, 0xc
pop esi
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0xb4]
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xa4]
push ebp
mov ebp, dword [esp + 0xac]
push edi
push ecx
push 0
push 1
push edx
push ebp
push eax
push esi
call fcn.10136c60
mov edi, dword [esi + 0x180]
add esp, 0x1c
test edi, edi
je 0x10138cb8
cmp dword [esi + 0x40], 0
jne 0x10138cb8
mov edx, dword [esp + 0xac]
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
push esi
call fcn.101353d0
mov eax, dword [edi + 0x4c]
push eax
push ebx
call fcn.10128740
mov ecx, dword [esp + 0x2c]
push ecx
push str.view
push eax
lea edx, [esp + 0x7c]
push esi
push edx
call fcn.10154d90
mov ebp, dword [esp + 0xe0]
add esp, 0x2c
test eax, eax
je 0x1013890d
lea eax, [esp + 0x58]
push ebp
push eax
call fcn.10154f10
add esp, 8
test eax, eax
je 0x1013890d
push ebp
call fcn.1014a260
add esp, 4
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x90
ret
push ebp
push ebx
call fcn.1014ff30
push ebp
mov dword [edi + 0x18], eax
call fcn.1014a260
add esp, 0xc
cmp byte [ebx + 0x1e], 0
jne 0x10138cc8
cmp byte [ebx + 0x80], 0
jne 0x1013893d
push edi
push esi
call fcn.101370e0
add esp, 8
mov edi, dword [esi + 0x170]
mov al, byte [edi]
test al, al
mov ebx, dword [esi + 0x174]
je 0x10138959
cmp al, 0x3b
je 0x10138959
mov ecx, ebx
shr ecx, 1
add edi, ecx
mov edx, dword [esp + 0xa8]
mov ebp, dword [edx]
sub edi, ebp
and ebx, 1
test edi, edi
jle 0x1013898f
jmp 0x10138970
mov al, byte [edi + ebp - 1]
cmp al, 0x3b
je 0x10138988
movzx eax, al
push eax
call fcn.10092eae
add esp, 4
test eax, eax
je 0x1013898f
sub edi, 1
test edi, edi
jg 0x10138970
and ebx, 1
or ebx, 2
cmp dword [esi + 0x40], 0
mov dword [esp + 0x30], ebx
mov ebx, dword [esi]
lea edi, [edi + ebp - 1]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], 0
mov dword [esp + 0x14], ebx
jne 0x10138cc8
cmp byte [ebx + 0x1e], 0
jne 0x10138cc8
mov ebp, dword [esi + 0x180]
test ebp, ebp
je 0x10138cc8
mov ecx, dword [ebp + 0x4c]
push ecx
push ebx
call fcn.10128740
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x2c]
add esp, 8
test eax, eax
je 0x10138a6d
xor eax, eax
push 0x38
push eax
lea edx, [esp + 0x70]
push edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call fcn.10098090
mov eax, dword [ebp]
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0x2c]
push eax
lea edx, [esp + 0x44]
lea ecx, [esp + 0x78]
push edx
mov word [esp + 0x7c], 1
mov dword [esp + 0x90], ebp
mov dword [esp + 0x9c], 0xffffffff
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
mov byte [esp + 0x5e], 1
call fcn.10151310
add esp, 0x14
test eax, eax
jne 0x10138cc8
cmp byte [ebx + 0x80], 0
je 0x10138a89
mov eax, dword [ebx + 0x7c]
mov dword [ebp + 0x14], eax
cmp byte [ebx + 0x80], 0
jne 0x10138bb7
push esi
call fcn.1014c570
add esp, 4
test eax, eax
mov dword [esp + 0x1c], eax
je 0x10138cc8
push 0
push 0x20
push eax
call fcn.10138eb0
add esp, 0xc
cmp dword [ebp + 0x18], 0
jne 0x10138ac0
mov dword [esp + 0x28], str.table
mov ecx, str.TABLE
jmp 0x10138acd
mov dword [esp + 0x28], str.view
mov ecx, str.VIEW
mov eax, dword [esi + 0x168]
push eax
sub edi, eax
add edi, 1
push edi
push ecx
push str.CREATE__s__.s
push ebx
call fcn.10147d60
mov edi, dword [esp + 0x34]
add esp, 0x14
cmp edi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], str.sqlite_temp_master
je 0x10138b06
mov dword [esp + 0x10], str.sqlite_master
mov edx, dword [esi + 0x144]
mov ecx, dword [ebp]
push edx
mov edx, dword [esp + 0x14]
push eax
mov eax, dword [esi + 0x148]
push eax
mov eax, dword [ebx + 8]
push ecx
push ecx
mov ecx, dword [esp + 0x3c]
lea edi, [edi + edi*2]
add edi, edi
push ecx
add edi, edi
push edx
add edi, edi
mov ecx, dword [eax + edi]
push ecx
push str.UPDATE__Q._s_SET_type_s__name_Q__tbl_name_Q__rootpage_d__sql_Q_WHERE_rowid_d
push esi
call fcn.10134c10
mov edx, dword [esp + 0x40]
push edx
call fcn.1012ba80
mov eax, dword [esp + 0x4c]
push eax
push esi
call fcn.101358a0
add esp, 0x34
cmp byte [ebp + 0x38], 0
je 0x10138b7d
mov eax, dword [ebx + 8]
mov ecx, dword [eax + edi + 0x14]
add eax, edi
cmp dword [ecx + 0x54], 0
jne 0x10138b7d
mov edx, dword [eax]
push edx
push str.CREATE_TABLE__Q.sqlite_sequence_name_seq_
push esi
call fcn.10134c10
add esp, 0xc
mov eax, dword [ebp]
push 0xffffffffffffffff
push eax
push str.tbl_name_q
push ebx
call fcn.10147d60
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 0xc
push eax
push 0
push 0
push ecx
push 0x1e
push edx
call fcn.1013b270
add esp, 0x1c
cmp byte [ebx + 0x80], 0
je 0x10138cc8
cmp dword [esi + 0x40], 0
jne 0x10138cc8
mov edi, dword [ebp]
mov edx, dword [ebp + 0x4c]
mov eax, edi
lea ecx, [eax + 1]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10138bd4
sub eax, dword [esp + 0x1c]
push ebp
add eax, 1
push eax
add edx, 4
push edi
push edx
call fcn.1012b690
add esp, 0x10
test eax, eax
je 0x10138c06
pop edi
pop ebp
pop esi
mov byte [ebx + 0x1e], 1
pop ebx
add esp, 0x90
ret
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x10138c67
mov edx, dword [esp + 0x18]
add edx, 0x40
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
mov eax, edx
lea ebx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10138c20
sub eax, ebx
lea ebx, [eax + 1]
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
call fcn.1012b640
mov ecx, dword [edi + 8]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ecx
push edx
mov dword [edi + 0xc], eax
call fcn.1012b690
add esp, 0x1c
cmp eax, edi
jne 0x10138c5c
mov eax, dword [esp + 0x14]
mov byte [eax + 0x1e], 1
mov edi, dword [edi + 4]
test edi, edi
jne 0x10138c18
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x180], 0
add dword [ebx + 0x28], 1
or dword [ebx + 0xc], 0x10
cmp dword [ebp + 0x18], 0
jne 0x10138cc8
mov ecx, dword [esp + 0x24]
cmp dword [ecx], ecx
mov esi, dword [esi + 0x168]
jne 0x10138c95
lea edx, [esp + 0x2c]
mov dword [esp + 0x24], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
sub ecx, esi
push ecx
push esi
call fcn.1013c740
add esp, 8
pop edi
add eax, 0xd
mov dword [ebp + 0x30], eax
pop ebp
pop esi
pop ebx
add esp, 0x90
ret
mov edx, dword [esp + 0xb4]
push edx
call fcn.1014a260
add esp, 4
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x90
ret