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

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x60]
mov ebp, dword [edi]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
cmp byte [ebp + 0x40], bl
jne 0x10063e99
cmp byte [edi + 0x1d5], bl
jne 0x10063e99
cmp byte [ebp + 0x89], bl
jne 0x1006383d
lea eax, [edi + 4]
push eax
mov esi, ebp
call fcn.100740b0
add esp, 4
cmp eax, ebx
je 0x1006383d
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x10063e99
cmp dword [esp + 0x6c], ebx
je 0x10063917
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x24]
call fcn.10060f50
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], eax
jl 0x10063e99
cmp byte [ebp + 0x89], bl
jne 0x1006389c
mov eax, dword [esp + 0x6c]
mov ebx, edi
call fcn.10065c60
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0
jne 0x1006389c
test eax, eax
je 0x1006389c
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x40]
cmp eax, dword [edx + 0x1c]
jne 0x1006389c
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x14]
push str.index
mov edx, edi
lea eax, [esp + 0x4c]
call fcn.1005faa0
add esp, 8
test eax, eax
je 0x100638ce
mov edx, dword [esp + 0x6c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.1005fae0
add esp, 8
mov ecx, dword [esp + 0x6c]
add ecx, 8
push ecx
push 0
mov eax, edi
call fcn.10060770
mov ebx, eax
add esp, 8
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10063e99
cmp dword [esp + 0x10], 1
jne 0x10063937
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0x1c]
cmp eax, dword [ebx + 0x40]
je 0x10063937
mov ecx, dword [ebx]
push ecx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.10030990
add esp, 8
jmp 0x10063e99
mov ebx, dword [edi + 0x1fc]
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10063e99
mov esi, dword [ebx + 0x40]
mov ecx, ebp
call fcn.10074410
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx]
shl eax, 4
push 7
add ecx, eax
push str.sqlite_
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x28], ecx
call fcn.10030ad0
add esp, 0xc
test eax, eax
jne 0x1006398b
push 9
lea edx, [esi + 7]
push str.altertab_
push edx
call fcn.10030ad0
add esp, 0xc
test eax, eax
je 0x1006398b
push esi
push str.table__s_may_not_be_indexed
call fcn.10030990
add esp, 8
jmp 0x10063e99
cmp dword [ebx + 0xc], 0
je 0x100639a3
push str.views_may_not_be_indexed
call fcn.10030990
add esp, 4
jmp 0x10063e99
test byte [ebx + 0x2a], 0x10
je 0x100639bb
push str.virtual_tables_may_not_be_indexed
call fcn.10030990
add esp, 4
jmp 0x10063e99
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10063a5e
push ebp
call fcn.10060da0
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
je 0x10063e99
mov eax, edi
call fcn.10060fe0
test eax, eax
jne 0x10063e99
cmp byte [ebp + 0x89], al
jne 0x10063a17
push eax
push esi
push ebp
call fcn.100605e0
add esp, 0xc
test eax, eax
je 0x10063a17
push esi
push str.there_is_already_a_table_named__s
call fcn.10030990
add esp, 8
jmp 0x10063e99
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
push esi
mov ecx, ebp
call fcn.100607d0
add esp, 8
test eax, eax
je 0x10063a97
cmp dword [esp + 0x84], 0
jne 0x10063a4a
push esi
push str.index__s_already_exists
call fcn.10030990
add esp, 8
jmp 0x10063e99
mov edx, dword [esp + 0x10]
push edx
mov eax, edi
call fcn.10064d20
add esp, 4
jmp 0x10063e99
mov eax, dword [ebx + 8]
mov ecx, 1
test eax, eax
je 0x10063a78
lea ebx, [ebx]
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x10063a70
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.1002fe70
mov esi, eax
add esp, 0xc
mov dword [esp + 0x24], esi
test esi, esi
je 0x10063e99
cmp dword [esp + 0x10], 1
mov eax, dword [esp + 0x1c]
mov ebp, dword [eax]
mov eax, str.sqlite_temp_master
je 0x10063aae
mov eax, str.sqlite_master
push ebp
push 0
push eax
push 0x12
mov eax, edi
call fcn.1005ff70
add esp, 0x10
test eax, eax
jne 0x10063e99
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x10063ad6
mov eax, 3
mov ecx, dword [ebx]
push ebp
push ecx
push esi
push eax
mov eax, edi
call fcn.1005ff70
add esp, 0x10
test eax, eax
jne 0x10063e99
mov esi, dword [esp + 0x70]
test esi, esi
jne 0x10063b4a
movsx eax, word [ebx + 0x26]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + edx*8 - 0x18]
mov dword [esp + 0x3c], ecx
call fcn.10030900
mov dword [esp + 0x40], eax
push esi
xor ecx, ecx
mov eax, edi
call fcn.10058ca0
mov esi, eax
add esp, 4
mov dword [esp + 0x70], esi
test esi, esi
je 0x10063e99
push 0
push edi
lea edx, [esp + 0x44]
mov ecx, esi
call fcn.10058d40
mov ecx, dword [esi + 8]
mov dl, byte [esp + 0x88]
add esp, 8
mov byte [ecx + 0xc], dl
mov ebx, dword [esi]
test ebx, ebx
jle 0x10063b7e
mov esi, dword [esi + 8]
mov edi, dword [esp + 0x28]
mov edx, ebx
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x10063b72
mov ecx, dword [eax + 4]
call fcn.10030900
lea edi, [edi + eax + 1]
add esi, 0x18
sub edx, 1
jne 0x10063b60
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x24]
call fcn.10030900
mov edx, dword [esp + 0x28]
mov esi, eax
lea eax, [ebx*4 + 0xb]
and eax, 0xfffffff8
add eax, esi
lea ecx, [ebx + ebx*8]
add ecx, eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + edx + 0x39]
call fcn.1002eb50
mov ebp, eax
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x40], 0
jne 0x10063e71
lea ecx, [ebx*4 + 8]
lea eax, [ebp + 0x38]
mov dword [ebp + 8], eax
and ecx, 0xfffffff8
add eax, ecx
mov dword [ebp + 0x20], eax
lea eax, [eax + ebx*4]
mov dword [ebp + 4], eax
lea eax, [eax + ebx*4]
add ebx, eax
lea edx, [ebx + esi + 1]
mov dword [ebp + 0x1c], eax
mov eax, dword [esp + 0x24]
inc esi
push esi
push eax
push ebx
mov dword [ebp], ebx
mov dword [esp + 0x38], edx
call sub.MSVCR90.dll_memcpy
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x7c]
xor edx, edx
mov dword [ebp + 0xc], edi
mov cx, word [eax]
mov word [ebp + 0x2c], cx
mov ecx, dword [esp + 0x80]
add esp, 0xc
cmp ecx, 2
sete dl
mov byte [ebp + 0x2e], cl
xor ecx, ecx
mov esi, dword [esp + 0x7c]
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x20], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x30]
and ecx, 0xfffffff4
or edx, ecx
mov dword [ebp + 0x30], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0x10]
mov edx, dword [esp + 0x34]
mov ecx, dword [edx + ecx + 0xc]
mov dword [ebp + 0x18], ecx
test esi, esi
je 0x10063c78
mov edx, dword [esp + 0x60]
push esi
push 0x10
push edx
xor ebx, ebx
mov eax, edi
call fcn.10057650
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [ebp + 0x24], esi
mov dword [esp + 0x7c], ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0xc]
cmp byte [edx + 0x4c], 4
mov dword [esp + 0x30], 0
sbb ecx, ecx
neg ecx
dec ecx
cmp dword [eax], 0
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
jle 0x10063db0
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
mov esi, dword [edi + 4]
mov dword [esp + 0x28], eax
movsx eax, word [edi + 0x26]
xor ebx, ebx
test eax, eax
jle 0x10063ce0
lea esp, [esp]
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.10030a80
add esp, 8
test eax, eax
je 0x10063ce0
movsx eax, word [edi + 0x26]
inc ebx
add esi, 0x18
cmp ebx, eax
jl 0x10063cc0
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x10063ed7
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov dword [ecx + edx*4], ebx
mov eax, dword [eax]
test eax, eax
je 0x10063d2a
mov ecx, dword [eax + 4]
call fcn.10030900
mov esi, eax
inc esi
push esi
push ecx
mov ecx, dword [esp + 0x34]
push ecx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0x38]
add esp, 0xc
mov dword [esp + 0x28], eax
add eax, esi
mov dword [esp + 0x2c], eax
jmp 0x10063d44
mov eax, dword [edi + 4]
lea edx, [ebx + ebx*2]
mov eax, dword [eax + edx*8 + 0x10]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x10063d44
mov dword [esp + 0x28], str.BINARY
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x10063d6a
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x60]
call fcn.10061b60
test eax, eax
je 0x10063e71
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 0x20]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov dword [edx + esi*4], eax
mov dl, byte [ecx + 0xc]
and dl, byte [esp + 0x3c]
mov eax, dword [ebp + 0x1c]
mov byte [esi + eax], dl
mov edx, dword [edi + 4]
lea ecx, [ebx + ebx*2]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x10063d9a
and dword [ebp + 0x30], 0xfffffff7
mov eax, dword [esp + 0x70]
add dword [esp + 0x1c], 0x18
inc esi
cmp esi, dword [eax]
mov dword [esp + 0x30], esi
jl 0x10063ca4
mov edx, ebp
call fcn.10064140
mov eax, dword [esp + 0x60]
cmp edi, dword [eax + 0x1fc]
jne 0x10063e3c
mov esi, dword [edi + 8]
test esi, esi
je 0x10063e3c
lea ebx, [ebx]
movzx eax, word [esi + 0x2c]
movzx ecx, word [ebp + 0x2c]
cmp ax, cx
jne 0x10063e35
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x30], eax
test eax, eax
jle 0x10063e2b
mov edi, dword [ebp + 4]
mov edx, dword [esi + 4]
sub edx, edi
mov dword [esp + 0x3c], edx
lea eax, [edi + ebx*4]
mov ecx, dword [edx + eax]
cmp ecx, dword [eax]
jne 0x10063e2b
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0x20]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ecx + ebx*4]
cmp eax, ecx
je 0x10063e22
push ecx
push eax
call fcn.10030a80
add esp, 8
test eax, eax
jne 0x10063e2b
mov edx, dword [esp + 0x3c]
movzx eax, word [esi + 0x2c]
inc ebx
cmp ebx, eax
jl 0x10063df6
cmp ebx, dword [esp + 0x30]
je 0x10063ef9
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x10063dd0
mov esi, dword [esp + 0x14]
cmp byte [esi + 0x89], 0
je 0x10063f57
mov ecx, dword [ebp]
push ebp
call fcn.10030900
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.10031d00
add esp, 8
test eax, eax
je 0x10063f38
mov byte [esi + 0x40], 1
test ebp, ebp
je 0x10063e99
mov eax, dword [ebp + 0x24]
mov esi, dword [esp + 0x14]
push eax
push esi
call fcn.100582b0
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, esi
call fcn.1002e950
mov eax, ebp
mov ecx, esi
call fcn.1002e950
mov ecx, dword [esp + 0x7c]
mov esi, dword [esp + 0x14]
push ecx
push esi
call fcn.100582b0
mov edx, dword [esp + 0x78]
push edx
push esi
call fcn.10058e30
mov eax, dword [esp + 0x7c]
push eax
call fcn.10064700
mov eax, dword [esp + 0x38]
add esp, 0x14
mov ecx, esi
call fcn.1002e950
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [edi]
mov edi, dword [esp + 0x60]
push ecx
push edx
push str.table__s_has_no_column_named__s
call fcn.10030990
add esp, 0xc
mov byte [edi + 0x11], 1
jmp 0x10063e71
mov al, byte [esi + 0x2e]
mov cl, byte [ebp + 0x2e]
cmp al, cl
je 0x10063e71
cmp al, 0x63
je 0x10063f23
cmp cl, 0x63
je 0x10063f23
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.10030990
add esp, 8
cmp byte [esi + 0x2e], 0x63
jne 0x10063e71
mov cl, byte [ebp + 0x2e]
mov byte [esi + 0x2e], cl
jmp 0x10063e71
or dword [esi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x100640ca
mov edx, esi
mov eax, dword [edx + 0x84]
mov dword [ebp + 0x28], eax
jmp 0x100640ca
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x44], 0
jne 0x100640ca
mov ebx, ecx
inc dword [ebx + 0x4c]
mov edx, dword [ebx + 0x4c]
mov edi, ebx
mov dword [esp + 0x30], edx
call fcn.100772a0
mov esi, eax
mov dword [esp + 0x2c], esi
test esi, esi
je 0x10063e71
mov edi, dword [esp + 0x10]
push 1
mov eax, ebx
call fcn.10064e70
mov eax, dword [esi + 0x1c]
add esp, 4
cmp dword [esi + 0x20], eax
mov dword [esp + 0x3c], eax
jg 0x10063fad
mov edi, esi
call fcn.10048f70
test eax, eax
jne 0x10063fdd
mov ecx, dword [esi + 4]
inc dword [esi + 0x1c]
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x30]
mov dword [eax + 8], ecx
xor ecx, ecx
mov byte [eax], 0x6e
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov byte [eax + 1], cl
cmp dword [esp + 0x78], 0
je 0x1006402b
mov eax, dword [ebx + 0x214]
add eax, dword [ebx + 0x210]
mov ecx, dword [esp + 0x20]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x10064000
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x100d767b
je 0x10064011
mov edx, str._UNIQUE
mov edi, dword [esp + 0x14]
push ecx
push eax
push edx
push str.CREATE_s_INDEX__.s
mov esi, edi
call fcn.1002fe70
add esp, 0x10
mov esi, eax
jmp 0x10064031
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], 1
mov eax, str.sqlite_temp_master
je 0x10064042
mov eax, str.sqlite_master
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push esi
push edx
mov edx, dword [ecx]
mov ecx, dword [ebp]
push edx
mov edx, dword [edi + 0x10]
push ecx
push eax
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + edx]
push ecx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.10060520
add esp, 0x1c
mov eax, esi
mov ecx, edi
call fcn.1002e950
cmp dword [esp + 0x6c], 0
je 0x100640ca
mov edx, dword [esp + 0x30]
push edx
push ebp
push ebx
call fcn.10063270
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
mov esi, ebx
call fcn.10061bd0
mov ecx, dword [ebp]
add esp, 4
push ecx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.1002fe70
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x34]
push eax
push edx
call fcn.10049140
push 0
push 0x84
mov eax, esi
call fcn.100490a0
add esp, 0x18
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x89], 0
jne 0x100640e2
cmp dword [esp + 0x6c], 0
jne 0x10063e71
mov ecx, dword [esp + 0x18]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x10064125
mov eax, dword [ecx + 8]
test eax, eax
je 0x10064125
cmp byte [eax + 0x2e], dl
je 0x10064125
cmp dword [eax + 0x14], 0
je 0x10064113
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x2e], dl
je 0x10064113
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x10064103
mov ecx, dword [eax + 0x14]
mov dword [ebp + 0x14], ecx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x38], ebp
jmp 0x10063e99
mov edx, dword [ecx + 8]
mov dword [ebp + 0x14], edx
mov dword [ecx + 8], ebp
mov dword [esp + 0x38], ebp
jmp 0x10063e99