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

Disassembly:
sub esp, 0x4c
push ebp
xor eax, eax
push edi
mov edi, dword [esp + 0x58]
mov ebp, dword [edi]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
cmp byte [ebp + 0x40], al
jne 0x5b93f2
cmp byte [edi + 0x1e2], al
jne 0x5b93f2
push esi
cmp byte [ebp + 0x89], al
jne 0x5b8ae4
lea eax, [edi + 4]
push eax
mov esi, ebp
call fcn.005b00b0
add esp, 4
test eax, eax
je 0x5b8ae4
inc dword [edi + 0x44]
mov dword [edi + 0xc], eax
jmp 0x5b93f1
cmp dword [esp + 0x68], 0
push ebx
je 0x5b8bc0
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
lea ecx, [esp + 0x28]
mov ebx, edi
call fcn.00577870
mov dword [esp + 0x10], eax
test eax, eax
jl 0x5b93f0
cmp byte [ebp + 0x89], 0
jne 0x5b8b42
mov eax, dword [esp + 0x6c]
call fcn.005b1280
mov ecx, dword [esp + 0x68]
cmp dword [ecx + 4], 0
jne 0x5b8b42
test eax, eax
je 0x5b8b42
mov edx, dword [ebp + 0x10]
mov eax, dword [eax + 0x44]
cmp eax, dword [edx + 0x1c]
jne 0x5b8b42
mov dword [esp + 0x10], 1
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x10]
push ecx
push str.index
mov ecx, edi
lea eax, [esp + 0x4c]
call fcn.00564c90
mov esi, dword [esp + 0x74]
mov edx, eax
push esi
push edx
call fcn.00589ee0
add esi, 8
push esi
push 0
mov eax, edi
call fcn.005b0ab0
mov ebx, eax
add esp, 0x18
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x5b93f0
cmp dword [esp + 0x10], 1
jne 0x5b8bad
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
cmp ecx, dword [ebx + 0x44]
je 0x5b8bad
mov edx, dword [ebx]
push edx
push str.cannot_create_a_TEMP_index_on_non_TEMP_table___s_
call fcn.00573960
add esp, 8
jmp 0x5b93f0
test byte [ebx + 0x2c], 0x20
je 0x5b8be0
mov eax, ebx
call fcn.005651b0
mov dword [esp + 0x34], eax
jmp 0x5b8be0
mov ebx, dword [edi + 0x204]
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x5b93f0
mov esi, dword [ebx + 0x44]
mov ecx, ebp
call fcn.005663f0
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 + 0x48], eax
mov dword [esp + 0x3c], ecx
call fcn.0055db10
add esp, 0xc
test eax, eax
jne 0x5b8c34
push 9
lea eax, [esi + 7]
push str.altertab_
push eax
call fcn.0055db10
add esp, 0xc
test eax, eax
je 0x5b8c34
push esi
push str.table__s_may_not_be_indexed
call fcn.00573960
add esp, 8
jmp 0x5b93f0
cmp dword [ebx + 0xc], 0
je 0x5b8c4c
push str.views_may_not_be_indexed
call fcn.00573960
add esp, 4
jmp 0x5b93f0
test byte [ebx + 0x2c], 0x10
je 0x5b8c64
push str.virtual_tables_may_not_be_indexed
call fcn.00573960
add esp, 4
jmp 0x5b93f0
mov eax, dword [esp + 0x28]
test eax, eax
je 0x5b8d0f
push ebp
call fcn.0056f820
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x5b93f0
mov esi, eax
mov eax, edi
call fcn.005778d0
test eax, eax
jne 0x5b93f0
cmp byte [ebp + 0x89], al
jne 0x5b8cc4
push eax
mov ecx, esi
push ecx
push ebp
call fcn.00564d30
add esp, 0xc
test eax, eax
je 0x5b8cc4
mov edx, esi
push edx
push str.there_is_already_a_table_named__s
call fcn.00573960
add esp, 8
jmp 0x5b93f0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.00564e30
add esp, 8
test eax, eax
je 0x5b8d45
cmp dword [esp + 0x84], 0
jne 0x5b8cff
mov eax, dword [esp + 0x18]
push eax
push str.index__s_already_exists
call fcn.00573960
add esp, 8
jmp 0x5b93f0
mov ebx, dword [esp + 0x10]
mov eax, edi
call fcn.005a5780
jmp 0x5b93f0
mov eax, dword [ebx + 8]
mov ecx, 1
test eax, eax
je 0x5b8d28
jmp 0x5b8d20
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x5b8d20
push ecx
push esi
push str.sqlite_autoindex__s__d
mov esi, ebp
call fcn.005736c0
add esp, 0xc
mov dword [esp + 0x18], eax
test eax, eax
je 0x5b93f0
cmp dword [esp + 0x10], 1
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
mov eax, str.sqlite_temp_master
je 0x5b8d5c
mov eax, str.sqlite_master
push esi
push 0
push eax
push 0x12
mov eax, edi
call fcn.005773f0
add esp, 0x10
test eax, eax
jne 0x5b93f0
mov eax, 1
cmp dword [esp + 0x10], eax
jne 0x5b8d84
mov eax, 3
mov edx, dword [ebx]
mov ecx, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
mov eax, edi
call fcn.005773f0
add esp, 0x10
test eax, eax
jne 0x5b93f0
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x5b8def
push ecx
mov eax, edi
call fcn.00576ba0
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
je 0x5b93f0
movsx eax, word [ebx + 0x26]
mov ecx, dword [edi]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 4]
mov ebx, dword [eax + edx*8 - 0x18]
push ecx
call fcn.00569940
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 8]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
mov dl, byte [esp + 0x84]
add esp, 4
mov byte [eax + 0xc], dl
mov eax, dword [ecx]
mov edi, dword [esp + 0x24]
test eax, eax
jle 0x5b8e1a
mov edx, dword [ecx + 8]
mov esi, eax
mov edi, edi
mov eax, dword [edx]
test eax, eax
je 0x5b8e12
mov ecx, dword [eax + 8]
call fcn.0055d9f0
lea edi, [edi + eax + 1]
add edx, 0x18
sub esi, 1
jne 0x5b8e00
mov ecx, dword [esp + 0x18]
call fcn.0055d9f0
mov ebx, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5b8e33
movzx eax, word [eax + 0x32]
jmp 0x5b8e38
mov eax, 1
mov esi, dword [esp + 0x70]
mov dx, word [esi]
add dx, ax
lea ecx, [esp + 0x20]
push ecx
movzx eax, dx
lea ecx, [ebx + edi + 1]
mov edi, ebp
push eax
mov edx, edi
call fcn.005781e0
add esp, 8
cmp byte [edi + 0x40], 0
mov ebp, eax
jne 0x5b9083
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
lea ecx, [eax + ebx + 1]
inc ebx
push ebx
push edx
push eax
mov dword [ebp], eax
mov dword [esp + 0x2c], ecx
call fcn.005e13c0
mov ecx, dword [esp + 0x80]
xor edx, edx
add esp, 0xc
test ecx, ecx
setne dl
mov eax, dword [esp + 0x1c]
mov byte [ebp + 0x36], cl
xor ecx, ecx
mov dword [ebp + 0xc], eax
and edx, 1
add edx, edx
add edx, edx
add edx, edx
cmp dword [esp + 0x28], ecx
sete cl
and ecx, 3
or edx, ecx
mov ecx, dword [ebp + 0x38]
and ecx, 0xfffffff4
or edx, ecx
mov ecx, dword [esp + 0x3c]
mov dword [ebp + 0x38], edx
mov edx, dword [edi + 0x10]
mov edx, dword [ecx + edx + 0xc]
mov edi, dword [esp + 0x7c]
mov dword [ebp + 0x18], edx
mov cx, word [esi]
mov word [ebp + 0x32], cx
test edi, edi
je 0x5b8ef6
mov edx, dword [esp + 0x60]
push edi
push 0x10
push edx
xor ebx, ebx
call fcn.00589250
add esp, 0xc
mov dword [ebp + 0x24], edi
mov dword [esp + 0x7c], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
cmp byte [ecx + 0x4c], 4
mov edx, dword [esi + 8]
sbb eax, eax
neg eax
xor edi, edi
dec eax
cmp dword [esi], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], edx
jle 0x5b901c
nop
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
movsx eax, word [edi + 0x26]
mov esi, dword [edi + 4]
xor ebx, ebx
mov dword [esp + 0x38], ecx
test eax, eax
jle 0x5b8f60
lea esp, [esp]
mov edx, dword [esi]
mov eax, dword [esp + 0x38]
push edx
push eax
call fcn.0055dac0
add esp, 8
test eax, eax
je 0x5b8f60
movsx ecx, word [edi + 0x26]
inc ebx
add esi, 0x18
cmp ebx, ecx
jl 0x5b8f40
movsx eax, word [edi + 0x26]
cmp ebx, eax
jge 0x5b9066
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0x24]
mov word [edx + eax*2], bx
mov eax, dword [ecx]
test eax, eax
je 0x5b8fa1
mov ecx, dword [eax + 8]
call fcn.0055d9f0
mov esi, dword [esp + 0x20]
mov edi, eax
inc edi
push edi
push ecx
push esi
call fcn.005e13c0
add esp, 0xc
add dword [esp + 0x20], edi
jmp 0x5b8fb8
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
lea edx, [ebx + ebx*2]
mov esi, dword [ecx + edx*8 + 0x10]
test esi, esi
jne 0x5b8fb8
mov esi, 0x65f718
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x89], 0
jne 0x5b8fd6
mov edi, dword [esp + 0x60]
call fcn.0058a010
test eax, eax
je 0x5b9083
mov eax, dword [ebp + 0x20]
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
mov dword [eax + edi*4], esi
mov dl, byte [ecx + 0xc]
and dl, byte [esp + 0x40]
mov eax, dword [ebp + 0x1c]
mov byte [edi + eax], dl
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 4]
lea ecx, [ebx + ebx*2]
cmp byte [eax + ecx*8 + 0x14], 0
jne 0x5b9006
and dword [ebp + 0x38], 0xfffffff7
mov ecx, dword [esp + 0x70]
add dword [esp + 0x24], 0x18
inc edi
cmp edi, dword [ecx]
mov dword [esp + 0x30], edi
jl 0x5b8f20
mov esi, dword [esp + 0x34]
test esi, esi
je 0x5b90d1
xor ecx, ecx
xor ebx, ebx
cmp cx, word [esi + 0x32]
jae 0x5b90e5
jmp 0x5b9040
mov edx, dword [esi + 4]
movsx edx, word [edx + ebx*2]
movzx eax, word [ebp + 0x32]
mov ecx, dword [ebp + 4]
mov dword [esp + 0x40], edx
call fcn.00565420
test eax, eax
je 0x5b909d
mov eax, 0xffff
add word [ebp + 0x34], ax
jmp 0x5b90c2
mov edx, dword [esp + 0x38]
mov eax, dword [edi]
mov edi, dword [esp + 0x60]
push edx
push eax
push str.table__s_has_no_column_named__s
call fcn.00573960
add esp, 0xc
mov byte [edi + 0x11], 1
test ebp, ebp
je 0x5b93ec
mov esi, dword [esp + 0x14]
mov edi, ebp
call fcn.0056f3a0
mov ebp, esi
jmp 0x5b93f0
mov eax, dword [ebp + 4]
mov cx, word [esp + 0x40]
mov word [eax + edi*2], cx
mov edx, dword [esi + 0x20]
mov ecx, dword [edx + ebx*4]
mov eax, dword [ebp + 0x20]
mov dword [eax + edi*4], ecx
mov edx, dword [esi + 0x1c]
mov eax, dword [ebp + 0x1c]
mov cl, byte [ebx + edx]
mov byte [edi + eax], cl
inc edi
movzx edx, word [esi + 0x32]
inc ebx
cmp ebx, edx
jl 0x5b9040
jmp 0x5b90e5
mov eax, dword [ebp + 4]
or ecx, 0xffffffff
mov word [eax + edi*2], cx
mov edx, dword [ebp + 0x20]
mov dword [edx + edi*4], 0x65f718
mov edx, ebp
call fcn.005654b0
mov esi, dword [esp + 0x60]
cmp dword [esi + 0x204], 0
jne 0x5b9100
mov edi, ebp
call fcn.005653c0
mov eax, dword [esp + 0x1c]
cmp eax, dword [esi + 0x204]
jne 0x5b9188
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x5b9188
movzx eax, word [ebx + 0x32]
movzx ecx, word [ebp + 0x32]
cmp ax, cx
jne 0x5b917d
movzx eax, ax
xor edi, edi
mov dword [esp + 0x38], eax
test eax, eax
jle 0x5b9177
mov esi, dword [ebp + 4]
mov edx, dword [ebx + 4]
sub edx, esi
mov dword [esp + 0x40], edx
lea esp, [esp]
mov ax, word [edx + esi]
cmp ax, word [esi]
jne 0x5b9177
mov ecx, dword [ebx + 0x20]
mov eax, dword [ecx + edi*4]
mov ecx, dword [ebp + 0x20]
mov ecx, dword [ecx + edi*4]
cmp eax, ecx
je 0x5b916b
push ecx
push eax
call fcn.0055dac0
add esp, 8
test eax, eax
jne 0x5b9177
mov edx, dword [esp + 0x40]
movzx eax, word [ebx + 0x32]
inc edi
add esi, 2
cmp edi, eax
jl 0x5b9140
cmp edi, dword [esp + 0x38]
je 0x5b91a4
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x5b9113
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
cmp byte [edi + 0x89], 0
je 0x5b9231
mov ecx, dword [ebp]
mov eax, ecx
test ecx, ecx
jne 0x5b91e3
jmp 0x5b91f5
mov al, byte [ebx + 0x36]
mov cl, byte [ebp + 0x36]
cmp al, cl
je 0x5b9083
cmp al, 0xa
je 0x5b91ce
cmp cl, 0xa
je 0x5b91ce
mov edi, dword [esp + 0x60]
push 0
push str.conflicting_ON_CONFLICT_clauses_specified
call fcn.00573960
add esp, 8
cmp byte [ebx + 0x36], 0xa
jne 0x5b9083
mov cl, byte [ebp + 0x36]
mov byte [ebx + 0x36], cl
jmp 0x5b9083
cmp byte [ecx], 0
je 0x5b91ee
inc eax
cmp byte [eax], 0
jne 0x5b91e8
sub eax, ecx
and eax, 0x3fffffff
push ebp
push ecx
mov ecx, dword [ebp + 0x18]
add ecx, 0x18
call fcn.00569e70
add esp, 8
test eax, eax
je 0x5b9212
mov byte [edi + 0x40], 1
jmp 0x5b9083
or dword [edi + 0x18], 2
cmp dword [esp + 0x6c], 0
je 0x5b9380
mov edx, edi
mov eax, dword [edx + 0x84]
mov dword [ebp + 0x2c], eax
jmp 0x5b9380
cmp dword [esi + 0x44], 0
jne 0x5b9380
mov ecx, dword [esp + 0x1c]
test byte [ecx + 0x2c], 0x20
je 0x5b9250
cmp dword [esp + 0x6c], 0
je 0x5b9380
mov esi, dword [esp + 0x60]
inc dword [esi + 0x4c]
mov edx, dword [esi + 0x4c]
mov edi, esi
mov dword [esp + 0x34], edx
call fcn.0057a370
mov edi, eax
mov dword [esp + 0x40], edi
test edi, edi
je 0x5b9083
mov ebx, dword [esp + 0x10]
push 1
mov ecx, ebx
mov eax, esi
call fcn.005a5880
mov eax, dword [esp + 0x38]
push eax
push ebx
push 0x70
mov eax, edi
call fcn.0056cfb0
add esp, 0x10
cmp dword [esp + 0x78], 0
je 0x5b92e2
mov eax, dword [esi + 0x21c]
add eax, dword [esi + 0x218]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx]
mov ecx, dword [ecx]
cmp byte [ecx + eax - 1], 0x3b
jne 0x5b92b7
dec eax
cmp dword [esp + 0x74], 0
mov edx, 0x60c81c
je 0x5b92c8
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.005736c0
add esp, 0x10
mov esi, eax
jmp 0x5b92e8
mov edi, dword [esp + 0x14]
xor esi, esi
cmp dword [esp + 0x10], 1
mov eax, str.sqlite_temp_master
je 0x5b92f9
mov eax, str.sqlite_master
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x60]
push esi
push ecx
mov ecx, dword [edx]
mov edx, dword [ebp]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
mov eax, dword [edi + 0x10]
mov edx, dword [ecx + eax]
push edx
push str.INSERT_INTO__Q._s_VALUES_index__Q__Q__d__Q__
call fcn.00577480
add esp, 0x1c
mov eax, esi
mov ecx, edi
call fcn.0055d830
cmp dword [esp + 0x6c], 0
je 0x5b9380
mov eax, dword [esp + 0x34]
push eax
push ebp
mov eax, ebx
call fcn.00597df0
mov ecx, dword [esp + 0x18]
push ecx
mov esi, ebx
call fcn.0056f970
mov edx, dword [ebp]
push edx
push str.name_q_AND_typeindex
mov esi, edi
call fcn.005736c0
mov esi, dword [esp + 0x54]
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00575b90
push 0
push 0x86
mov eax, esi
call fcn.0056cf60
add esp, 0x24
mov ecx, dword [esp + 0x14]
cmp byte [ecx + 0x89], 0
jne 0x5b9398
cmp dword [esp + 0x6c], 0
jne 0x5b9083
mov ecx, dword [esp + 0x1c]
mov edx, 5
cmp dword [esp + 0x74], edx
jne 0x5b93df
mov eax, dword [ecx + 8]
test eax, eax
je 0x5b93df
cmp byte [eax + 0x36], dl
je 0x5b93df
cmp dword [eax + 0x14], 0
je 0x5b93d0
lea esp, [esp]
mov ecx, dword [eax + 0x14]
cmp byte [ecx + 0x36], dl
je 0x5b93d0
mov eax, ecx
cmp dword [eax + 0x14], 0
jne 0x5b93c0
mov edx, dword [eax + 0x14]
mov dword [ebp + 0x14], edx
mov dword [eax + 0x14], ebp
mov dword [esp + 0x2c], ebp
jmp 0x5b93ec
mov eax, dword [ecx + 8]
mov dword [ebp + 0x14], eax
mov dword [ecx + 8], ebp
mov dword [esp + 0x2c], ebp
mov ebp, dword [esp + 0x14]
pop ebx
pop esi
mov ecx, dword [esp + 0x74]
push ecx
push ebp
call fcn.0056e560
mov edx, dword [esp + 0x70]
push edx
push ebp
call fcn.0056e900
mov eax, dword [esp + 0x74]
push eax
mov eax, ebp
call fcn.00565760
mov eax, dword [esp + 0x24]
add esp, 0x14
test eax, eax
je 0x5b94aa
cmp dword [ebp + 0x200], 0
je 0x5b9473
cmp eax, dword [ebp + 0x10c]
jb 0x5b9456
cmp eax, dword [ebp + 0x110]
jae 0x5b9456
movzx eax, word [ebp + 0xf0]
mov ebp, dword [ebp + 0x200]
add dword [ebp], eax
mov eax, dword [esp + 0x24]
pop edi
pop ebp
add esp, 0x4c
ret
push eax
call dword [0x69fd68]
mov ebp, dword [ebp + 0x200]
add esp, 4
add dword [ebp], eax
mov eax, dword [esp + 0x24]
pop edi
pop ebp
add esp, 0x4c
ret
cmp eax, dword [ebp + 0x10c]
jb 0x5b94a1
cmp eax, dword [ebp + 0x110]
jae 0x5b94a1
mov ecx, dword [ebp + 0x108]
mov dword [eax], ecx
dec dword [ebp + 0xf4]
mov dword [ebp + 0x108], eax
mov eax, dword [esp + 0x24]
pop edi
pop ebp
add esp, 0x4c
ret
push eax
call fcn.0055d790
add esp, 4
mov eax, dword [esp + 0x24]
pop edi
pop ebp
add esp, 0x4c
ret